Java Refresher

Java Refresher

11 Qs

quiz-placeholder

Similar activities

Animal Welfare and Ethics in Animal Production Quiz

Animal Welfare and Ethics in Animal Production Quiz

9th - 12th Grade

14 Qs

Madam C.J. Walker Reading ELA Test Prep

Madam C.J. Walker Reading ELA Test Prep

KG - University

15 Qs

 ELEMENTS OF ART TEST :

ELEMENTS OF ART TEST :

KG - University

15 Qs

Cold War

Cold War

9th - 12th Grade

15 Qs

Business environments

Business environments

10th Grade

15 Qs

Ch. 21 L2 Enlightenment Thinkers Formative Assessment

Ch. 21 L2 Enlightenment Thinkers Formative Assessment

9th Grade - University

12 Qs

Java Refresher

Java Refresher

Assessment

Quiz

others

Practice Problem

Easy

Created by

Maryam Elahi

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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?