
Python Training
Authored by Devanjali Relan
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Set is:
Mutable
Distinct
Unordered
Sorted
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
s={1,2,3}
s[0]=10
print(s)
{10,2,3}
{1,2,10}
{1,2,3}
TypeError
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
111
123
321
Runtime error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is mutable?
List
String
Tuple
Set
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
nums=list({1:'one',2:'two'})
print(nums)
Syntex error
[1, 2]
[‘one', ‘two']
Runtime error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an invalid list object?
list(“Hello”)
[10, 1.234. 2+3j, ‘Python']
[(1,2), (3,4)]
All are valid
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If ['one', 'four', 'three', 'two'] is a list object, the sort() function will return _____.
['four', 'three', 'two', 'one']
['four', 'one', 'three', 'two']
['one', 'two', 'three', 'four']
None of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ML Course Activity-II
Quiz
•
University
10 questions
Logika Fuzzy
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
13 questions
Processing Quiz
Quiz
•
University
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
10 questions
Función CONTAR
Quiz
•
KG - Professional Dev...
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Perangkat komputer
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade