G12_Week7

G12_Week7

12th Grade

10 Qs

quiz-placeholder

Similar activities

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Java Juggling

Java Juggling

University

10 Qs

turbo c

turbo c

12th Grade

10 Qs

Programación II Actuación 23-24

Programación II Actuación 23-24

12th Grade

10 Qs

Java Level 1 - D

Java Level 1 - D

12th Grade

15 Qs

Sains Komputer (Java) 2: Struktur Kawalan Pilihan

Sains Komputer (Java) 2: Struktur Kawalan Pilihan

10th Grade - University

10 Qs

Code.org APCSA Unit

Code.org APCSA Unit

10th - 12th Grade

10 Qs

Basics of JAVA

Basics of JAVA

University

11 Qs

G12_Week7

G12_Week7

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Areej Alhawawreh

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?