Chapter 4 and Structured program review

An operator that works on integers and yields the remainder when dividing one number by another. In C++, it is denoted with a percent sign (%).
Modulus
Nesting
Chaining
Recursion
A block of statements that may or may not be executed depending on some situation
Chaining
Modulus
Conditional
Recursion
A way of joining several conditional statements in sequence.
Nesting
Chaining
Conditional
Modulus
Putting a conditional statement inside one or both branches of another conditional statement.
Recursion
Infinite recursion
Nesting
Chaining
The process of calling the same function you are currently executing.
Infinite recursion
Recursion
Nesting
Chaining
A function that calls itself recursively without ever reaching the base case.
Recursion
Nesting
Chaining
Infinite recursion
Introduced as a means to choose between two actions based on a condition.
Alternative Execution
If-else statement
Chained conditionals
Nested Conditionals
Statements executed one after the other in the order written
Execution
Sequential execution
Transfer of control
Argument
When the next statement executed is not the next one in sequence is called ___________
Sequential Execution
Transfer
Data transfer
Transfer of control
All programs written in terms of 3 control structures is called _______
Bohn and Jakopini
Bohrn and Jacobini
Bohm and Jacopini
Bohm and Jacopinii
Graphical representation of an algorithm
Flowchart
Single entry control structures
Data charts
Control structure
The action symbol
Square
Oval
Circle
Rectangle
Indicates the beginning or end of a program or a section of code
Rectangle
Circle
Oval
Square
Connect exit point of one control structure to entry point of the next (control-structure stacking). Makes programs easy to build
Single-entry/single-exit control structures
Single control structures
Exit control structures
Entry control structures
None of the above
Used to choose among alternative courses of action is called Selection Structure
True
False
Indicates decision is to be made
Square
Diamond
Triangle
Circle
Only performs an action if the condition is true
If
Else
Else if
If/else
Specifies an action to be performed both when the condition is true and when it is false
Else if
If/else
If
Else
Takes three arguments (condition, value if true, value if false)
Ternary conditional operator
Fourthary conditional operator
Secondary conditional operator
Conditional operator
Set of statements within a pair of braces
Compound statement
Argumentative Statement
Compound statements with declarations is called a Block
True
False
Errors caught by compiler
Block
Syntax errors
Logic errors
Human error
Logical errors have not effect at execution time
True
False
Loop repeated until counter reaches a certain value
Controlled repetition
Repetition
Counter-controlled repetition
Non of the above
Also called signal value, dummy value, or flag value. Also indicates “end of data entry.” Loop ends when user inputs the value.
Break Values
Controlled Value
Counter Value
Sentinel Value
What are the three phases of programs (must be in order)
Processing -> termination -> initialization
Processing -> initialization -> termination
Initialization -> processing -> termination
Input -> process -> end of program
None of the above
It is a phase of programs. Inputs data values and adjusts program variables accordingly
Processing
Termination
Initialization
Arranging
A phase of a program, calculates and prints the final results
Termination
Output
End
Return (0)
A phase of a program, initializes the program variables
Input
Processing
Initialization
Termination
Increment Operator
--
++
Decrement Operator
--
++
What are examples of Preincrementing (choose 1)
++c
--c
!!c
$$c
None of the above
What are examples of postincrementing (choose 1)
C!!
++c
--c
C++
C--
{"name":"Chapter 4 and Structured program review", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"An operator that works on integers and yields the remainder when dividing one number by another. In C++, it is denoted with a percent sign (%)., A block of statements that may or may not be executed depending on some situation, A way of joining several conditional statements in sequence.","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker