
AP CSA Topic 1 Primitive Types
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Used 6+ times
FREE Resource
Enhance your content
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the resulting value of x?
int x;
x = 2.3;
Error
2
2.3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the resulting value of x?
double x;
x = (int) (2 + 3.3);
Error
5
5.3
5.0
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which variable type is NOT a primitive variable type?
boolean
String
int
double
char
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a logic error?
An mistyped statement that causes the compiler to throw an exception.
An illegal operation that causes the compiler to throw an exception.
An illegal operation that causes the program to have a run-time error.
An error a programmer makes that causes the program to behave differently than expected.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the long form of x+=5?
x = 5;
x = + 5;
x = x + 5;
y = x + 5;
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given this code, what will be the output
23
num19
Your num2 is 17
16
Your num2 is 18
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Given this code, what will be produced
17
Your num2 is 17
Your num2 is 18
18
compile time error
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
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
20 questions
INFORMATIKA KELAS IX
Quiz
•
9th Grade
20 questions
С++ циклы
Quiz
•
10th Grade
20 questions
Sumatif (Berpikir Komputasional)
Quiz
•
10th Grade
20 questions
Pengetahuan Dasar Komputer
Quiz
•
9th - 12th Grade
12 questions
Computing laws
Quiz
•
9th - 12th Grade
20 questions
Teknik Layanan Jaringan
Quiz
•
12th Grade
15 questions
Quis Keamanan Data
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
18 questions
Artificial Intelligence and Machine Learning Quiz
Quiz
•
9th Grade
35 questions
Computer Terminology Exercise #1 ( Multiple Choice)
Quiz
•
9th Grade
20 questions
Computer Components Exercise #4 - CTEA
Quiz
•
9th - 12th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade