
Introduction to Java Quiz
Authored by Mrs. Latimer
Computers
11th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in Java?
`int number = 5;`
`int number = "5";`
`int number = 5.0;`
`int number = '5';`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid Java data type?
`integer`
`String`
`character`
`real`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet? ```java System.out.println(10 + 20); ```
`30`
`1020`
`10 + 20`
`Error`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a control structure in Java?
`if`
`loop`
`switch`
`both A and C`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable in Java?
`true`
`false`
`0`
`null`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to read input from the user in Java?
`Scanner`
`InputReader`
`BufferedReader`
`ConsoleReader`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression `5 % 2` in Java?
`2`
`1`
`0`
`5`
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
ID Quiz
Quiz
•
11th Grade
20 questions
TEST1.PY
Quiz
•
10th Grade - University
20 questions
EMPOWERMENT ONLINE QUIZ BEE 2
Quiz
•
11th Grade
18 questions
School Mangement System ICT 0417 IGCSE
Quiz
•
10th - 12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
20 questions
Pemrograman Dasar 3
Quiz
•
9th - 12th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade