AP Computer Science Principles (Final Exam part 2)
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Donald Bonneville
Used 582+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ASCII is a character-encoding scheme that uses a numeric value to represent each character. For example, the uppercase letter “G” is represented by the decimal (base 10) value 71. A partial list of characters and their corresponding ASCII values are shown in the table above.
ASCII characters can also be represented by binary numbers. According to ASCII character encoding, which of the following letters is represented by the binary (base 2) number 1010100?
N
P
T
W
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every time someone clicks the "addItemButton", she would like the variable to increase by 1.
What code should Jasmine insert where it says <missing code> in order for her app to work?
cart total = 1;
cartTotal + 1;
cartTotal = cartTotal +1;
var cartTotal = cartTotal + 1;
var cartTotal + 1;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is a possible output when the following code segment executes? The ending position of the turtle is shown in each diagram. The starting position is shown as a white triangle in cases where the turtle starts and ends in different locations.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A Boolean expression is an expression that evaluates to which of the of the following?
Yes/Maybe/No
True/False
Any Integer
Integers between 1 and 10
Any single character
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following segment given in pseudo code. What will be displayed if grade is set to 70?
You passed!
Time to start studying again!
You passed! and Time to start studying again!
Nothing will be displayed
An error will occur on line 7; you cannot have an IF inside an ELSE statement
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true about while loops ?
While loops terminate after a fixed number of loops that is pre-determined
While loops terminate after a fixed number of loops that is determined after the loop executes once.
While loops run as long as a given boolean condition is true.
While loops run as long as a given boolean condition is false.
While loops are known as "forever loops" and never stop until the program is halted by the user.
Answer
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
Already have an account?
Similar Resources on Wayground
25 questions
UH 1-MYOB Manufaktur
Quiz
•
12th Grade
25 questions
Networks, Internet Communication and Protocols
Quiz
•
9th Grade
25 questions
Programming in Python
Quiz
•
9th Grade
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
25 questions
ATS GENAP 2025 INFORMATIKA 9
Quiz
•
9th Grade
25 questions
TIK01
Quiz
•
12th Grade
25 questions
Test IP
Quiz
•
12th Grade
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
