python set 1

Quiz
•
Other
•
University
•
Hard
ESPARK 2023
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Amongst which of the following if syntax is true?
if condition: #Will executes this block if the condition is true
if condition { #Will executes this block if the condition is true }
if(condition) #Will executes this block if the condition is true
None of the mentioned above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of the following is not a keyword in Python language?
eval
assert
nonlocal
pass
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What arithmetic operators cannot be used with strings in Python?
*
–
+
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the definition for packages in Python
A set of programs making use of Python modules
A set of main modules
A folder of python modules
A set of programs making use of Python modules
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
a = [1, 2, 3, 4]
b = [3, 4, 5, 6]
c = [x for x in a if x not in b]
print(c)
[1,2]
[5,6]
[1,2,5,6]
[3,4]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
a = [[], "abc", [0], 1, 0]
print(list(filter(bool, a)))
[abc]
['abc',[0],1]
[1]
none of above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
pYHON PrOgRaMmInG
Python Programming:
PYTHON PROGRAMMING
python programming
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
CÂU HỎI ĐƠN GIẢN VỀ PYTHON

Quiz
•
University
10 questions
Microsoft Tech Wiz Quiz

Quiz
•
University
10 questions
DD#3

Quiz
•
University
10 questions
POST TEST MODULE 4

Quiz
•
University
12 questions
Aula Invertida

Quiz
•
University
12 questions
Підсумковий тест за II семестр

Quiz
•
7th Grade - University
10 questions
Quiz __ Day --7

Quiz
•
University
10 questions
Car Logos

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University