G12_Week7

G12_Week7

12th Grade

10 Qs

quiz-placeholder

Similar activities

Java

Java

University

15 Qs

CuestionarioJava_1

CuestionarioJava_1

9th - 12th Grade

8 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Comprog-October 11, 2022

Comprog-October 11, 2022

11th - 12th Grade

10 Qs

Programación

Programación

12th Grade

12 Qs

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

Sains Komputer (Java) 1: Sintaks Asas & Pembolehubah

10th Grade - University

10 Qs

Week 4: Recap Java Programming

Week 4: Recap Java Programming

University

10 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?