Search Header Logo

AP Computer Science Principles Unit 4 Review

Authored by Madelyn L.

Computers, Other

9th Grade - University

Used 86+ times

AP Computer Science Principles Unit 4 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an expression?

A reference to a value or expression that can be repeatedly used throughout a program.

A combination of both values and operators that evaluate to one value

A named group of programming instructions that is also referred to as a “procedure”.

2.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

A _____________ evaluates to true or false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When coding, it is best to avoid using __________ or the code may be confusing.

Global variables

Conditionals

Functions

Local variables

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Global variables are _____________ and ___________________. (Choose 2)

Temporary

Can be used anywhere in your code

Permanent

Can only be used in the section of code they were created in

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Local variables are _______ and __________. (Choose 2)

Permanent

Can only be used in the section where it was created

Can be used anywhere in your code

Temporary

6.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

_________ keep your code from getting cluttered.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function is...

A named group of programming instructions. Also referred to as a “procedure”.

A combination of operators and values that evaluates to a single value.

A reference to a value or expression that can be used repeatedly throughout a program.

Access all questions and much more by creating a free account

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?