Java Basics MP1 Test 3
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Patrick Bryar
Used 2+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A variable that holds a decimal number
double
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
It is a data type used to hold multiple characters, like words and sentences.
float
char
date
String
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will be produced by:
System.out.println("Hello");
System.out.print("Karel");
Hello
Karel
HelloKarel
Hello\nKarel
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What does the code segment output?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after this code runs?
int x = 5;
x = 10;
x = 4;
5
10
4
true
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? int n = 5; n++; n++; n += n; System.out.println(n);
12
40
14
18
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Refer to the following code segment:
The student wanted the output to be: 1 / 4 = 0.25
Which change to the first line would get the correct answer?
int myDouble = 1/4;
double myDouble = (double) 1/4;
double myDouble = (int) 1/4;
double myDouble = (int) (1.0/4.0);
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
20 questions
Network topologies
Quiz
•
8th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
13 questions
Copyrights and Wrongs Assessment
Quiz
•
9th - 12th Grade
15 questions
ONLINE SAFETY
Quiz
•
11th Grade
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
20 questions
KELAS 7 1
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
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
