Java Final review

Java Final review

6th Grade

46 Qs

quiz-placeholder

Similar activities

Soal Penyisihan LCC SAINS

Soal Penyisihan LCC SAINS

6th Grade

50 Qs

Smart Fun Competition

Smart Fun Competition

1st - 6th Grade

42 Qs

Scouts (Malaysia) Quiz

Scouts (Malaysia) Quiz

6th - 10th Grade

50 Qs

Social Expression

Social Expression

4th - 12th Grade

50 Qs

TNT 02

TNT 02

KG - 12th Grade

50 Qs

Unit 2: Nutrition and Health Quiz

Unit 2: Nutrition and Health Quiz

6th - 8th Grade

48 Qs

PreGED Q1 Review Spring 2022

PreGED Q1 Review Spring 2022

6th - 8th Grade

44 Qs

Chapter 5 Test: Discovering our Past -A History of the World

Chapter 5 Test: Discovering our Past -A History of the World

5th - 8th Grade

41 Qs

Java Final review

Java Final review

Assessment

Quiz

Education

6th Grade

Medium

Created by

Robert Silver

Used 1+ times

FREE Resource

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used for decimal values?

integer
string
boolean
float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java a string is a:

sequence of characters surrounded by quotes

data structure
boolean value
collection of integers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to create a String in Java?

"Hello, World" = String message;

String message = "Hello, World!";

message = Hello, World!;

String = "Hello, World!"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is acceptable as a variable name in Java for int type?

my Var

variable!

123variable
myVariable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following statement display when run?

System.out.println(5+2*4-1);

12

21

5+2*4-1

11

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following statements display when run?

String str1="Hello";

String str2="Goodbye";

String str3=str1+str2;

System.out.println(str3+str1);

Hello Goodbye Hello

str3+str1

HelloHelloGoodbye
HelloGoodbyeHello

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variable names can start with an underscore.

True
False

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?