
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
Find the output upon running this code
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 Wayground
16 questions
Juris 4

Quiz
•
University
10 questions
QUIZ IPI KEL.9

Quiz
•
University
10 questions
Quiz Chapter 8 FET Amplifiers

Quiz
•
University
20 questions
Quiz 2

Quiz
•
University
10 questions
PHYSIOLOGY GENETICS QUIZ

Quiz
•
University
13 questions
NEURON

Quiz
•
University
15 questions
Verbal and Logical Reasoning

Quiz
•
University
15 questions
HCI Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University