Search Header Logo

Java Control Structures

Authored by Ciandra Pancho

Computers, Education, Instructional Technology

11th Grade - Professional Development

Used 73+ times

Java Control Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

allows selection of specific sections of code to be executed

decision control structures(if,else,switch)

repetition control structures(while,do-while,for)

branching statements(break,continue,return)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

allow executing specific sections of code a number of times

decision control structures(if,else,switch)

repetition control structures(while,do-while,for)

branching statements(break,continue,return)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

allows redirection of program flow

decision control structures(if,else,switch)

repetition control structures(while,do-while,for)

branching statements(break,continue,return)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

allows us to change the ordering of how the statements in our programs are executed

decision control structures

repetition control structures

control structures

branching statements

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

specifies that a statement(or block of code) will be executed if and only if a certain boolean statement is true.

if-else statement

if statement

else if statement

nested if-else statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int grade = 68;

if(grade > 60) {

System.out.println("Congratulations!");

}

"Congratulations!"

Congratulations!

Syntax Error

Compilation Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int grade = 68;

if(grade > 60) {

System.out.println("Congratulations!");

System.out.println("You passed!");

}

Congratulations!

You passed!

"Congratulations!"

"You passed!"

Congratulations

You passed

Access all questions and much more by creating a free account

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?