All fields

“Const Correctness” in Information Technology

15 questions across 2 technologies.

Information Technology

15 questions in 2 technologies

#QuestionTechnologyTopicLevel
1Why is const correctness important in API design? C++ › Const CorrectnessC++Const CorrectnessIntermediate
2What does const mean in C++? C++ › Const CorrectnessC++Const CorrectnessBeginner
3What is a const member function? C++ › Const CorrectnessC++Const CorrectnessBeginner
4Why should you pass objects by const reference? C++ › Const CorrectnessC++Const CorrectnessBeginner
5What is a constant reference and why is it useful? C++ › Const CorrectnessC++Const CorrectnessBeginner
6What is the difference between const pointer and pointer to const? C++ › Const CorrectnessC++Const CorrectnessIntermediate
7What is const_cast and when is it (rarely) appropriate? C++ › Const CorrectnessC++Const CorrectnessIntermediate
8What is the difference between physical and logical constness? C++ › Const CorrectnessC++Const CorrectnessAdvanced
9How do you overload a member function on const? C++ › Const CorrectnessC++Const CorrectnessAdvanced
10How does const propagate with member objects and pointers (const propagation)? C++ › Const CorrectnessC++Const CorrectnessAdvanced
11What is the relationship between const and thread safety? C++ › Const CorrectnessC++Const CorrectnessAdvanced
12What is the mutable keyword? C++ › Const CorrectnessC++Const CorrectnessIntermediate
13What is the difference between const and constexpr? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
14What happens to the performance and correctness of a view if the underlying tables change significantly after the view was originally created? SQL Server › ViewsSQL ServerViewsAdvanced
15What is an immediately invoked lambda expression (IILE) and why use it? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate