Java-Control Statements Part 1

Java-Control Statements Part 1

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

9.1 Homework #3

9.1 Homework #3

9th Grade

20 Qs

B Words GCSE Computer Science

B Words GCSE Computer Science

1st - 10th Grade

15 Qs

computer Lab Manners

computer Lab Manners

5th - 10th Grade

19 Qs

Visual Basic Assessment

Visual Basic Assessment

11th - 12th Grade

21 Qs

PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4

PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4

9th - 12th Grade

15 Qs

Trắc nghiệm Tin 10-Chủ đề A

Trắc nghiệm Tin 10-Chủ đề A

10th - 11th Grade

20 Qs

Acceptable Use Policy

Acceptable Use Policy

6th - 9th Grade

16 Qs

UNIT 1.2 MEMORY

UNIT 1.2 MEMORY

10th Grade

19 Qs

Java-Control Statements Part 1

Java-Control Statements Part 1

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

vijayshree sundar

Used 30+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Boolean values are: 

True / False
Yes / No
Right / Wrong

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Java supports six relational operators that are used to make comparisons: =, <, >, <=, >=, =!

True
False

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Is this code segment is correct?
if(quizScore == 10)
System.out.println("Perfect score");

Yes
No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A structure consisting of a sequence of statements enclosed in braces, functioning as if it were a single statement.

compound statement
conditional expression
condition
branch

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ternary operator that has the syntax expression1 ? expression2 : expression3, which is equivalent to an if�else statement where expression1 is the condition and if true expression2 is executed, otherwise expression3 is executed.

conditional operator
conditional expression
equality operator
branch

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

WHICH TYPE OF DECISION STRUCTURE IS THIS?
if (x==10)
{
          if (y==20)
          {
                    System.out.println("Coordinates: 10, 20");
          }
}

Switch
If Else if 
If else (binary choice)
Nested If

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

WHAT DECISION STRUCTURE WORKS BEST IF YOU HAVE MORE THAN TWO POSSIBLE ANSWERS (MULTIPLE CHOICE) TO A QUESTION, AND THOSE ANSWERS CAN BE INTEGER OR CHARACTER BASED?

Nested If Statements
An If statement
A Switch statement
If else if statements

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?