AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground 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?

Media Image

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;

Media Image

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.

Media Image

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

Media Image

Back

You passed!

6.

FLASHCARD QUESTION

Front

Media Image

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?