Java Refresher

Java Refresher

11 Qs

quiz-placeholder

Similar activities

Salinan PAT K6 PAbP 3.11 fix

Salinan PAT K6 PAbP 3.11 fix

KG - University

9 Qs

แบบทดสอบก่อนเรียน เรื่องอินเทอร์เน็ต

แบบทดสอบก่อนเรียน เรื่องอินเทอร์เน็ต

KG - University

10 Qs

Urban Problems - Chapter 7 - Critical Urban Theory

Urban Problems - Chapter 7 - Critical Urban Theory

KG - University

12 Qs

soal awal

soal awal

KG - University

11 Qs

Greeting and Farewells in Spanish

Greeting and Farewells in Spanish

6th Grade

10 Qs

Unit 2: Environment and People

Unit 2: Environment and People

KG - University

10 Qs

Veterans Day

Veterans Day

KG - University

9 Qs

Java Refresher

Java Refresher

Assessment

Quiz

others

Easy

Created by

Maryam Elahi

Used 1+ times

FREE Resource

AI

Enhance your content

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these statements would print the line "Hello World" to standard output?
system.out.println("Hello World");
System.out.println("Hello World")
System.out.println("Hello World");
system.out.println(Hello World);

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these is NOT an acceptable variable name?
fourWheels
_fourWheels
4wheels
$wheels

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of these is the correct way to declare a variable age and make it equal to 18?
int age = 18;
int age = 18
Integer age = 18;
age = 18;

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which variable type would you use if you want to use decimals?
char
int
double
String

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of these is the correct way to declare a variable hello and make it equal to "Hello World"?
char hello = "Hello World";
String hello = "Hello World";
String hello = Hello World;
char[] hello = "Hello World";

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What is the output of the following java program? 
7 35
Error
35 7

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these variable types is NOT primitive?
int
char
boolean
String

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?