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
“References & Pointers” in Information Technology
14 questions across 1 technology.
Information Technology
14 questions in 1 technology
#
Question
Technology
Topic
Level
1
Why does auto strip
references
and top-level const, and when is that a problem?
C++ › Type Deduction & auto
C++
Type Deduction & auto
Advanced
2
How does const propagate with member objects and
pointers
(const propagation)?
C++ › Const Correctness
C++
Const Correctness
Advanced
3
What is the difference between the stack and the heap?
C++ › Memory Management
C++
Memory Management
Beginner
4
What is the difference between auto, auto&, and const auto&?
C++ › Type Deduction & auto
C++
Type Deduction & auto
Beginner
5
What does const mean in C++?
C++ › Const Correctness
C++
Const Correctness
Beginner
6
Why should you pass objects by const reference?
C++ › Const Correctness
C++
Const Correctness
Beginner
7
What is a constant reference and why is it useful?
C++ › Const Correctness
C++
Const Correctness
Beginner
8
What is std::string_view and why was it added?
C++ › Strings & string_view
C++
Strings & string_view
Beginner
9
What happens if you dereference a null pointer?
C++ › Undefined Behavior
C++
Undefined Behavior
Beginner
10
What is a dangling pointer and how does it arise?
C++ › Memory Management
C++
Memory Management
Intermediate
11
What causes a stack overflow?
C++ › Memory Management
C++
Memory Management
Intermediate
12
What is the difference between capturing by value and by reference?
C++ › Lambda Expressions
C++
Lambda Expressions
Intermediate
13
What is the difference between const pointer and pointer to const?
C++ › Const Correctness
C++
Const Correctness
Intermediate
14
What is the difference between passing const std::string& and std::string_view?
C++ › Strings & string_view
C++
Strings & string_view
Advanced