Java - Flow of Control Quiz

Java - Flow of Control Quiz

9th - 12th Grade

26 Qs

quiz-placeholder

Similar activities

Algoritma dan Pemrograman

Algoritma dan Pemrograman

12th Grade - University

25 Qs

Piecewise Functions

Piecewise Functions

11th Grade

22 Qs

Test formativ IF

Test formativ IF

10th Grade

24 Qs

Cơ bản 1

Cơ bản 1

6th Grade - University

25 Qs

Java Quiz

Java Quiz

10th - 12th Grade

24 Qs

AS Data Types and Programming Constructs

AS Data Types and Programming Constructs

10th - 12th Grade

22 Qs

Q - Introducere C++

Q - Introducere C++

9th Grade

25 Qs

Comprog - (Review) - October 24, 2022

Comprog - (Review) - October 24, 2022

11th Grade

25 Qs

Java - Flow of Control Quiz

Java - Flow of Control Quiz

Assessment

Quiz

Mathematics, Computers

9th - 12th Grade

Hard

Created by

Everlast Chigoba

Used 53+ times

FREE Resource

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;
{
   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;
}

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--;
if (x > 0) x++;
else if (x < 0) x--;
if (x > 0) x++;
if (x < 0) x--;
else x = 0;
if (x == 0) x = 0;
else x++;
x--;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?