
Comp Sci Primitive Types
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
Standards-aligned
CONNOR S
Used 2+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive type?
int
double
String
boolean
char
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about variables?
The memory associated with a variable of a primitive type holds an actual primitive value.
When a variable is declared final, its value can only be changed through a direct reassignment.
A variable originally created as an int can be changed to store a double through casting.
All of these choices are true
3.
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
Tags
CCSS.6.EE.A.2C
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper syntax to declare and initialize a variable called temperature to have the value 70.4?
int temperature = 70.4;
double temperature = 70.4;
temperature = 70.4;
dbl temperature = 70.4;
temperature = (double) 70.4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this expression?
(int) (5 + 2 / 3 + 1)
5
6
6.67
7
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which expression returns the 1’s place of an integer x?
x % 10
x / 10
x % 100
x + 1
Tags
CCSS.6.EE.B.6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of myInteger after this line of code is executed?
int myInteger = (int) 5.6;
6
5.6
5
9
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Producción de Contenido
Quiz
•
9th - 12th Grade
20 questions
Eva_Est_P1_11_PMV
Quiz
•
4th Grade - University
20 questions
12 TKJ Hosting, Domain & Jenis Layanan Hosting
Quiz
•
12th Grade
20 questions
quiz1B1
Quiz
•
7th Grade - University
21 questions
Direct Data Entry Devices, Advantages and Disadvantages
Quiz
•
7th Grade - University
20 questions
(Tin học 12) Bài 1 - Làm quen với trí tuệ nhân tạo
Quiz
•
12th Grade
20 questions
DPK 2.5
Quiz
•
10th Grade
20 questions
DPK Elemen 6 Bacaan
Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
11 questions
Halloween Trivia #2
Quiz
•
12th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
