W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
71 questions for “Data Types & Structures”
Found in 1 field. Select a question to see its full answer.
Matching topics
Python
Data
Types
&
Structures
15
.NET
Entity Framework Core &
Data
Access
4
Redis
RedisBloom (Probabilistic
Data
Structures
)
4
Python
Data
classes & NamedTuples
1
Information Technology
71 questions in 4 technologies
#
Question
Technology
Topic
Level
1
What's the difference between shallow copy and deep copy for a nested
data
structure, and which functions perform each?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Intermediate
2
How would you implement a custom, memory-efficient
data
structure using __slots__ instead of a regular class with a __dict__?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Advanced
3
How do dictionaries maintain insertion order internally since Python 3.7, and what
data
structure change made this both possible and efficient?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Advanced
4
How would you use collections.Counter to efficiently count occurrences and find the most common elements in a large
data
set?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Advanced
5
How would you choose between a list, a set, a dict, and a specialized structure like heapq for efficiently finding the K smallest/largest elements in a large
data
set?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Advanced
6
What is the difference between a set and a list in terms of uniqueness and ordering?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Beginner
7
What is the difference between a Python list and a tuple?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Beginner
8
How do you access, add, and remove items from a dictionary?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Beginner
9
How do slicing operations work on a list, including negative indices and step values?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Intermediate
10
Why must dictionary keys (and set elements) be hashable, and what makes an object hashable in Python?
Python › Data Types & Structures
Python
Data
Types
&
Structures
Intermediate
Show all 71 questions in Information Technology