Exam 5: Looping
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
To decrement a number means to increase its value.
Free
(True/False)
4.9/5
(34)
Correct Answer:
False
The while loop has two important parts: a condition that is tested and a statement or block of statements that is
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
B
are C++ operators that change their operands by one.
A.++ and --
B.+ and -
(Multiple Choice)
4.9/5
(40)
A while loop may have a semicolon after the test expression and before the body of the loop, but it is not required.
(True/False)
4.8/5
(35)
When a loop is nested inside another loop, the outer loop goes through all its iterations for each iteration of the inner loop.
(True/False)
4.9/5
(35)
The while loop has two important parts: a condition that is tested and a statement or block of statements that is executed
(Multiple Choice)
4.9/5
(34)
A while loop is somewhat limited because the counter can only be incremented or decremented by one each time through the loop.
(True/False)
4.9/5
(37)
A while loop is somewhat limited, because the counter can only count up, not down.
(True/False)
4.9/5
(34)
A(n)is a variable that is regularly incremented or decremented each time a loop iterates.
(Multiple Choice)
5.0/5
(35)
An initialization expression may be omitted from the for loop if no initialization is required.
(True/False)
4.9/5
(36)
The ideal type of loop to use if you want a user to enter exactly 20 values is a(n)loop.
(Multiple Choice)
4.7/5
(31)
The ideal type of loop to use for repeating a menu is a(n)_ loop.
(Multiple Choice)
4.9/5
(34)
You may define a(n)in the initialization expression of a for loop.
(Multiple Choice)
4.7/5
(37)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)