AP Computer Science Principles - Unit 4: Variables, Conditionals

AP Computer Science Principles - Unit 4: Variables, Conditionals

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Sequence Selection Iteration and others

Sequence Selection Iteration and others

10th Grade

14 Qs

Grade 10 Python Quiz

Grade 10 Python Quiz

10th Grade

10 Qs

AP Test words

AP Test words

11th Grade

10 Qs

Computer Science - Python

Computer Science - Python

9th - 12th Grade

15 Qs

Python Programming Essentials Quiz

Python Programming Essentials Quiz

12th Grade

10 Qs

PC1.8 Evaluate computer program

PC1.8 Evaluate computer program

9th Grade

10 Qs

Conditionals - codeHS mod4

Conditionals - codeHS mod4

9th - 12th Grade

10 Qs

Wrong Answers Only CSP

Wrong Answers Only CSP

9th - 12th Grade

10 Qs

AP Computer Science Principles - Unit 4: Variables, Conditionals

AP Computer Science Principles - Unit 4: Variables, Conditionals

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mister Swagner

Used 135+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q1. Which of the following is a value that can be assigned to a variable?
a) Expression
b) Comparison operator
c) Logical operator
d) Function call

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q2. What is the name for a sequence of characters enclosed in quotation marks?
a) Expression
b) Comparison operator
c) Variable
d) String

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q3. Which of the following is a binary operator that compares two values and returns a Boolean value?
a) Assignment operator
b) Comparison operator
c) Logical operator
d) Function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q4. What is the name for a variable that can have only two possible values: true or false?
a) Variable
b) Boolean value
c) String
d) Expression

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q5. Which of the following is a binary operator that combines two Boolean values and returns a Boolean value?

a) Comparison operator

b) Assignment operator

c) Logical operator

d) Function call

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q6. Which of the following is a symbol used to assign a value to a variable?
a) Comparison operator
b) Logical operator
c) Assignment operator
d) Function call

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q7. What is the name for a programming construct that executes different code based on a condition?
a) Function
b) Function call
c) Conditional statement
d) Variable

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?