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
All fields
“Modern C++” in Information Technology
15 questions across 1 technology.
Information Technology
15 questions in 1 technology
#
Question
Technology
Topic
Level
1
Why are function-like macros discouraged in
modern
C++
?
C++ › Preprocessor & Macros
C++
Preprocessor & Macros
Intermediate
2
What is an enumeration (enum) in
C++
?
C++ › Enums & Enum Classes
C++
Enums & Enum Classes
Beginner
3
What is consteval (
C++
20)?
C++ › Constexpr & Compile-Time
C++
Constexpr & Compile-Time
Intermediate
4
What is constinit (
C++
20)?
C++ › Constexpr & Compile-Time
C++
Constexpr & Compile-Time
Intermediate
5
What is std::bit_cast (
C++
20)?
C++ › Casting & Conversions
C++
Casting & Conversions
Advanced
6
What is std::format (
C++
20) and how does it improve string formatting?
C++ › Strings & string_view
C++
Strings & string_view
Advanced
7
How do you handle Unicode and encodings in
C++
strings?
C++ › Strings & string_view
C++
Strings & string_view
Advanced
8
What is std::generator (
C++
23) and how does it simplify coroutine use?
C++ › Coroutines
C++
Coroutines
Advanced
9
What are
C++
20 modules and how do they improve on headers?
C++ › Compilation & Linking
C++
Compilation & Linking
Advanced
10
Can a lambda be recursive?
C++ › Lambda Expressions
C++
Lambda Expressions
Beginner
11
What does constexpr mean?
C++ › Constexpr & Compile-Time
C++
Constexpr & Compile-Time
Beginner
12
What is the auto keyword?
C++ › Type Deduction & auto
C++
Type Deduction & auto
Beginner
13
What are the benefits and risks of using auto?
C++ › Type Deduction & auto
C++
Type Deduction & auto
Beginner
14
What is a namespace alias?
C++ › Namespaces
C++
Namespaces
Intermediate
15
What is 'if constexpr' and why is it useful?
C++ › Constexpr & Compile-Time
C++
Constexpr & Compile-Time
Advanced