2021 Programming Java Finals Review

2021 Programming Java Finals Review

9th - 12th Grade

33 Qs

quiz-placeholder

Similar activities

Unit 5 and 6 Test Quiz - Computer programming - java

Unit 5 and 6 Test Quiz - Computer programming - java

9th - 12th Grade

30 Qs

PBO XI PTS GANJIL

PBO XI PTS GANJIL

11th Grade

30 Qs

Data storage and compression

Data storage and compression

9th - 10th Grade

34 Qs

Pemrograman Berorientasi Objek

Pemrograman Berorientasi Objek

11th Grade

35 Qs

Chapter 1 - Data Representation (IGCSE Computer Science)

Chapter 1 - Data Representation (IGCSE Computer Science)

9th - 10th Grade

30 Qs

bé sủi của mấy em

bé sủi của mấy em

9th - 12th Grade

34 Qs

Produktif RPL

Produktif RPL

12th Grade

30 Qs

PBO Kelas 11

PBO Kelas 11

11th Grade

30 Qs

2021 Programming Java Finals Review

2021 Programming Java Finals Review

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brian Bass

Used 7+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in Java?

System.out.println("Hello World");

Console.WriteLine("Hello World");

print ("Hello World");

echo("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java is short for "JavaScript".

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Java code?

//This is a comment

/* This is a comment

# This is a comment

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

Txt

string

myString

String

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

float x = 5;

int x = 5;

num x = 5

x = 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the floating number 2.8?

int x = 2.8f;

float x = 2.8f;

x = 2.8f;

byte x = 2.8f

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to find the length of a string?

getSize()

len()

getLength()

length()

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?