Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
Computers
•
9th Grade - University
•
Medium
Raymond Chan
Used 622+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
JavaScript and Graphics

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

Quiz
•
11th Grade - University
15 questions
CODE ZENITH

Quiz
•
University
20 questions
TGT APCSA

Quiz
•
11th Grade
15 questions
Coding club Summit Online Quiz

Quiz
•
University
20 questions
Array

Quiz
•
12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade