Java - Flow of Control Quiz

Java - Flow of Control Quiz

9th - 12th Grade

26 Qs

quiz-placeholder

Similar activities

ว33290 อินเตอร์เน็ตเพื่องานธุรกิจ (ม.6-3)

ว33290 อินเตอร์เน็ตเพื่องานธุรกิจ (ม.6-3)

9th - 12th Grade

21 Qs

PTS REMEDIAL SUSULAN KELAS XI

PTS REMEDIAL SUSULAN KELAS XI

11th Grade

21 Qs

Retas paralelas intersectada por uma transversal

Retas paralelas intersectada por uma transversal

7th Grade - University

21 Qs

Review WarmUp

Review WarmUp

9th Grade

22 Qs

MATHS REVISION ( 2D/3D SHAPES, SYMMESTRY, FRACTION)

MATHS REVISION ( 2D/3D SHAPES, SYMMESTRY, FRACTION)

2nd Grade - University

22 Qs

Almenn stærðfræði III - Algebra (2)

Almenn stærðfræði III - Algebra (2)

10th Grade

23 Qs

Números racionais e reais

Números racionais e reais

12th Grade

23 Qs

Java - Flow of Control Quiz

Java - Flow of Control Quiz

Assessment

Quiz

Mathematics, Computers

9th - 12th Grade

Practice Problem

Hard

CCSS
L.1.1B, 6.EE.B.6, 2.MD.D.9

+2

Standards-aligned

Created by

Everlast Chigoba

Used 53+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?