Java Conditionals Unit 3

Java Conditionals Unit 3

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

LENGUAJE C

LENGUAJE C

11th Grade

13 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

ICT as Platform for Change

ICT as Platform for Change

11th - 12th Grade

10 Qs

emtech

emtech

12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

IT related jobs

IT related jobs

9th Grade

9 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Java Conditionals Unit 3

Java Conditionals Unit 3

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Rebekah Lang

Used 19+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the value of var1 after the code segment is executed?

1

2

9

10

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed as a result of the call conditionalTest(-1, -1)?

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if !(val < 80 || !(val <= 90))

 

Which of the following code fragments would have the same effect?

if (!(val>80)||val<=90)

if (val > 80 || !(val >= 90))

if (val >= 80 && val <= 90)

if (val > 80 && !(val <=90))

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The following truth table matches which Boolean condition?

 (A && B) || B

A || (B && A)

 (A || B ) && B

(A || B) || (!A || !B)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

A student programmed a video game to display different end messages depending on the final score. If the score is greater than or equal to 20, the game will print, “AMAZING!”. If the score is between 15-19 inclusive, the game will print out, “Well done.” If the score is between 10-14 inclusive, the game will print, “Do better.” And if the score is less than 10, the game will print, “Ouch.”

Will this code work as expected?

Yes

No

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the value of myNumber after the above code executes?

6

7

8

9

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be printed when this code segment is executed?

yes no yes

yes yes yes

yes no no

no yes yes

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?