Python Programming  unit 5 A Quiz

Python Programming unit 5 A Quiz

University

25 Qs

quiz-placeholder

Similar activities

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Sun lit

Sun lit

1st Grade - University

20 Qs

Lesson 3 (Model Training)

Lesson 3 (Model Training)

University

20 Qs

First Quiz Interactive Designing

First Quiz Interactive Designing

University

20 Qs

C - Structures

C - Structures

University

20 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Software Engineering-1

Software Engineering-1

University

20 Qs

Multimedia Video & Animation

Multimedia Video & Animation

University

20 Qs

Python Programming  unit 5 A Quiz

Python Programming unit 5 A Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

LOGESWARI M

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a function in Python?

function myFunction():

def myFunction():

define myFunction():

func myFunction():

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to call a function in Python?

invoke

call

function

By writing the function name followed by parentheses

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? def add(x, y): return x + y print(add(2, 3))

23

5

Error

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in function in Python?

sum()

average()

total()

plus()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the filter() function do?

Transforms each element

Selects elements that meet a condition

Deletes elements

Sorts elements

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function applies a given function to all items in an iterable?

apply()

map()

reduce()

filter()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The reduce() function requires which module?

functools

itertools

operator

math

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?