Unit 1 APCSA
Quiz
•
Computers
•
9th Grade - University
•
Medium
Thomas Wright
Used 13+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is not a primitive type?
int
double
String
boolean
char
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
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
1 min • 5 pts
What is the value of x after this code runs
int x = 5;
x = 10;
x*=2;
x+=3;
23
3
33
13
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the value of x after this code runs
int x = 5;
x = 10;
x = 4;
5
10
4
true
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
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
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the result of this expression?
(int) (5 + 2 / 3 + 1)
5
6
6.67
7
0
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which expression returns the 1’s place of an integer x?
x % 10
x / 10
x % 100
x + 1
x / 100
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
30 questions
IT security - 3
Quiz
•
9th Grade - University
27 questions
Data Structures Midterm Exam WRI
Quiz
•
University
34 questions
Data storage and compression
Quiz
•
9th - 10th Grade
30 questions
FINAL_QUIZ_TERM2_Authorware
Quiz
•
9th - 10th Grade
31 questions
Quiz#8: Elements of Film Form
Quiz
•
University
31 questions
OCR J275 Hardware Part A
Quiz
•
8th - 11th Grade
27 questions
ULANGAN BAB 1 INFORMATIKA DAN KETERAMPILAN GENERIK
Quiz
•
10th Grade
27 questions
Ulangan Harian Informatika Kelas 11
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
