Find the output upon running this code

Py-ngo Workshop Quiz_GDSC

Quiz
•
Others
•
University
•
Hard
Shreya Khanna
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
mango
cherry
litchi
banana
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
thislist = ["apple", "banana", "cherry", "orange", "kiwi”]
thislist[1:3] = ["blackcurrant", "watermelon"]
print(thislist)
Output for the following code is :
[‘blackcurrant’, ‘watermelon’, ‘cherry’, ‘orange’, ‘kiwi’]
["apple", "blackcurrant", "watermelon", "orange", "kiwi”]
["blackcurrant", "banana", "watermelon", "orange", "kiwi”]
["apple", "banana", "cherry", "orange", "kiwi”]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Statement1 : Lists are faster for accessing individual elements than arrays
Statement2: Array is faster when it comes to removing or adding elements than list
Both statements are true
1 is true, 2 is false
Both are false
2 is true, 1 is false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is used to break out of a loop?
return
break
end
pass
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
str= “ I am 18 years old .\n I can vote.”
What is “\n” (backslash n) command used for ?
Create space in between words
Shift the text to next line
Remove the text
Delete the space in between two words
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fill in the blanks with the name of the appropriate module to get the output "6"
maths
math
mathematics
numpy
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the code
[50, 100, 150, 200, 1, 50, 5]
[50, 100, 150, 200, 1, 50, 5, 1, 50, 5]
[50, 100, 150, 200]
AttributeError
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
QUIZ IPI KEL.9

Quiz
•
University
10 questions
كوكيز

Quiz
•
University
12 questions
Semi-Finals Exam (30 points)

Quiz
•
University
20 questions
Economics Quiz on Production Concepts

Quiz
•
University
10 questions
monthly test of feb 25

Quiz
•
University
15 questions
Exploring Functions and Graphs

Quiz
•
University
10 questions
jogo perguntas e respostas sobre alimentação

Quiz
•
University
16 questions
Juris 4

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade