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
19 questions for “STL”
Found in 1 field. Select a question to see its full answer.
Information Technology
19 questions in 5 technologies
#
Question
Technology
Topic
Level
1
What is the role of IHo
stL
ifetime, and how does it differ across console applications, Windows Services, and containers?
.NET › Generic Host
.NET
Generic Host
Intermediate
2
How does the Ho
stL
istener decorator let a directive respond to events on its host element?
Angular › Directives
Angular
Directives
Intermediate
3
How can a metaclass be used to implement the Singleton design pattern more robu
stl
y than overriding __new__ alone?
Python › Metaclasses & Class Customization
Python
Metaclasses & Class Customization
Advanced
4
How would you implement a memory-efficient sparse matrix representation in Java when a large 2D array would mo
stl
y contain zero/default values, avoiding the memory waste of a full dense array?
Java › Arrays & Multidimensional Arrays
Java
Arrays & Multidimensional Arrays
Advanced
5
What is a lambda expression in C++?
C++ › Lambda Expressions
C++
Lambda Expressions
Beginner
6
What is the capture list in a lambda?
C++ › Lambda Expressions
C++
Lambda Expressions
Beginner
7
Where are lambdas most commonly used?
C++ › Lambda Expressions
C++
Lambda Expressions
Beginner
8
What is the difference between auto x = {…} and auto x{…}?
C++ › Type Deduction & auto
C++
Type Deduction & auto
Beginner
9
What is std::string and how does it differ from a C-string?
C++ › Strings & string_view
C++
Strings & string_view
Beginner
10
How do you convert between std::string and numbers?
C++ › Strings & string_view
C++
Strings & string_view
Beginner
Show all 19 questions in Information Technology