AP CSP Unit 7: Parameters, Returns, and Libraries

AP CSP Unit 7: Parameters, Returns, and Libraries

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Corianne VanderWerf

Used 12+ times

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is a benefit of using a library in a program?

simplification

increases time

removes testing

reduces abstractions

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Parameter

the value passed to the parameter

used to return the flow of control to the point where the procedure (also known as a function) was called and to return the value of expression.

Extracting shared features to generalize functionality

a variable in a function definition. Used as a placeholder for values that will be passed through the function.

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Argument

The subdivision of a computer program into separate subprograms

the value passed to the parameter

a variable in a function definition. Used as a placeholder for values that will be passed through the function.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Return

Extracting shared features to generalize functionality

a group of functions (procedures) that may be used in creating new programs

The subdivision of a computer program into separate subprograms

used to return the flow of control to the point where the procedure (also known as a function) was called and to return the value of expression.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Procedural abstraction

a group of functions (procedures) that may be used in creating new programs

Extracting shared features to generalize functionality

The subdivision of a computer program into separate subprograms

Application Program Interface - specifications for how functions in a library behave and can be used

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is another word for a function?

function

command

abstraction

to call

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If I want to make a function I must add parameters.

True

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?