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
jogo perguntas e respostas sobre alimentação

Quiz
•
University
10 questions
data communication interface, Data link control and multiplexing

Quiz
•
University
10 questions
Uji Pemahaman Pendapatan Nasional

Quiz
•
11th Grade - University
15 questions
Midterm Examination 1 (Software Design)

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

Quiz
•
University
20 questions
Economics products and cost

Quiz
•
University
20 questions
Economics Quiz on Production Concepts

Quiz
•
University
10 questions
monthly test of feb 25

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade