Functions - Python

Functions - Python

12th Grade

36 Qs

quiz-placeholder

Similar activities

Photoshop Terms and Controls

Photoshop Terms and Controls

9th Grade - University

38 Qs

All About Computers

All About Computers

9th - 12th Grade

40 Qs

Quarter 2 Quiz 2

Quarter 2 Quiz 2

12th Grade

35 Qs

PROGRAMMING(MIDTERM EXAM)

PROGRAMMING(MIDTERM EXAM)

12th Grade

35 Qs

Conosci Javascript?

Conosci Javascript?

9th - 12th Grade

32 Qs

TIK kelas 7, Penilaian Tengah semester

TIK kelas 7, Penilaian Tengah semester

7th Grade - University

40 Qs

Topic 2.3 Classification of Network

Topic 2.3 Classification of Network

12th Grade

34 Qs

SIMULASI AM TIK

SIMULASI AM TIK

9th - 12th Grade

40 Qs

Functions - Python

Functions - Python

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Pavani (CBSE)

Used 68+ times

FREE Resource

36 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

1.    A function has the following definition:                                                               

def function1(x=4,y=3,z=2):

.........print(x,y,z)

Write the function call such that x, y and z get default values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

      Predict the output

stop

slow

go

slow

None

go

3.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

Predict the output.

Note: end=' ' is a single space.

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

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

function name

parameter list

return value

All of the options

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function headers is correct?

def fun(a = 2, b = 3, c)

def fun(a = 2, b, c = 3)

def fun(a, b = 2, c = 3)

def fun(a, b, c = 3, d)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which part of memory does the system stores the parameter and local variables of function call?

heap

stack

Uninitialized data segment

None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is the correct way of calling a function?

function_name()

call function_name()

ret function_name()

def function_name()

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers