• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/86

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

86 Cards in this Set

  • Front
  • Back
Numeric
Numeric describes data that consists of numbers
String
String describes data that is nonumeric
integer
An integer is a whole number
floating-point
A floating-point number is a number with a decimal places.
Real number
Real numbers are floating-point numbers
numeric constant
A numeric constant (or literal numeric constant) is a specific numeric value
String Constant
A String constant (or literal constant is a specific group of characters enclosed within quotation marks
Alphanumeric values
Alphanumeric values can contain alphabetic characters, numbers, and punctuation
unnamed constant
An unnamed constant is a literal numeric or string value
declaration
A declaration is a statement that provides a data type and an identifier for a variable
identifier
An identifier is a program component's name
data type
A data item's data type is a classification that describes what values can be assigned, how the item is stored and what types of operations can be performed with the item
Initializing variable
Initializing variable is the act of assigning its first value, often at the same time the variable is created
Garbage
Garbage describes the unknown value stored in the unassigned variable
keywords
Keywords comprise the limited word set that is reserved in a language
Camel Casing
Camel casing is a variable-naming convention in which the initial letter is lowercase, multiple-words variable names are run together, and each new word withing the variable name begins with an uppercase letter
Pascal casing
Pascal Casing is a variable-naming convention in which the initial letter is uppercase, multiple-word variable names are run together, and each new word within the variable name begins with an uppercase letter
Hungarian Notation
is a variable-naming convention in which a variable's data type or other information is stored as part of its name
Assignment Statement
An assignment statement assigns a variable-naming convention in which a variable's data type or other information is stored as part of its name
Assignment Statement
An assignment statement assigns a value from the right of an assignment operator to the variable or constant on the left of the assignment operator
Assignment Operator
The assignment operator is the equal sign =

It is used to assign a value to the variable or constant on the left
Binary operator
A binary operator is an operator that requires two operands - one on each side
Right Associativity
Right Associativity and right-to-left associativity describe operators that evaluate the expression to the right first
An Ivalue
is the memory address identifier to the left of an assignment operator
numeric value
A numeric variable is one that can hold digits, have mathematical operations performed on it, an usually can hold a decimal point and sign indicating a positive or negative
string variable
A string variable can hold text that includes letters, digits ,and special characters such as punctuation marks
Type-safety
Type-Safety is the feature of programming language that prevents assigning values an incorrect data type
named constant
A named constant is similar to a variable except that its value cannot change after the first assignment
magic number
A magic number is an unnamed constant whose purpose is not immediately apparent
Overhead
Overhead describes the extra resources a task requires
Rules of precedence
Rules of precedence dictate the order in which operations in the same statement are carried out
order of operations
The order of operations describes the rules of precendence
Left-to-right associativity
Left-to-right Associativity describes operators that evaluate the expression to the left first
modules
Modules are small program units that you can use together to make a program.

Programmers also refer to modules as subroutines, procedures, functions, methods
call a module
To call a module is to use the modules name to invoke it, causing it to execute
Modularization
Modularization is the process if breaking down a program into modules
Functional decomposition
Functional decomposition is the act of reducing a large program into more manageable modules
Abstraction
Abstraction is the process of paying attention to important properties while ignoring nonessential details
Reusability
Resusability is te feature of a modular program that allows individual modules to be used in a variety of applications
Reliability
Reliability is the feature of a modular program that assures you a module has been tested and proven to function correctly
Main Program
A main program runs from start to stop and calls other modules
Mainline Logic
The mainline logic is the logic that appears in a program's main module; it calls other modules
modular header
The modular header includes the module identifier and possibly other necessary identifying information
module body
The module body contains all the statements in a module
Module Return Statement
The module return statement marks the end of the module and identifies the point at which control returns to the program or module that called the module
Encapsulation
Encapsulation is the act of containing a task's instructions in a module
Stack
A stack is a memory location in which the computer keeps track of the correct memory address to which it should return after executing a module
Functional Cohesion
The functional Cohesion of a module is a measure of the degree to which all the module statements contribute the same task
Visible
Visible descries the state of data items when a module can recognize them
In Scope
In scope describes the state of data that is visible
Local
describes variables that are declared within the module that uses them
Portable
A portable module is one that can be more easily be reused in multiple programs
Global
Global describes variables that are known to the entire program
Program Level
Global variables are declared at the program level
Housekeeping Tasks
Housekeeping Tasks include steps that are repeated for each set of input data
End-of-job tasks
End-of-job tasks hold the steps you take at the end of the program to finish the application
Hierarchy Chart
A hierarchy chart is a diagram that illustrates modules' relationships to each other
Program Comments
Program comments are written explanations that are not part of the program logic but that serve as documentation for those reading the program
Internal Documentation
Is a documentation within a coded program
External documentation
is documentation that is outside the coded program
Annotation Symbol
An Annotation Symbol contains information that expands on what appears in another flowchart symbol; it is most represented by a three-sided box that is connected to the step it references by a dashed iine
Self-documenting
Self-documenting programs are those that contain meaningful data and module names tat describe the programs purpose
Data Dictionary
A data dictionary is list of every variable name used within a program, along with its type, size, and description
Temporary variable
A temporary variable (or a work variable) is working variable that you use to hold intermediate results during a programs execution.
Prompt
A prompt is a message that is displayed on a monitor to ask the user for a response and perhaps explain how that response should be formatted
Echoing Input
Echoing input is the act of repeating input back to a user wither in subsequent prompt or in output
1. What does a declaration provide for a variable?

a. A name

b. A Data Type

c. Both of the above

d. None of the above
c. Both of the above
2. A variable’s data type describes all of the following except ______________?

a. What values the variable can hold

b. How the variable is stored in memory

c. What operations can be performed with the variable

d. The scope of the variable - not it
a. What values the variable can hold

b. How the variable is stored in memory

c. What operations can be performed with the variable
3. The value stored in an uninitialized variable is

a. Garbage

b. Null

c. Compost

d. Identifier
a. Garbage
4. The value 3 is a ________

a. Numeric variable

b. Numeric constant

c. String variable

d. String constant
b. Numeric constant
5. The assignment operator _____

a. Is a binary operator

b. Has left-to-right associativity

c. Is most often represent by a colon

d. Two of the above
a. Is a binary operator
6. Which of the following is true about arithmetic precedence

a. Multiplication has a higher precedence than division

b. Operators with the lowest precedence always have left-to-right

c. Division has higher precedence that subtractions

d. All of the above
c. Division has higher precedence that subtractions
7. Which of the following is a term used as a synonym for a module in some programming method

a. Method

b. Procedure

c. Both of these

d. None of these
c. Both of these
8. Which of the following is a reason to use modularization

a. Modularization avoids abstraction

b. Modularization reduces overhead

c. Modularization allows you to more easily reuse your work

d. Modularization eliminates the need for syntax
c. Modularization allows you to more easily reuse your work
9. What is the name for the process of paying attention to important properties while ignoring nonessential details

a. Abstraction

b. Extraction

c. Extinction

d. Modularization
a. Abstraction
10. Every module has all of the following except _________.

a. A header

b. Local variables

c. A body

d. A return statement
b. Local variables
11. Programmers say that one module can ___________ another, meaning that the first module causes the second module to execute

a. Declare

b. Define

c. Enact

d. Call
d. Call
12. The more that module’s statement contribute to the same job, the greater the _____ of the module

a. Structure

b. Modularity

c. Functional cohesion

d. Size
c. Functional cohesion
13. In most modern programming languages, a variable or constant that is declared in a module is ______ in that module

a. Global

b. Invisible

c. In scope

d. Undefined
c. In scope
14. Which of the following is not a typical housekeeping task?

a. Displaying instructions

b. Printing summaries

c. Opening files

d. Displaying report headings
b. Printing summaries
15. Which model in a typical program will execute the most times?

a. The housekeeping module

b. The detail loop

c. The end-of-job module

d. It is different in every program
b. The detail loop
16. A hierarchy chart tells you ______

a. What tasks are to be performed within each program module

b. When a module executes

c. Which routines call which other routines

d. All of the above
c. Which routines call which other routines
17. What are nonexecuting statements that programmers place within code to explain program statements in English?

a. Comments

b. Pseudocode

c. Trivia

d. User documentation
a. Comments
18. Program comments are _______

a. Required to create a runnable program

b. A form of external documentation

c. Both of the above

d. None of the above
d. None of the above
19. Which of the following is valid advice for naming variables

a. To save typing, make most variable names with one or two letters

b. To avoid conflict with names that others are using, use unusual or unpronounceable names

c. To make names easier to read, separate long names by using underscores or capitalization for each new word

d. To maintain your independence, shun the convention of your organization
c. To make names easier to read, separate long names by using underscores or capitalization for each new word
20. A message that asks for a user for input is a _______

a. Comment

b. Prompt

c. Echo

d. declaration
b. Prompt