Java Math

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Bob Powers
Used 57+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(4 / 5);
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(4 * 2.0);
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println("b" + 2 * 2);
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(1 / 2.0);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
int x = 5.0 + 2;
7
7.0
There will be a runtime error
There will be a syntax error
5.02
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
String x = "" + 4 + 2;
"6"
"6.0"
There will be a runtime error
There will be a syntax error
"42"
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(17 % 3);
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Algoritmi Java

Quiz
•
11th Grade
15 questions
Java Strings and Math Quiz

Quiz
•
12th Grade
15 questions
Class X - Java 1

Quiz
•
10th Grade
10 questions
Logic Building in Java Part 1

Quiz
•
6th - 9th Grade
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
16 questions
Java Conditional Statements

Quiz
•
9th Grade
10 questions
Java: repetition control structure for & while

Quiz
•
10th - 12th 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