Search Header Logo

Functions in Python

Authored by Corneille NDJEUMOU

Computers

University

Used 12+ times

Functions in Python
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 CHOICE QUESTION

30 sec • 1 pt

A group of statements that exist within a program for the purpose of performing a specific task is a(n) ___.

function
variable
loop

block

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first line of a function definition is known as the ___.

body

introduction

header

initialization

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

You ___ a function to execute it.

define

import

call

export

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The ___ keyword is ignored by the Python interpreter and can be used as a placeholder for code that will be written later.

execute
skip
pass

pause

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ___ is a variable that is created inside a function.

global variable
local variable
constant variable
static variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ___ is the part of a program in which a variable may be accessed.

loop

scope

area of visibility

declaration space

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ___ is a special variable that receives a piece of data when a function is called.

argument

header

module

parameter

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?