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
15 questions for “Modern C++”
Found in 1 field. Select a question to see its full answer.
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
Show all 15 questions in Information Technology