What will the following algorithm display?
a 13
b 17
a a + 1
c a/7
DISPLAY(c)
DISPLAY(a)
DISPLAY(b)
AP CSP Algorithms

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Dr. Moriarty
Used 243+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2, 14, 17
13, 17, 5
2, 12, 2
14, 17, 2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following algorithm display?
a ← 13
a ← 17
a ← a+1
DISPLAY(a)
13
17
18
19
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following algorithm display?
a ← 11
a ← a + 35
a ← a + 6
a ← a MOD 2
a ← a x b
DISPLAY (a)
0
42
84
126
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Extra Credit: Before deciding on a Hedgehog, Sega originally planned to make Sonic a...
rabbit
goose
cat
dinosaur
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following display?
a ← "Milk"
a ← "Cookies Soda"
a ← "Chips"
b ← a + "put them in a bag so they stay crisp"
Milk
Milk Cookies Soda
Put them in a bag so they crisp
Milk Cookies Soda Chips put them in a bag so they stay crisp
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value displayed after the program is run?
a 8
b 3
c 2
a b * c
c c+4
display "a"
display (c)
a 8
a 6
8 6
16 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value displayed after the program is run?
a 8
b 3
c 2
a b*c
c c+4
DISPLAY("a")
DISPLAY("c")
a 8
a c
8 6
16 4
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Computer Vocabulary

Quiz
•
9th - 12th Grade
20 questions
AQA GCSE Computer Science -3.1.1 Representing algorithms

Quiz
•
8th - 10th Grade
20 questions
pseudo code level 2

Quiz
•
9th - 12th Grade
20 questions
Unit-1 Computational Thinking

Quiz
•
9th - 12th Grade
20 questions
APCSP Unit 1 Vocabulary

Quiz
•
10th - 12th Grade
20 questions
Big Idea 2: Data Questions

Quiz
•
9th - 12th Grade
20 questions
Unit 1- Intro to Computer Science Review

Quiz
•
11th Grade
19 questions
Programming Recap

Quiz
•
9th - 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