Search Header Logo

Functions in Python

Authored by Fatimah Alqadheeb

Computers

University

Used 10+ times

Functions in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

type( )

len( )

def findSum():

eval( )

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following function call?

var1+var2

50

10,40

no output

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is used to return a result from a function?

catch

continue

break

return

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image


What will be the output of the following Python code?

10

num

x

no output

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is correct regarding an Argument?

A variable which we use in the function definition

A value we pass when we call the function

The order in which statements are executed 

A keyword used to return a result from a function

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Python code?

sara 19

name age

NameError

no output

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The function randint( ) returns random integers between low and high numbers?

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?