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

Computer Science Principles Unit 5 Part 1

Computer Science Principles Unit 5 Part 1

9th - 12th Grade

15 Qs

Unit 4 Vocabulary

Unit 4 Vocabulary

11th - 12th Grade

10 Qs

VB Using Expressions and Operators

VB Using Expressions and Operators

10th Grade

10 Qs

Python Boolean and If

Python Boolean and If

9th - 12th Grade

10 Qs

Quiz 07 - If Statements

Quiz 07 - If Statements

11th Grade

10 Qs

VB Variables

VB Variables

11th Grade

10 Qs

XII - CA - Lesson 4 - Introduction to PHP - Quiz 4

XII - CA - Lesson 4 - Introduction to PHP - Quiz 4

12th Grade

15 Qs

Java Code Questions

Java Code Questions

9th Grade - University

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