Python Functions and Method

Python Functions and Method

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

PRE-TEST

PRE-TEST

12th Grade

10 Qs

MEDIALIT QUIZ

MEDIALIT QUIZ

12th Grade

16 Qs

11 Construction Bricklaying

11 Construction Bricklaying

11th Grade

10 Qs

EMPOWERMENT TECH WEEK 1

EMPOWERMENT TECH WEEK 1

11th - 12th Grade

10 Qs

electronic hand tools

electronic hand tools

10th Grade

15 Qs

Intro to MIL

Intro to MIL

11th Grade

10 Qs

Resistor Coding

Resistor Coding

7th - 12th Grade

10 Qs

8.12 C++ Test on Classes

8.12 C++ Test on Classes

9th - 12th Grade

15 Qs

Python Functions and Method

Python Functions and Method

Assessment

Quiz

Instructional Technology

10th - 12th Grade

Practice Problem

Hard

Created by

Teaching Assistant Ivy

Used 29+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?