
Java Variables 1.1 to 1.4 Review
Quiz
•
Computers
•
11th Grade - University
•
Medium
Brent Hopkins
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a primitive data type in java?
int
boolean
number
double
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to know if a user has a sibling. What type of variable should you create?
int
double
string
boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way of defining a String variable?
String name = "John";
String name = "John"
String name = John;
String name "John";
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int x = 5;
int y = 6
int z = 50;
System.out.println(x + y + z);
What will be the output?
61
5650
66
x + y + z
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the right way of defining char variable?
char myGrade = 'B';
char myGrade = "B";
char myGrade 'B';
char myGrade = "B"
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int sum1 = 100 + 50;
int sum2 = sum1 + 250;
int sum3 = sum2 + sum2;
System.out.println(sum3);
What will be the final output?
950
800
sum2sum2
sum1250
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int x = 10;
x = x + 5;
System.out.println(x);
What will be the output?
15
5
55
x5
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
pointers and structures
Quiz
•
University
15 questions
11° Evaluación bimestral de informática
Quiz
•
11th Grade
10 questions
Python Testing
Quiz
•
9th - 12th Grade
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
14 questions
Bài 17: Biến và lệnh gán
Quiz
•
11th Grade
13 questions
SC 025 Topical Test 3 - Design a Solution
Quiz
•
12th Grade
15 questions
PRUEBA DE CONOCIMIENTOS
Quiz
•
University
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
