
Quiz#1: Python

Quiz
•
Computers
•
University
•
Hard
Navya Jain
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 5 pts
What is the output of the given code?
2.
FILL IN THE BLANK QUESTION
1 min • 5 pts
What is the output of the following code?
3.
FILL IN THE BLANK QUESTION
1 min • 5 pts
In Python3, whatever you enter as input, the input() function converts it into a string. Enter True/False.
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The process of pickling in Python includes ____________.
conversion of a Python object hierarchy into byte stream
conversion of a datatable into a list
conversion of a byte stream into Python object hierarchy
conversion of a list into a datatable
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
To add a new element to a list we use which Python command?
list1.addEnd(5)
list1.addLast(5)
list1.append(5)
list1.add(5)
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the purpose of the `__slots__` attribute in Python?
To limit the attributes that an object can have
To make the class immutable
To create read-only attributes
To define methods in a class
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is true about Python's Global Interpreter Lock (GIL)?
It allows multiple threads to execute in parallel
It is specific to the CPython implementation
It prevents race conditions by allowing only one thread to execute at a time
Both b and c
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Quiz 1 : Variable, Data Types, Slicing

Quiz
•
University
10 questions
DATA STRUCTURES ACTIVITY OF THE WEEK

Quiz
•
University
12 questions
Python Quiz- 1.9

Quiz
•
University
15 questions
IPP QUIZ !

Quiz
•
University
15 questions
untitled

Quiz
•
12th Grade - University
10 questions
Python Sets

Quiz
•
University
10 questions
python quiz

Quiz
•
6th Grade - Professio...
12 questions
Python Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University