Search Header Logo

Unit 7 AP CSP

Authored by James Santiago

Computers

12th Grade

Used 13+ times

Unit 7 AP CSP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'return' do in a function?

Declares a variable

Initializes a library

Calls another function

Returns the flow of control to where the function was called and returns the value of expression

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is procedural abstraction?

A specific API

A process that allows a procedure to be used knowing only what it does, not how it does it

A library of procedures

A data type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a library in programming?

A group of functions that may be used in creating new programs

An error in the code

A single function

A collection of variables

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does API stand for?

Automatic Programming Input

Application Procedure Interface

Automated Program Installation

Application Program Interface

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION" with the correct code segment.

num % 2 == 0

num % 0 == 2

num % 1 == 0

num % 1 == 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which function calls would provide the most helpful test of this function?

findMin(-1, 0)
findMin(2,4)
findMin(5,10)

findMin(5,3)
findMin(7,2)
findMin(5,1)

findMin(-1,1)
findMin(1,-1)
findMin(1,1)

findMin(1,1)
findMin(-2,2)
findMin(0,3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed on the console?

console.log(14 % 4);

2

4

3

15

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?