Which Java type(s) can hold decimals? (Choose all that apply)
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
Computers
•
9th Grade - University
•
Medium
Raymond Chan
Used 578+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
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
Similar Resources on Quizizz
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
12 questions
javaquizvivek

Quiz
•
University
17 questions
"switch" Java Statement - 1

Quiz
•
9th - 10th Grade
20 questions
Computer Application Practice Quiz Class 10

Quiz
•
10th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
17 questions
Coding Titans

Quiz
•
University
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University