What is the output of the following program:
y = 8
z = lambda x : x * y
print z(6)
Python Module 1
Quiz
•
Computers
•
University
•
Medium
Atul Uttam
Used 37+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program:
y = 8
z = lambda x : x * y
print z(6)
48
14
64
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the use of id() function in python?
Id returns the identity of the object
Every object doesn’t have a unique id
All of the mentioned
None of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we add two strings together?
s.join(s2)
s.add(s2)
s = s + s2
s ++ s2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
20 questions
Python 101
Quiz
•
University
25 questions
Introduction to Python
Quiz
•
KG - University
20 questions
Python
Quiz
•
University
23 questions
PYTHON - 14.07.2023
Quiz
•
University
20 questions
Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING
Quiz
•
University
20 questions
Grade 7 Python Programming Quiz
Quiz
•
7th Grade - University
20 questions
Python :: String review
Quiz
•
University
20 questions
variable in python
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