3rd Year August Quiz

Quiz
•
Computers
•
University
•
Hard
Anand Bhasme
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to create a dictionary in Python?
mydict = [1, 2, 3]
mydict = (1, 2, 3)
mydict = {1: 'a', 2: 'b'}
mydict = <1, 2, 3>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
3
4
5
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the map() function do in Python?
It maps elements from one list to another
It applies a function to every item of an iterable and returns a list of results
It creates a dictionary from two lists
It creates a map of key-value pairs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about Python's GIL (Global Interpreter Lock)?
It allows multiple threads to execute Python bytecode at the same time.
It is removed in Python 3.x
It prevents multiple threads from executing Python bytecode simultaneously.
It is required for multi-threaded applications to run.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
99
1
2
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
[1, 2, 3]
[1, 2, 3, 1, 2, 3, 1, 2, 3]
[3, 6, 9]
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a mutable data type in Python?
tuple
list
string
integer
Create a free account and access millions of resources
Similar Resources on Wayground
41 questions
Final Day Quiz for ICT Skill Share

Quiz
•
4th Grade - Professio...
41 questions
Information Management Quiz 2

Quiz
•
University
40 questions
KUIS JARINGAN KOMPUTER

Quiz
•
University
40 questions
Quizo'24

Quiz
•
University
44 questions
LATIHAN PYTHON

Quiz
•
10th Grade - University
38 questions
Secure Scripting: Exam 1 Review: Modules 1 - 4

Quiz
•
University
40 questions
9th Grade - IT Programming - 2nd Cycle Exam

Quiz
•
9th Grade - University
40 questions
Python Final

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade