Quiz 5

Quiz 5

University

11 Qs

quiz-placeholder

Similar activities

Quiz 6

Quiz 6

University

10 Qs

Python3

Python3

4th Grade - University

10 Qs

Python Quiz Ver- 1.3

Python Quiz Ver- 1.3

University

15 Qs

Biyani College Day 4

Biyani College Day 4

University

15 Qs

JS - Knowledge Check

JS - Knowledge Check

University

16 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

Python Unit 3

Python Unit 3

University

10 Qs

Milking Minds 2 17-01-24

Milking Minds 2 17-01-24

University

15 Qs

Quiz 5

Quiz 5

Assessment

Quiz

Computers

University

Hard

Created by

Mohand Mahmoud

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?