
CS Primitive Types 1
Authored by Christopher Spaulding
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is this new variable?
___ num = 3.14524;
double
int
String
boolean
char
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store whole numbers in Java?
double
int
Integer
boolean
dub
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare and initialize a String variable in Java?
String strVar = "Hello";
strVar = "World";
strVar = Hello;
String strVar;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store true or false values in Java?
integer
double
String
boolean
character
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single letter or symbol in Java?
integer
char
double
String
boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a sequence of characters/letters/symbols in Java?
integer
char
double
String
boolean
7.
DRAG AND DROP QUESTION
30 sec • 1 pt
What is the proper way to make an if statement?
if (a) (b)
System.out.println("x is greater than 5") (c)
(d)
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
16 questions
DATA SCIENCE Assessment (April)
Quiz
•
8th - 12th Grade
20 questions
End of year quiz: Python
Quiz
•
9th Grade
20 questions
KTTX lần 01 Tin 11
Quiz
•
11th Grade
17 questions
ÔN TẬP CUỐI KỲ II TIN 8
Quiz
•
8th - 11th Grade
15 questions
Javascript Quiz 2
Quiz
•
11th Grade
16 questions
Boolean and Search Operators
Quiz
•
9th - 12th Grade
20 questions
Linux Directory Structures
Quiz
•
10th Grade - University
20 questions
Structure of a Webpage
Quiz
•
10th 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