AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

29 questions

Show all answers

1.

FLASHCARD QUESTION

Front

According to ASCII character encoding, which letter is represented by the binary (base 2) number 1010100?

Back

T

2.

FLASHCARD QUESTION

Front

What code should Jasmine insert where it says in order for her app to work? Options: cart total = 1; , cartTotal + 1; , cartTotal = cartTotal +1; , var cartTotal = cartTotal + 1; , var cartTotal + 1;

Back

cartTotal = cartTotal +1;

3.

FLASHCARD QUESTION

Front

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.

Back

Media Image

4.

FLASHCARD QUESTION

Front

A Boolean expression is an expression that evaluates to which of the following? Yes/Maybe/No, Any Integer, Integers between 1 and 10, Any single character

Back

True/False

5.

FLASHCARD QUESTION

Front

Consider the following segment given in pseudo code. What will be displayed if grade is set to 70? Options: 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

Back

You passed!

6.

FLASHCARD QUESTION

Front

Back

Media Image

7.

FLASHCARD QUESTION

Front

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.

Back

While loops run as long as a given boolean condition is true.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?