AP CSA | U2_L1 Variables
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Cyber Professor - Mr. B
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 2 pts
What are the references for three basic data types?
string
int
flt
str
float
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What data type should we use to hold if you have a pet?
int
double
boolean
String
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What type of data is the following?: X = "195.67"
Float
String
Boolean
integer
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
True or false:
This is a correct initialization of a variable.
boolean happy = true;
true
false
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
True or false:
This is a correct initialization of a variable.
String favoriteDay = "Saturday";
true
false
6.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
What are the final values of x and y in the following code segment?
int x = 3;
int y = ++x * 5 / 2;
x = 3, y = 10
x = 4, y =7
x = 4, y = 10
x = 3, y = 7
This code segment will not compile.
7.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What does the following Python program print?
X = "Hello World!"
Y = "I can code "
Z = " In Python"
print( X + Y + Z)
Hello World! I can code In Python
Hello World!I can code In Python
Hello World! I can codeIn Python
Hello World!I can code In Python
Answer explanation
There is a space after the word "code" and before the word "In".
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
Already have an account?
Similar Resources on Wayground
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th Grade
20 questions
Jaringan Komputer
Quiz
•
9th - 12th Grade
20 questions
2.3.1 Graph Traversal & Path Finding Algorithms
Quiz
•
12th Grade - University
20 questions
Ulangan Harian I Teknologi Layanan Jaringan (softswitch & VoIP)
Quiz
•
12th Grade
20 questions
Ethics and Morals
Quiz
•
12th Grade
20 questions
Technology 9th Grade
Quiz
•
9th - 12th Grade
20 questions
Introduction to JavaScript
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
