AP Computer Science Principles (Final Exam part 2)

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Donald Bonneville
Used 572+ times
FREE Resource
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
Similar Resources on Wayground
34 questions
Multimedia Webpage Design 1.01

Quiz
•
9th - 12th Grade
25 questions
STARTER Hardware, OS & Malware

Quiz
•
10th - 11th Grade
25 questions
CFU 1.1 - Digital Literacy Notes

Quiz
•
9th Grade
25 questions
Networks, Internet Communication and Protocols

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

Quiz
•
8th Grade - University
25 questions
Programming in Python

Quiz
•
9th Grade
25 questions
Arduino Programming Basics Quiz

Quiz
•
9th Grade
29 questions
1.02 understand digital communication products

Quiz
•
9th Grade - University
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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade