Search Header Logo
If statements

If statements

Assessment

Presentation

Computers

9th Grade - University

Medium

Created by

Brian Ciavarella

Used 36+ times

FREE Resource

3 Slides • 9 Questions

1

If statements

Slide image

2

Multiple Choice

Given a = true and b = false, what is the truth value of:

a == b

1

true

2

false

3

Multiple Choice

Given a = true and b = false, what is the truth value of:

a != b

1

true

2

false

4

Multiple Choice

Given a = 7and b = 8, what is the truth value of:

a != b

1

true

2

false

5

Multiple Choice

Given a = 7and b = 8, what is the truth value of:

a <= b

1

true

2

false

6

Multiple Choice

Given a = 7and b = 8, what is the truth value of:

a >= b

1

true

2

false

7

Multiple Choice

Given a = 7and b = 8, what is the output of :


if(a >= b){

System.out.println("true");

}

else{

System.out.println("false");

}

1

true

2

false

8

Multiple Choice

Given a = 7and b = 8, what is the output of :


if(a == b){

System.out.println("true");

}

else{

if(a < b){

System.out.println("false");

}

else{

System.out.println("true");

}

}

1

true

2

false

9

Multiple Choice

Given a = 17and b = 8, what is the output of :


if(a == b){

System.out.println("true");

}

else{

if(a < b){

System.out.println("false");

}

else{

System.out.println("true");

}

}

1

true

2

false

10

Multiple Choice

Given a = 17and b = 8, what is the output of :


if(a > b && a != b){

System.out.println("true");

}

else{

System.out.println("false");

}

1

true

2

false

11

AND OR NOT

12

Slide image

If statements

Slide image

Show answer

Auto Play

Slide 1 / 12

SLIDE