AP Computer Science Principles
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Thomas Martinez
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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?
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
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
13 questions
Year 10 Data Transmission
Quiz
•
9th - 12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Diagnoses and Identification of Faulty Computer and Network
Quiz
•
9th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
9 questions
IT related jobs
Quiz
•
9th Grade
10 questions
S2 Subject Choice Quiz
Quiz
•
8th - 10th Grade
16 questions
Online Search Skills
Quiz
•
7th - 12th 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
