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

2.7 System Software

2.7 System Software

12th Grade - University

25 Qs

File Organization - Information Processing Part 2

File Organization - Information Processing Part 2

5th - 12th Grade

25 Qs

Keyboard Mastery

Keyboard Mastery

10th - 11th Grade

25 Qs

web development

web development

10th Grade

25 Qs

Sistemas Operativos

Sistemas Operativos

10th Grade - University

25 Qs

SEARCH FOR QUIZPICABLE TEAM

SEARCH FOR QUIZPICABLE TEAM

12th Grade

25 Qs

Green St Patrick's Day

Green St Patrick's Day

12th Grade

25 Qs

Kuis AP (Var, If, Looping)

Kuis AP (Var, If, Looping)

11th Grade

25 Qs

AP Computer Science Principles (Final Exam part 2)

AP Computer Science Principles (Final Exam part 2)

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Donald Bonneville

Used 582+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?