Python Day 11

Python Day 11

University

5 Qs

quiz-placeholder

Similar activities

C Programming Lab Quiz

C Programming Lab Quiz

University

10 Qs

Expression in C Programming

Expression in C Programming

University

10 Qs

C++ Functions

C++ Functions

University

10 Qs

Functions C

Functions C

University

10 Qs

OFDP-73/120 Assignment 1

OFDP-73/120 Assignment 1

University

10 Qs

Exploring Python: Input and Output Essentials

Exploring Python: Input and Output Essentials

9th Grade - University

10 Qs

Basic C++ Program Structures

Basic C++ Program Structures

University

10 Qs

C++ Workshop 2021 [Quiz-2]

C++ Workshop 2021 [Quiz-2]

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.