What would be displayed after the following code is run?
AP Computer Science Final Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
David Guy
Used 217+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
2
-4
14
4
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Determine what is printed by the following code.
8
-16
-12
16
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
A student wrote the procedure below, which is intended to ask whether a user wants to keep playing a game. The procedure does not work as intended. Which of the following best describes the result of running the procedure?
The procedure returns TRUE when the user inputs the value "y" and returns FALSE otherwise.
The procedure returns TRUE when the user inputs the value "n" and returns FALSE otherwise.
The procedure returns TRUE no matter what the input is.
The procedure returns FALSE no matter what the input is.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Determine what is printed by the following code.
2 1 5
9 1 6
10 4 6
10 1 6
5.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
A program is created to perform arithmetic operations on positive and negative integers. The program contains the following incorrect procedure, which is intended to return the product of the integers x and y. A programmer suspects that an error in the program is caused by this procedure. Under which of the following conditions will the procedure NOT return the correct product? SELECT TWO ANSWERS:
When the values of x and y are both.
When the value of x is positive and the value of y is negative.
When the value of x is negative and the value of y is positive.
When the values of x and y are both negative.
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
In the program below, the initial value of X is 5 and the initial value of Y is 10. What is displayed as a result of running the program?
Foxtrot
Hotel
November
Yankee
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Defensive Design - GCSE Computer Science OCR

Quiz
•
10th Grade
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th Grade
25 questions
Subroutines

Quiz
•
9th - 11th Grade
25 questions
MIDTERM - BOOLEAN PRACTICE

Quiz
•
12th Grade
25 questions
Algorithms - python (GCSE)

Quiz
•
10th - 12th Grade
23 questions
GCSE CS - 2.5 Translators and Facilities of Languages

Quiz
•
9th - 11th Grade
25 questions
Understanding Strings and Functions Quiz

Quiz
•
8th Grade - University
25 questions
Introduction to Programming Quiz - HS

Quiz
•
11th 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
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th 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
26 questions
June 19th

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

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade