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
14 questions
Lets explore Java

Quiz
•
University
20 questions
Java Summative Assessment 2

Quiz
•
12th Grade
15 questions
Basic Java Quiz

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
15 questions
Java Math

Quiz
•
9th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
11 questions
Array

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
67 questions
Course Recap Ptho May25

Quiz
•
University
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade