AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Code.org Summative

Code.org Summative

9th - 12th Grade

25 Qs

python loop 7th

python loop 7th

7th Grade - University

25 Qs

GCSE Computer Science- 2.2 Programming Techniques

GCSE Computer Science- 2.2 Programming Techniques

9th - 11th Grade

25 Qs

CodeHS Tracy the Turtle Final Test

CodeHS Tracy the Turtle Final Test

6th - 10th Grade

30 Qs

CONDITIONAL STATEMENTS

CONDITIONAL STATEMENTS

11th - 12th Grade

25 Qs

Final Review - Unit 5

Final Review - Unit 5

9th - 12th Grade

28 Qs

JAVASCRIPT

JAVASCRIPT

12th Grade

25 Qs

Basic Programming Concepts Quiz New

Basic Programming Concepts Quiz New

6th Grade - University

30 Qs

AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Donald Bonneville

Used 570+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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
Media Image
Media Image
Media Image
Media Image

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

Media Image

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

Media Image
Media Image
Media Image
Media Image
Media Image
Media Image

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?