Search Header Logo

Quiz 5

Authored by Mohand Mahmoud

Computers

University

Quiz 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

def h1(): print("")

h1()=="hi"+"text"

What is the output of this code?

hi text

hi

Null

error

No output

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

sum(1,2,3)

def sum (x,y,z):

print(x+y+z)

What is the output of this code?

9

Null

x+y+z

error

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

can we pass to a function an argument ?

True

False

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

can we put a lamda function in variable?

False

True

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

def div (x,y):

print(x/y)

div(12,3)

4

Null

error

4.0

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

def sum(x:2,z:"5",y:8):

print(x + y + z)

sum(2,8,5)

What is the output of this code?

15

10

105

Null

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

can we pass a function as an argument in another function?

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?