Lesson 3.5 - If Structures Practice

Lesson 3.5 - If Structures Practice

11th Grade

16 Qs

quiz-placeholder

Similar activities

Excel

Excel

10th - 12th Grade

15 Qs

Algorithms

Algorithms

10th - 11th Grade

20 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

1.3.1 Networks #1 LAN's, Client-Server, Peer to Peer

1.3.1 Networks #1 LAN's, Client-Server, Peer to Peer

9th - 11th Grade

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Intro to Computer Programming

Intro to Computer Programming

9th - 12th Grade

14 Qs

AI Checkpoint 1 Revision

AI Checkpoint 1 Revision

9th - 12th Grade

16 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

Lesson 3.5 - If Structures Practice

Lesson 3.5 - If Structures Practice

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

SAMUEL KEENER

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of boolean statements in Java?

To perform arithmetic calculations

To compare values and determine their relationship

To print output on the console

To create loops and iterations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to check if two values are equal in Java?

==

<=

>=

>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following boolean expression in Java:

System.out.println(6 > 3) ?

true

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following boolean expression in Java: !(4 == 4)?

true

false

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you write a boolean expression to check if a variable "age" is greater than or equal to 18 in Java?

age >= 18

age <= 18

age == 18

age > 18

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a boolean variable in Java?

boolean isTrue = 1;

boolean isTrue = 'true';

boolean isTrue = true;

boolean isTrue = '1';

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following boolean expression in Java:
System.out.println(5 != 5) ?

true

false

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?