Exam 4: Looping
Exam 1: An Overview of Computers and Logic50 Questions
Exam 2: Understanding Structure50 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Looping50 Questions
Exam 5: Arrays50 Questions
Exam 6: Using Methods50 Questions
Exam 7: Object-Oriented Programming50 Questions
Select questions type
Case 1
You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.
-The following pseudocode is not working properly.The message should display five times.This is not working because the programmer made which common loop mistake? Declarations
Num count
String message = "OK"
While count < 5
Output message
Count = count + 1
Endwhile
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
A
Programmers use the term "____" to describe programs that are well designed and easy to understand and maintain.
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
C
Business reports that list no individual detail records,just totals,are called ____ reports.
Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
B
A(n)____ is a variable that you use to gather or accumulate values.
(Multiple Choice)
4.8/5
(36)
Commonly,you control a loop's repetitions by using either a counter or a ____ value.
(Multiple Choice)
4.9/5
(29)
A ____ is the structure that repeats actions while some condition continues.
(Multiple Choice)
4.8/5
(35)
When a loop control variable is numeric,its value is often altered by ____ it,or adding to it.
(Multiple Choice)
4.8/5
(43)
Many programmers prefer starting their counted loops with a variable containing a(n)____ value.
(Multiple Choice)
4.9/5
(36)
The number of times a loop executes should always depend on a constant.
(True/False)
4.8/5
(33)
A(n)____ value is a number you use to increase a loop control variable on each pass through a loop.
(Multiple Choice)
4.9/5
(32)
The decision that controls every loop is always based on a ____ expression.
(Multiple Choice)
4.9/5
(47)
It is always a mistake to fail to initialize a loop's control variable.
(True/False)
4.8/5
(38)
A value such as "Y" or "N" that a user must supply to stop a loop is called a(n)____ value.
(Multiple Choice)
4.7/5
(33)
As long as a Boolean expression remains true,a ____ loop's body executes.
(Multiple Choice)
4.8/5
(31)
An accumulator is the same thing as a counter that you use to count loop iterations.
(True/False)
4.7/5
(44)
While making decisions is what makes computers seem intelligent,it's looping that makes computer programming both efficient and worthwhile.
(True/False)
4.9/5
(42)
Case 1
You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.
-The following pseudocode is not working properly.The message should display 10 times.What needs to be changed? for count = 0 to 10
Output "I love programming!"
Endfor
(Multiple Choice)
4.8/5
(31)
Write the logic for a program that outputs every even number from 2 through 16.
(Short Answer)
4.8/5
(39)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)