PYTHON CONTEST 2

Quiz
•
Computers
•
University
•
Hard
SivaBharath.K.S SivaBharath.K.S
Used 9+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
All keywords in Python are in _________
Capitalized
lower case
UPPER CASE
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the value of the following Python expression?
4 + 3 % 5
7
2
4
1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
123
error
12
none of the mentioned
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
512, 64, 512
512, 512, 512
64, 512, 64
64, 64, 64
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
[1, 0, 2, ‘hello’, ”, []]
Error
[1, 2, ‘hello’]
[1, 2, ‘hello’]
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following functions is a built-in function in python?
factorial()
print()
seed()
sqrt()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The following python program can work with ____ parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
any number of
0
1
2
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Strings

Quiz
•
University
20 questions
Programming in Python

Quiz
•
University
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
20 questions
Python Functions and Error Handling

Quiz
•
10th Grade - University
25 questions
PYTHON CONTEST

Quiz
•
University
20 questions
Python Recap

Quiz
•
7th Grade - University
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
25 questions
Python Module 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University