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
GCSE Computer Science Programming Knowledge Check Jan 19

Quiz
•
10th Grade
20 questions
Programming Quiz

Quiz
•
1st - 10th Grade
20 questions
Unit 2 - Testing Algorithms

Quiz
•
12th Grade
18 questions
2.3.1. Analysis Design and Comparison of Algorithms

Quiz
•
12th Grade
18 questions
Microbit Revision y7

Quiz
•
6th Grade - University
20 questions
Operator Aritmetika dan Perbandingan

Quiz
•
10th Grade
18 questions
NEW_SMP_Mls8_Quiz

Quiz
•
7th - 12th Grade
28 questions
CSP Unit 7 Review Code.org

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade