Search Header Logo
Exit Ticket Unit 1, Lesson 5: Decomposition using Functions Kira

Exit Ticket Unit 1, Lesson 5: Decomposition using Functions Kira

Assessment

Flashcard

Computers

6th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a function in programming?

Back

A named block of code that performs a specific task

Answer explanation

A function in programming is defined as a named block of code that performs a specific task, allowing for code reuse and organization. This makes the first choice the correct answer.

2.

FLASHCARD QUESTION

Front

What does decomposition of a problem involve?

Back

Breaking down a problem into smaller, manageable sub-problems

Answer explanation

Decomposition of a problem involves breaking it down into smaller, manageable sub-problems. This approach makes complex issues easier to tackle, unlike combining tasks, ignoring complexities, or coding without planning.

3.

FLASHCARD QUESTION

Front

What is a function call?

Back

A statement that invokes a function, causing it to run

Answer explanation

A function call is a statement that invokes a function, causing it to run. This is distinct from defining a function or deleting it, and it is not related to loops in programming.

4.

FLASHCARD QUESTION

Front

What keyword is used to start the definition of a function in Python?

Back

def

Answer explanation

In Python, the keyword 'def' is used to start the definition of a function. It indicates that a new function is being defined, followed by the function name and parentheses.

5.

FLASHCARD QUESTION

Front

What is a function name?

Back

The identifier used to call the function later in the code

Answer explanation

A function name is the identifier used to call the function later in the code. It allows programmers to reference and execute the function whenever needed, distinguishing it from other functions and variables.

6.

FLASHCARD QUESTION

Front

What are parameters in a function?

Back

Placeholder variables used to represent inputs when defining a function.

Answer explanation

Parameters are placeholder variables used in function definitions to represent inputs. They allow functions to accept different values when called, distinguishing them from the actual values passed, known as arguments.

7.

FLASHCARD QUESTION

Front

What are arguments in the context of functions?

Back

The actual value of a parameter passed to a function when it is called

Answer explanation

Arguments are the actual values passed to a function when it is called, allowing the function to operate on specific data. This distinguishes them from parameters, which are the variables defined in the function's declaration.

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?