
Python Quiz 7

Quiz
•
Professional Development
•
University
•
Medium
ENDURO SRM
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many built-in data structures Python has?
Two
Four
Eight
More than eight
Answer explanation
Python has 4 built-in Data Structures -
List
Tuple
Set
Dictionary
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following data structure is unordered?
List
Tuple
Dictionary
None of these
Answer explanation
List and Tuple are Ordered
Set and Dictionary are Unordered
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why we used set data structure to store the alphabets of the word?
Because sets cannot be changed
Because sets are unordered
Because sets work well with strings
Because sets stores unique values
Answer explanation
Like in case of "Loop"
We want set to be {'L', 'O', 'P'},
not {'L', 'O', 'O', 'P'}
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which statement can be used to close the game?
root.quit( )
root.commit( )
root.exit( )
root.close( )
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this line of code do?
e1.delete(0, tkinter.END)
Remove the first character entered in Entry box e1
Edit the last character entered in Entry box e1
Print all the characters entered in Entry box e1
Remove all the characters entered in Entry box e1
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the use of global keyword before a variable name?
To use the variable both inside and outside a function
To have two variables with same name
To make the variable value unchangeable
To export the variable to other program files
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method takes all items in an iterable and joins them into one string?
join() method
connect() method
str() method
concatenate() method
Answer explanation
Eg - ' '.join(word_list)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
SEAM 226 FINALS QUIZ WK15

Quiz
•
University
10 questions
Land Navigation

Quiz
•
University - Professi...
8 questions
Approaches & Methods

Quiz
•
University
15 questions
What is Game Design?

Quiz
•
3rd Grade - University
10 questions
Machinery Safety

Quiz
•
University
10 questions
DAHUA FULL COLOR & TiOC

Quiz
•
1st Grade - Professio...
13 questions
QUIZ 3 : ACCOUNTING FOR RECEIVABLES

Quiz
•
1st Grade - University
15 questions
PRE TEST - UJI PEMAHAMAN PIC PROLANIS

Quiz
•
KG - Professional Dev...
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 Professional Development
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