Quiz 5

Quiz 5

University

11 Qs

quiz-placeholder

Similar activities

HCI 584 Python quiz

HCI 584 Python quiz

University

15 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

Simple Easy Basic Lua Quiz

Simple Easy Basic Lua Quiz

4th Grade - Professional Development

10 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

4-字典与集合

4-字典与集合

University

10 Qs

Módulos

Módulos

University

10 Qs

OOP module

OOP module

University

10 Qs

PE2 Module 3

PE2 Module 3

KG - Professional Development

11 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?