
Java Unit 1
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Jennie Phipps
Used 5+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to indicate a new line?
\n
\"
\'
\\
\t
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a legal variable name in Java?
3average
char
test.1
ans
the answer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming that "scan" is a properly initialized Scanner variable, which of the following correctly inputs a String?
String val = scan.nextValue();
String val = scan.nextDouble();
String val = scan.nextInt();
String val = scan.nextLine();
String val = nextDouble();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a primitive data type?
double
int
char
String
All of the above options are primitive data types
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Put the following data types in order from smallest to largest (in terms of memory used).
int, char, double, String
int, double, char, String
char, int, double, String
double, char, int, String
double, int, char, String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is modular division NOT used for?
money calculations
patterns
converting decimals to whole numbers
testing even and odd numbers
time calculations
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is (6 % 2) * 7?
21
7
1
0
14
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
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
16 questions
Computer Hardware--Outside
Quiz
•
9th - 12th Grade
15 questions
EXAMEN EXCEL
Quiz
•
11th Grade
15 questions
Bimestral 2P
Quiz
•
11th Grade
20 questions
c# Diziler
Quiz
•
10th Grade
18 questions
linguaggio C++
Quiz
•
9th - 12th Grade
21 questions
Computer System
Quiz
•
9th - 11th Grade
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th 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
