Python Programming Quiz

Quiz
•
Engineering
•
University
•
Hard
Athulkrishna K
Used 1+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to remove a key-value pair from a dictionary?
remove()
pop()
discard()
delete()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method adds an item to a list at the end?
insert()
append()
add()
push()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of ' '.join(['a','b','c'])?
'abc'
'a, b, c'
'a+b+c'
'a b c'
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? t = (1,2,[3,4]) t[2].append(5) print(t)
(1, 2, [3, 4])
(1, [3, 4, 5])
Error
(1, 2, [3, 4, 5])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a list to a set?
set(list)
tuple(list)
dict(list)
list(set)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? stack = [] stack.append(10) stack.append(20) print(stack.pop())
20
10
[]
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will `len({})` return?
None
Error
1
0
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
c programming quiz

Quiz
•
University
20 questions
Computer Networks CT-2

Quiz
•
University
20 questions
CODEBURST : JAVA EDITION

Quiz
•
University
20 questions
Code Sprint '25

Quiz
•
University
20 questions
Mass and Weight Measurement

Quiz
•
University
20 questions
Compiler Design unit 1 Quiz

Quiz
•
University
20 questions
OPEN HOUSE TEKLA ITK

Quiz
•
University
20 questions
Production, Planning, & Control Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University