Search Header Logo

Python Day 11

Authored by Ninitha C

Computers

University

Python Day 11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is a variable defined outside all the function referred to as?

A static variable
A global variable
A local variable
An automatic variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following keywords marks the begining of the function block?

Func
define
def
function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Pick one from the following statements to correctly complete the function body to get output 5 in the given code snippet:

print(number)
print("number")
return number
return "number"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following items are present in the function header?

Function name only
Both function name and parameter list
parameter list only
Return value

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Which of the following is TRUE about the given function? (Select 3)

checkOdd() function will not run because it has 2 return values
num is a parameter of the function checkOdd()
The value of num will determine the return value of the checkOdd()
The checkOdd() function has two possible parameters.
checkOdd() will either return a True or False value.

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?

Discover more resources for Computers