Which of the following is not a primitive type?

Comp Sci Primitive Types

Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Hard
CONNOR S
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
Similar Resources on Quizizz
30 questions
ATS Quiz Genap

Quiz
•
12th Grade
25 questions
Ulangan Harian XI 7 - Algoritma dan Pemrograman

Quiz
•
11th Grade
23 questions
Ôn Tập Buổi 6 IOT

Quiz
•
9th - 12th Grade
25 questions
quiz kotlin

Quiz
•
11th Grade
20 questions
Программирование на Python

Quiz
•
10th Grade
30 questions
embedded system (OOP program)

Quiz
•
11th Grade
20 questions
Python básico

Quiz
•
9th Grade
20 questions
Grade 12B Midterm Exam: ERDs, EHR, and SQL

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University