Search Header Logo

G12_Week7

Authored by Areej Alhawawreh

Computers

12th Grade

Used 1+ times

G12_Week7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Fill in the blank so people 18 years and older are told to vote.
if ( age _________ 18 ) System.out.println("too young!"); else System.out.println("GO VOTE!");

>
>=
<=
<

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is my result?

john = 10

if (john > 6)

print("John is getting ice cream")

else

print("John is getting apple juice")

print("John is getting grapes")

John is getting ice cream

John is getting grapes

John is getting apple juice

John is getting grapes

John is getting apple juice

John is getting ice cream

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Is "X" printed?

YES

NO

4.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

What is the output for the given program?

20 is greater than 18

Error

Blank Screen

None

5.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

Media Image

What is the output of the following program?

blank screen

Statement outside if block

The number is negative

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The library that we include at the beginning of our program in order to read data from the user is called...

Scanner.java.util

util.java.Scanner

java.util.Scanner

java.Scanner.util

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Integers, strings, doubles, etc. are data types used when creating ....

programs

variables

methods

Scanners

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?