All fields

“Modern C++” in Information Technology

15 questions across 1 technology.

Information Technology

15 questions in 1 technology

#QuestionTechnologyTopicLevel
1Why are function-like macros discouraged in modern C++? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
2What is an enumeration (enum) in C++? C++ › Enums & Enum ClassesC++Enums & Enum ClassesBeginner
3What is consteval (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
4What is constinit (C++20)? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
5What is std::bit_cast (C++20)? C++ › Casting & ConversionsC++Casting & ConversionsAdvanced
6What is std::format (C++20) and how does it improve string formatting? C++ › Strings & string_viewC++Strings & string_viewAdvanced
7How do you handle Unicode and encodings in C++ strings? C++ › Strings & string_viewC++Strings & string_viewAdvanced
8What is std::generator (C++23) and how does it simplify coroutine use? C++ › CoroutinesC++CoroutinesAdvanced
9What are C++20 modules and how do they improve on headers? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
10Can a lambda be recursive? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
11What does constexpr mean? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
12What is the auto keyword? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
13What are the benefits and risks of using auto? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
14What is a namespace alias? C++ › NamespacesC++NamespacesIntermediate
15What is 'if constexpr' and why is it useful? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced