Java Refresher

Java Refresher

11 Qs

quiz-placeholder

Similar activities

I Am Malala Chapter Fourteen

I Am Malala Chapter Fourteen

6th - 8th Grade

13 Qs

Grade 10 Computer Application String Handling

Grade 10 Computer Application String Handling

KG - University

10 Qs

امتحان قياس القدرات- الطالب المبرمج - ++C

امتحان قياس القدرات- الطالب المبرمج - ++C

KG - University

10 Qs

Python

Python

KG - University

15 Qs

L1 Python Recall - Do Now

L1 Python Recall - Do Now

KG - University

8 Qs

Evaluare- Bazele Programării C++

Evaluare- Bazele Programării C++

KG - University

10 Qs

JFo Seção 3: Quiz 2 - L3-L5

JFo Seção 3: Quiz 2 - L3-L5

KG - University

16 Qs

Pre-test CTCC0323

Pre-test CTCC0323

KG - University

16 Qs

Java Refresher

Java Refresher

Assessment

Quiz

others

Easy

Created by

Maryam Elahi

Used 1+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?