Quiz2-InputProcessingOutput Flashcards
The structure of the camelCase naming convention is to write the first word of the variable name in lowercase letter and then to capitalize the first character of the second and subsequent words. (T/F)
True
The following two expressions will always yield identical results: (T/F)
(a + b) / c
a + b / c
False
An uninitialized variable is a variable that has been declared and automatically initialized to zero. (T/F)
False
A sequence of characters that is used as data is called a String. (T/F)
True
In a flowchart, the symbol that represents an assignment statement is an oval. (T/F)
False
Not oval that’s start end
it’s a processing symbol (rectangle)
Pseudocode is often used to plan out a program because the programmer does not have to worry about syntax rules. (T/F)
True
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. (T/F)
True
In a mathematical expression, addition and subtraction will be evaluated before multiplication (T/F).
False
Variable names cannot include spaces. (T/F)
True
The variable name myBookTitle
is written in camelCase convention. (T/F)
True
Flowcharts and pseudocode documents are the same thing.(T/F)
False
Which of the following error types produces incorrect results but does not prevent the program from running?
A) Logic
B) Syntax
C) Human
A) Logic errors
The program development cycle is made up of _____ steps that are repeated until no errors can be found in the program.
5 steps are:
1. Requirements/analysis info
2.Designing
3.Coding
4.Testing
5.Implementation/Deployment to an audience
_________ is an informal language used by programmers to create models of programs.
Pseudocode
A(n) __________ is a diagram that graphically depicts the steps that take place in a program.
Flowchart
The __________ structure consists of a set of statements that execute in the order in which they appear.
Sequence
A(n) ___________ symbol is used for an assignment statement in a flowchart.
Processing symbol (Rectangle)
The __________ operator is used to raise 5 to the second power.
Caret symbol
What is the value of the following expression?
12 - 4*3 / 2 + 9
15
FOLLOW PEMDAS UNLESS INDICATED BY ()
4*3=12
12/2=6
12-6=6
6+9=15
What is the value of the following expression?
(12 - 4) *3 / 2 + 9
21
DO PARANTHESIS FIRST
THEN PEMDAS LEFT TO RIGHT
(12-4)=8
8*3=24
24/2=12
12+9=21
Which of the following is NOT a variable data type?
Numeral, Real, String, Integer.
Numeral
A(n) __________ is a name that represents a value which cannot be changed during the program’s execution.
Named constant
The process of stepping through each of a program’s statements, one by one to see what each statement does is known as ____________.
Hand tracing
The following is an example of a(n) _____________ statement.
Set rate = 6.25
Assignment
(would be in the rectangle)