Search Header Logo

P1 Unit 3 Lessons 5 - 8

Authored by Amber Blu

Computers

9th - 12th Grade

Used 4+ times

P1 Unit 3 Lessons 5 - 8
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 SELECT QUESTION

1 min • 1 pt

Choose the two (2) statements that are true about functions

Meaningful function names help people better understand programs.

Functions in programming are named groupings of programming instructions.

Meaningful function names help computers better understand programs.

Functions in programming are useful mathematical tools for doing complex computations.

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Select the two true statements about functions with parameters:

Functions with parameters can be used to prevent the creation of duplicated code.

Parameters help generalize the solution of a specific problem.

Values do not need to be provided to a function with parameters in any particular order.

Parameters can only be used once within the body of a function

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a true statement about functions?

Functions cannot make calls to other functions written by the same programmer.

Once defined, a function can be called many times from different parts of a program.

Functions help break a problem into logical chunks.

Functions help reduce the complexity of writing and maintaining programs.

Functions are reusable programming abstractions.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements about writing functions and Top-Down Design is NOT true?

Two programmers solving the same problem using Top-Down Design should arrive at identical programs.

Top-Down Design relies upon identifying sub-problems of a larger problem.

Top-Down Design assists in identifying the layers of functions that will be used to solve a programming problem.

Top-Down Design leads to programs which feature multiple layers of abstraction.4

Writing functions helps manage complexity in a program.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a function parameter?

A way to give input to a function that controls how the function runs.

Para-meter: a measure of the distance between a function's conception and implementation.

A collection of commands that can be used in a programming language.

Another name for the purpose of a function.

A named memory location

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an API?

Application Program Interface

Artificial Parameter Intelligence

Abstract Programming Inheritance

Applied Power Implementation

Abstract Parameter Interface

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT part of defining a function?

Giving the parameters a value

Adding code to the body of the function

Identifying the parameters of the function

Giving the function a name

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?