Python Functions and Method

Python Functions and Method

10th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Konfigurasi Dasar MikroTik

Konfigurasi Dasar MikroTik

9th - 12th Grade

14 Qs

Programming in C language

Programming in C language

12th Grade - University

18 Qs

FOOD AND BEVERAGE

FOOD AND BEVERAGE

10th - 12th Grade

10 Qs

Text Information and Media Quiz

Text Information and Media Quiz

12th Grade

10 Qs

AC Motor Revision Part 2

AC Motor Revision Part 2

11th - 12th Grade

15 Qs

VB.NET + SQL

VB.NET + SQL

12th Grade

20 Qs

Boolean Logic 1

Boolean Logic 1

12th Grade

14 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

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?