
Java Final review

Quiz
•
Education
•
6th Grade
•
Medium
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?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java a string is a:
sequence of characters surrounded by quotes
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!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following statement display when run?
System.out.println(5+2*4-1);
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variable names can start with an underscore.
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review

Quiz
•
6th Grade
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
21 questions
Convert Fractions, Decimals, and Percents

Quiz
•
6th Grade