
AP CSP Math (3.3)

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Herman Galioulline
Used 34+ times
FREE Resource
6 questions
Show all answers
1.
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.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
A teacher has a goal of displaying the names of 2 students selected at random from a group of 30 students in a classroom. Any possible pair of students should be equally likely to be selected. Which of the following algorithms can be used to accomplish the teacher’s goal?
Step 1: Assign each student a unique integer from 1 to 30.
Step 2: Generate a random integer n from 1 to 15.
Step 3: Select the student who is currently assigned integer n and display the student’s name.
Step 4: Generate a new random integer n from 16 to 30.
Step 5: Select the student who is currently assigned integer n and display the student’s name.
Step 1: Assign each student a unique integer from 1 to 30.
Step 2: Generate a random integer n from 1 to 30.
Step 3: Select the student who is currently assigned integer n and display the student’s name.
Step 4: Generate a new random integer n from 1 to 30.
Step 5: Select the student who is currently assigned integer n and display the student’s name.
Step 1: Assign each student a unique integer from 1 to 30.
Step 2: Generate a random odd integer n from 1 to 29.
Step 3: Select the student who is currently assigned integer n and display the student’s name.
Step 4: Generate a new random even integer n from 2 to 30.
Step 5: Select the student who is currently assigned integer n and display the student’s name.
Step 1: Assign each student a unique integer from 1 to 30.
Step 2: Generate a random integer n from 1 to 30.
Step 3: Select the student who is currently assigned integer n and display the student’s name.
Step 4: The student who was selected in the previous step is assigned 0. All other students are reassigned a unique integer from 1 to 29.
Step 5: Generate a new random integer n from 1 to 29.
Step 6: Select the student who is currently assigned integer n and display the student’s name.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following code segments can be used to interchange the values of the variables num1 and num2?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
temp ← word1
word3 ← word1
word1 ← temp
temp ← word1
word1 ← word3
word3 ← temp
temp ← word1
word1 ← word2
word2 ← word3
word3 ← temp
temp ← word3
word3 ← word2
word2 ← word1
word1 ← temp
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
10 20 30 40
21 30 40 50
21 40 30 40
21 40 30 50
Similar Resources on Wayground
6 questions
C# Programming

Quiz
•
9th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
Website Development - Lesson 2 Retrieval

Quiz
•
11th Grade
11 questions
J277/01, Computer Systems, June 2023

Quiz
•
12th Grade
10 questions
C#

Quiz
•
11th Grade
10 questions
ArrayLists

Quiz
•
11th - 12th Grade
5 questions
Resolución de problemas

Quiz
•
10th Grade
10 questions
2.1.2 Flowcharts and algorithms

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade