All fields

“Compilation & Linking” in Information Technology

30 questions across 1 technology.

Information Technology

30 questions in 1 technology

#QuestionTechnologyTopicLevel
1What are the stages of building a C++ program? C++ › Compilation & LinkingC++Compilation & LinkingBeginner
2What is a translation unit? C++ › Compilation & LinkingC++Compilation & LinkingBeginner
3What causes an 'undefined reference' (unresolved symbol) linker error? C++ › Compilation & LinkingC++Compilation & LinkingBeginner
4What is the difference between compile-time and link-time errors? C++ › Compilation & LinkingC++Compilation & LinkingBeginner
5What is the difference between declaration and definition? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
6What is the One Definition Rule (ODR)? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
7What is name mangling? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
8Why do you need include guards or #pragma once, in linkage terms? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
9What is internal versus external linkage? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
10What is the difference between static and dynamic (shared) libraries? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
11What are C++20 modules and how do they improve on headers? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
12What are conditional compilation directives used for? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
13What is a namespace and why use one? C++ › NamespacesC++NamespacesBeginner
14What does 'using namespace std;' do and why is it discouraged in headers? C++ › NamespacesC++NamespacesBeginner
15How do you nest namespaces, and what is the C++17 shorthand? C++ › NamespacesC++NamespacesBeginner
16What is the global namespace and how do you refer to it? C++ › NamespacesC++NamespacesBeginner
17What is the C++ preprocessor? C++ › Preprocessor & MacrosC++Preprocessor & MacrosBeginner
18What is the difference between #include with angle brackets and quotes? C++ › Preprocessor & MacrosC++Preprocessor & MacrosBeginner
19What is an include guard and why is it needed? C++ › Preprocessor & MacrosC++Preprocessor & MacrosBeginner
20What are predefined macros like __LINE__ and __FILE__? C++ › Preprocessor & MacrosC++Preprocessor & MacrosBeginner
21What is the difference between undefined, unspecified, and implementation-defined behavior? C++ › Undefined BehaviorC++Undefined BehaviorBeginner
22What is a using-declaration versus a using-directive? C++ › NamespacesC++NamespacesIntermediate
23What is an anonymous (unnamed) namespace? C++ › NamespacesC++NamespacesIntermediate
24How do namespaces help organize a large codebase? C++ › NamespacesC++NamespacesIntermediate
25Can you forward declare an enum, and what are the rules? C++ › Enums & Enum ClassesC++Enums & Enum ClassesIntermediate
26What tools help detect memory errors in C++? C++ › Memory ManagementC++Memory ManagementAdvanced
27What is an inline namespace and what is it used for? C++ › NamespacesC++NamespacesAdvanced
28How do namespaces interact with the one-definition rule and linkage? C++ › NamespacesC++NamespacesAdvanced
29How does #pragma once compare to traditional include guards? C++ › Preprocessor & MacrosC++Preprocessor & MacrosAdvanced
30What are the dangers of macros affecting names and how do you mitigate them? C++ › Preprocessor & MacrosC++Preprocessor & MacrosAdvanced