Search Header Logo

AP CSP Unit 7: Parameters, Returns, and Libraries

Authored by Corianne VanderWerf

Computers

9th - 12th Grade

Used 12+ times

AP CSP Unit 7: Parameters, Returns, and Libraries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?