Python Day 11

Python Day 11

University

5 Qs

quiz-placeholder

Similar activities

C++ Workshop 2021 [Quiz-2]

C++ Workshop 2021 [Quiz-2]

University

10 Qs

Functions and Modules

Functions and Modules

University

10 Qs

GDSC Python Bootcamp

GDSC Python Bootcamp

University

8 Qs

Weekly Contest #8 - TechXNinjas

Weekly Contest #8 - TechXNinjas

University

10 Qs

Python Generators

Python Generators

10th Grade - University

10 Qs

PROG3 - Chapter 6

PROG3 - Chapter 6

University

10 Qs

OFDP-73/120 Assignment 1

OFDP-73/120 Assignment 1

University

10 Qs

Functions C

Functions C

University

10 Qs

Python Day 11

Python Day 11

Assessment

Quiz

Computers

University

Hard

Created by

Ninitha C

FREE Resource

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.