
Java - Flow of Control Quiz
Authored by Everlast Chigoba
Mathematics, Computers
9th - 12th Grade
CCSS covered
Used 53+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
During program development, software requirements specify
how the program will accomplish the task
what the task is that the program must perform
how to divide the task into subtasks
how to test the program when it is done
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which phase of program development would you expect the programmer(s) to determine the classes and objects needed?
Software requirements
Software design
Software implementation
Software testing
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would not be considered an algorithm?
a recipe
a computer program
pseudocode
a shopping list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a programmer follows the four phases of program development as intended, which of the four phases should require the least amount of creativity?
Software requirements
Software design
Software implementation
Software testing
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The idea that program instructions execute in order (linearly) unless otherwise specified through a conditional statement is known as
boolean execution
conditional statements
try and catch
flow of control
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Of the following if statements, which one correctly executes three instructions if the condition is true?
if (x < 0)
a = b * 2;
y = x;
z = a – y;
a = b * 2;
y = x;
z = a – y;
{
if (x <0)
a = b*2;
y=x;
z=a-y;
}
if (x <0)
a = b*2;
y=x;
z=a-y;
}
if { (x < 0)
a = b * 2;
y = x;
z = a – y;
}
a = b * 2;
y = x;
z = a – y;
}
if (x <0)
{
a = b*2;
y = x;
z = a - y;
}
{
a = b*2;
y = x;
z = a - y;
}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the sets of statements below will add 1 to x if x is positive and subtract 1 from x if x is negative but leave x alone if x is 0?
if (x > 0) x++;
else x--;
else x--;
if (x > 0) x++;
else if (x < 0) x--;
else if (x < 0) x--;
if (x > 0) x++;
if (x < 0) x--;
else x = 0;
if (x < 0) x--;
else x = 0;
if (x == 0) x = 0;
else x++;
x--;
else x++;
x--;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?