Python Functions and Method

Python Functions and Method

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

LO13 Lesson 6

LO13 Lesson 6

10th Grade

18 Qs

Intro to Coding Week 4

Intro to Coding Week 4

9th - 12th Grade

16 Qs

Welcome and Statements Review

Welcome and Statements Review

9th - 12th Grade

15 Qs

2.5 Translators & Facilities - OCR GCSE Computer Science

2.5 Translators & Facilities - OCR GCSE Computer Science

7th - 12th Grade

13 Qs

ÔN TÂPH LẬP TRÌNH PYTHON

ÔN TÂPH LẬP TRÌNH PYTHON

10th Grade

20 Qs

12/3  Classes & Objects

12/3 Classes & Objects

9th - 11th Grade

17 Qs

Grade 11 diagnostic test

Grade 11 diagnostic test

11th Grade

20 Qs

Skill #2 - Flow Control with Decisions and Loops

Skill #2 - Flow Control with Decisions and Loops

12th Grade

10 Qs

Python Functions and Method

Python Functions and Method

Assessment

Quiz

Instructional Technology

10th - 12th Grade

Hard

Created by

Teaching Assistant Ivy

Used 28+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function?

define

fun

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

function name

parameter list

return value

Both A and B

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is called when a function is defined inside a class?

class

function

method

module

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the return statement is not used inside the function, the function will return:

None

0

Null

Arbitary value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a recursive function?

A function that calls other function.

A function which calls itself.

Both A and B

None of the above

6.

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)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

heap

stack

Uninitialized data segment

None of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?