
Python quiz - 1

Quiz
•
Other
•
University
•
Hard
Tharun AmiReddy
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python supports the creation of anonymous functions at runtime, using a construct called
pi
anonymous
lambda
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following character is used to give single-line comments in Python?
//
#
!
/*
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of the following Python expression?
4 + 3 % 5
2
7
4
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which type of Programming does Python support?
object-oriented programming
structured programming
functional programming
all of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who developed Python Programming Language?
Wick van Rossum
Rasmus Lerdorf
Guido van Rossum
Niene Stom
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
error, there is more than one return statement in a single try-finally block
3
2
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python expression?
round(4.576)
4
4.6
5
4.5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Web Development Quiz

Quiz
•
University
10 questions
IOT SYNERGIA DAY-3

Quiz
•
University
10 questions
Diagnostico PLyF

Quiz
•
University
10 questions
RSC Gbody 2

Quiz
•
University
15 questions
AP Computer Science Principles Unit 4 Review

Quiz
•
9th Grade - University
14 questions
2R C-Skill Lab Test Autumn 2024-25

Quiz
•
University
14 questions
Conditional 2 / Technology

Quiz
•
University
11 questions
quiz - 8 - day - 4

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University