The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age?

AP CSP 3.1, 3.3-3.8 Test 1 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Herman Galioulline
Used 47+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Boolean
number
string
list
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The value of first is true, and the value of second is true.
The value of first is true, and the value of second is false.
The value of first is false, and the value of second is true.
The value of first is false, and the value of second is false.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Step 1: Add num1 and num2 and store the result in the variable sum.
Step 2: Take the absolute value of sum and display the result.
Step 1: Subtract num1 from num2 and store the result in the variable diff.
Step 2: Take the absolute value of diff and display the result.
Step 1: Take the absolute value of num1 and store it in the variable absNum1.
Step 2: Take the absolute value of num2 and store it in the variable absNum2.
Step 3: Add absNum1 and absNum2 and display the result.
Step 1: Take the absolute value of num1 and store it in the variable absNum1.
Step 2: Take the absolute value of num2 and store it in the variable absNum2.
Step 3: Subtract absNum1 from absNum2 and display the result.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
val1 = true, val2 = true
val1 = true, val2 = false
val1 = false, val2 = true
val1 = false, val2 = false
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Selection Quiz 2

Quiz
•
12th Grade
10 questions
Visual Basic I

Quiz
•
10th - 11th Grade
15 questions
Eval. 1BIM - 1ro B

Quiz
•
7th Grade - University
10 questions
CSI U5L2 - Sequence & Selection

Quiz
•
10th Grade - University
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
17 questions
Python

Quiz
•
6th - 10th Grade
10 questions
SLR 9 - Advanced Programming Techniques - Part Two

Quiz
•
10th 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 Computers
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