AP Computer Science Principles

AP Computer Science Principles

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Microsoft Excel

Microsoft Excel

6th Grade - University

15 Qs

The Dark Side

The Dark Side

KG - University

13 Qs

Actuators

Actuators

10th Grade

10 Qs

Image Representation Lesson 2

Image Representation Lesson 2

9th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

FNaF1

FNaF1

4th - 12th Grade

19 Qs

HARD DISK DRIVE

HARD DISK DRIVE

11th - 12th Grade

10 Qs

AP Computer Science Principles

AP Computer Science Principles

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age?

Boolean

number

string

list

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The value of first is true, and the value of second is true.

The value of first is true, and the value of second is false.

The value of first is false, and the value of second is true.

The value of first is false, and the value of second is false.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Step 1: Add num1 and num2 and store the result in the variable sum.

Step 2: Take the absolute value of sum and display the result.

Step 1: Subtract num1 from num2 and store the result in the variable diff.

Step 2: Take the absolute value of diff and display the result.

Step 1: Take the absolute value of num1 and store it in the variable absNum1.

Step 2: Take the absolute value of num2 and store it in the variable absNum2.

Step 3: Add absNum1 and absNum2 and display the result.

Step 1: Take the absolute value of num1 and store it in the variable absNum1.

Step 2: Take the absolute value of num2 and store it in the variable absNum2.

Step 3: Subtract absNum1 from absNum2 and display the result.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Media Image

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

val1 = true, val2 = true

val1 = true, val2 = false

val1 = false, val2 = true

val1 = false, val2 = false

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?