function in Python

function in Python

University

37 Qs

quiz-placeholder

Similar activities

Network Security 3

Network Security 3

University

32 Qs

1er PARCIAL BD

1er PARCIAL BD

University

40 Qs

Fundamentos Segurança em redes de computadores

Fundamentos Segurança em redes de computadores

University

32 Qs

Excel

Excel

1st Grade - University

40 Qs

NPTEL-CLOUD COMPUTING-PRACTICE TEST-4 2025

NPTEL-CLOUD COMPUTING-PRACTICE TEST-4 2025

University

40 Qs

Pemrograman Web

Pemrograman Web

University

40 Qs

Bài tập Excel

Bài tập Excel

6th Grade - University

40 Qs

Componentes Computador Quiz

Componentes Computador Quiz

University

42 Qs

function in Python

function in Python

Assessment

Quiz

Computers

University

Medium

Created by

Mohd. Khan

Used 58+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

37 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return value for a function that does not return a value explicitly?

None

int

double

null

2.

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Func

define

def

function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name given to that area of memory, where the system stores the parameters and local variables of a function call?

a heap

storage area

a stack

an array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Is The Output Of The Following Code Snippet?


def func(message, num = 1):

print(message * num)


func('Welcome')

func('Viewers', 3)

Welcome

Viewers

Welcome

ViewersViewersViewers

Welcome

Viewers,Viewers,Viewers

Welcome

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Is The Output Of The Following Code Snippet?


def func(message, num = 1):

print(message * num)


func('Welcome')

func('Viewers', 3)

Welcome

Viewers

Welcome

ViewersViewersViewers

Welcome

Viewers,Viewers,Viewers

Welcome

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following function calls can be used to invoke the below function definition?


def test(a,b,c,d)

test(1,2,3,4)

test(a=1,2,3,4)

test(a=1,b=2,c=3,4)

test(a=1,b=2,c=3,d=4)

Create a free account and access millions of resources

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?