
CS Primitive Types 1
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Christopher Spaulding
Used 2+ times
FREE Resource
Enhance your content in a minute
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)
Create a free account and access millions of resources
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
0 questions
10AP Computer Science Review
Quiz
•
0 questions
Data Types
Quiz
•
0 questions
Java Values and Data Types Quiz
Quiz
•
0 questions
11-27 Data Types in Java
Quiz
•
0 questions
Java Variables Quiz
Quiz
•
0 questions
CS 2 Unit 1 Review
Quiz
•
0 questions
Java Variables 1.1 to 1.4 Review
Quiz
•
0 questions
CF1 Hardware and Intro to Java
Quiz
•
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
