Techno India University Python Quiz Contest

Quiz
•
Computers
•
University
•
Hard
Rahul Mahato
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If a=(1,2,3,4), a[1:-1] is _________
Error, tuple slicing doesn’t exist
[2,3]
(2,3,4)
(2,3)
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following Python code snippet?
a={1:"A",2:"B",3:"C"}
for i,j in a.items():
print(i,j,end=" ")
1 2 3
1:”A” 2:”B” 3:”C”
A B C
1 A 2 B 3 C
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following Python expression?
print(4.00/(2.0+2.0))
Error
1.00
1.0
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output when the following code is executed?
"Welcome to Python".split()
('Welcome', 'to', 'Python')
{'Welcome', 'to', 'Python'}
['Welcome' 'to', 'Python']
'Welcome', 'to', 'Python'
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
1
3
5
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following piece of code?
a=list((45,)*4)
print((45)*4)
print(a)
180
[(45),(45),(45),(45)]
(45,45,45,45)[45,45,45,45]
180
[45,45,45,45]
Syntax error
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How are keyword arguments specified in the function heading?
one star followed by a valid identifier
two stars followed by a valid identifier
one underscore followed by a valid identifier
two underscores followed by a valid identifier
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
10 questions
basic programming quiz

Quiz
•
University
10 questions
Python Sets

Quiz
•
University
10 questions
PYTHON_CHAPTER 1

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
10 questions
Python Basics

Quiz
•
University
10 questions
PYTHON BASICS PART 1

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade