def h1(): print("")
h1()=="hi"+"text"
What is the output of this code?
Quiz 5
Quiz
•
Computers
•
University
•
Hard
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
15 questions
HCI 584 Python quiz
Quiz
•
University
10 questions
C - Pointers
Quiz
•
University
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops
Quiz
•
9th Grade - University
15 questions
Scope of Variables in Python
Quiz
•
1st Grade - Professio...
15 questions
Round 2 Debug-The-Code
Quiz
•
University
10 questions
Python3
Quiz
•
4th Grade - University
10 questions
DEBUG THE CODE
Quiz
•
University
15 questions
Milking Minds 2 17-01-24
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade