
Java Lesson 9
Authored by Rohit Sharma
Other
5th Grade - University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
What will the following code segment print?
System.out.println(4 / 5);
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
What will the following code segment print?
System.out.println(4 * 2.0);
3.
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"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
int x = (int) 5.0 / 2;
2
2.5
There will be a runtime error
There will be a syntax error
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
double x = (double) 5 / (int) 2
2
2.5
There will be a runtime error
There will be a syntax error
2.0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
double x = (double) 5 / (int) 2
2
2.5
There will be a runtime error
There will be a syntax error
2.0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of num?
double num = Math.sqrt(49);
Access all questions and much more by creating a free account
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
10 questions
Quiz 11 (Media Content - Random)
Quiz
•
12th Grade
15 questions
PR2: RRL, Conceptual Framework and Methodology
Quiz
•
12th Grade
10 questions
Kasangkapan at Kagamitang Elektrikal
Quiz
•
5th Grade
10 questions
UK Knowledge Test
Quiz
•
University
10 questions
Alien Hand Syndrome
Quiz
•
University
10 questions
EFFECTIVE GROUP DISCUSSION
Quiz
•
9th Grade - University
16 questions
Sant Jordi
Quiz
•
5th Grade
12 questions
Từ tượng hình, từ tượng thanh
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
20 questions
Exponents
Quiz
•
6th Grade
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade