
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
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
19 questions
level of software testing
Quiz
•
11th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
12 questions
H7.P1&P2.Nova2.Geluid.mhv
Quiz
•
4th - 10th Grade
20 questions
EVALUASI BAB 5 & BAB 6
Quiz
•
12th Grade
16 questions
Quiz Pemrograman Java dengan netbeans
Quiz
•
10th Grade - University
16 questions
Conditions
Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
