Deck 2: Input, processing, and Output
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/48
Play
Full screen (f)
Deck 2: Input, processing, and Output
1
A ____________ is a name that represents a value that cannot be changed during the program's execution.
A)Uninitialized variable
B)Named variable
C)Named constant
D)Input variable
E)None of the above
A)Uninitialized variable
B)Named variable
C)Named constant
D)Input variable
E)None of the above
C
2
Programmers start writing code as the first step when they begin a new project.
False
3
What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed?
A)Program
B)Flowchart
C)Algorithm
D)Code
E)Pseudocode
A)Program
B)Flowchart
C)Algorithm
D)Code
E)Pseudocode
E
4
__________________ documentation is a reference guide that describes the features of the program,designed for the user.
A)Internal
B)External
C)Program
D)Block
E)Line
A)Internal
B)External
C)Program
D)Block
E)Line
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
5
The ____________ is a diagram that graphically depicts the steps that take place in a program.
A)Program
B)Flowchart
C)Algorithm
D)Code
E)Pseudocode
A)Program
B)Flowchart
C)Algorithm
D)Code
E)Pseudocode
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
6
Which mathematical operator is used to raise five to the second power?
A)MOD
B)*
C)^
D)/
E)~
A)MOD
B)*
C)^
D)/
E)~
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
7
Which symbol is used for an assignment statement in a flowchart?
A)Processing
B)I/O
C)Terminal
D)Parallelogram
E)None of the above
A)Processing
B)I/O
C)Terminal
D)Parallelogram
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
8
What is another term used for 'desk checking'?
A)Hand tracing
B)Debug
C)Execute
D)Run
E)Checking
A)Hand tracing
B)Debug
C)Execute
D)Run
E)Checking
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
9
The process where the programmer steps through each of the program's statements one by one is called _____________.
A)Hand tracing
B)Debug
C)Execute
D)Run
E)Checking
A)Hand tracing
B)Debug
C)Execute
D)Run
E)Checking
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following is not an actual programming language?
A)C++
B)Visual Basic
C)Java
D)Pseudocode
E)Python
A)C++
B)Visual Basic
C)Java
D)Pseudocode
E)Python
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
11
The program development cycle is made up of ______ steps that are repeated until no errors can be found in the program.
A)Five
B)Four
C)Three
D)Six
E)None of these
A)Five
B)Four
C)Three
D)Six
E)None of these
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
12
The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letters and then to capitalize the first character of the second and subsequent words.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
13
The following is an example of what type of statement:
Set rate = 5.75
A)Declaration
B)Assignment
C)Input
D)Output
E)None of the above
Set rate = 5.75
A)Declaration
B)Assignment
C)Input
D)Output
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
14
What term is used for a string that appears in the actual code of a program?
A)String literal
B)Virtual string
C)Hard copy
D)Strongly typed
E)None of the above
A)String literal
B)Virtual string
C)Hard copy
D)Strongly typed
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
15
What symbol is used to mark the beginning and end of a string?
A)Slash
B)Asterisk
C)Quotation
D)Comma
E)Question
A)Slash
B)Asterisk
C)Quotation
D)Comma
E)Question
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
16
A _________ structure is a set of statements that execute in the order they appear.
A)Control
B)Repetition
C)Decision
D)Sequence
E)None of the above
A)Control
B)Repetition
C)Decision
D)Sequence
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
17
What is the first step of the program development cycle?
A)Write the code
B)Correct syntax errors
C)Debug the code
D)Test the executable code
E)Design the program
A)Write the code
B)Correct syntax errors
C)Debug the code
D)Test the executable code
E)Design the program
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is not a variable data type?
A)Number
B)Integer
C)Real
D)String
E)None of the above
A)Number
B)Integer
C)Real
D)String
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
19
The value of the expression 12 - 4 * 3 / 2 + 9 is _________.
A)21
B)15
C)-6
D)
E)None of the above
A)21
B)15
C)-6
D)
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
20
Which error produces incorrect results but does not prevent the program from running?
A)syntax
B)logic
C)grammatical
D)human
E)None of the above
A)syntax
B)logic
C)grammatical
D)human
E)None of the above
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
21
Ovals are used as terminal symbols marking the starting and end of the pseudocode.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
22
A named constant can be assigned a value using a Set statement.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
23
A sequence of characters that is used as data is called a string in programming.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
24
A(n)_________________ is a set of well-defined logical steps that must be taken to perform a task.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
25
The __________________ symbol is used to represent the inputs and outputs in the steps of the program.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
26
A ________________ statement specifies the variable's name and the variable's data type.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
27
The ___________ operator performs division and returns the remainder.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
28
Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
29
A ___________________ is a list of requirements created after studying the information gathered from interviews with the customer.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
30
_______________ software is characterized by programs whose clear displays and understandable prompts are easy to use.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
31
___________ comments take up several lines and are used when lengthy explanations are required in the program.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
32
An uninitialized variable is a variable that has been declared and automatically initialized to zero.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
33
The word ________________is used to declare a named constant.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
34
The expressions (a + b)/ c and a + b / c will always yield identical results.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
35
It has been proven by a group of mathematicians that all programs can be written using only three structures.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
36
The ____________ process occurs when the programmer finds and corrects the code that is causing the error(s).
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
37
A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
38
If you mistakenly write pseudocode into an editor for an actual programming language,such as Python or Visual Basic,errors will result.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
39
The comments the programmer places in the code explaining how different parts of the program work are known as _________________ documentation.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
40
Programmers use pseudocode to create 'mock-ups' of programs because they do not have to worry about syntax rules.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
41
A ______________ statement can be used to initialize multiple variables.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
42
Computer programs perform a __________ - step process.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
43
When a mathematical calculation is performed,you typically want to store the result of that calculation in a ______________.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
44
To determine a program's ______________ requirements,you must determine the pieces of data required for the program to complete its task.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
45
Programmers use operators to create __________________ expressions to perform calculations and return a value.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
46
In many programming languages,__________________ variables hold unpredictable values,but in other languages,a default value is assigned to such variables.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
47
A program's ______________ will typically be the result of the process or processes that it has performed.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck
48
In the expression 57 * 6,the values 57 and 6,which are on the left and right of the * symbol,respectively,are called ____________.
Unlock Deck
Unlock for access to all 48 flashcards in this deck.
Unlock Deck
k this deck