Arithmetic Types Declare Initialize Relation Logical Ops
Quiz
•
Computers
•
9th Grade - University
•
Medium
Raymond Chan
Used 622+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
Which Java type(s) can hold decimals? (Choose all that apply)
int
float
double
String
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
34 % 35 % 36 % 37 % 38
0.00001919212
38
34
Impossible
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What does the following code print?
System.out.println(1 / 3);
0.3333333333333333
0
an error
0.3
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will the following code print?
system.out.println(2.0 / 9);
0.222222222222222 (14 - 15 significant digits)
0
error
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Consider the following code segment.
System.out.print("Java is");
System.out.println("fun ");
System.out.print("and cool!");
What is printed as a result of executing the code segment?
Java is fun and cool!
Java isfun
and cool!
Java is
fun
and cool!
Java is fun
and cool!
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following correctly assigns a value to the variable x?
x int = 5;
int x;
x = 5;
int x
x = 5
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which of the following correctly declares a variable x of type int?
x int = 5;
int x;
x = 5;
int x
x = 5
Create a free account and access millions of resources
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
15 questions
Arduino
Quiz
•
7th - 9th Grade
20 questions
การใช้โปรแกรม Google SketchUp
Quiz
•
11th Grade
12 questions
Tin học 2
Quiz
•
11th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
15 questions
ICT 0513 - Chapter 4 : System Unit
Quiz
•
University
20 questions
Informatika
Quiz
•
10th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
85 questions
Word Processing Review
Quiz
•
8th - 9th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
31 questions
Python Conditionals Review
Quiz
•
9th - 12th Grade
