All fields

“Namespaces” in Information Technology

55 questions across 7 technologies.

Information Technology

55 questions in 7 technologies

#QuestionTechnologyTopicLevel
1How do you nest namespaces, and what is the C++17 shorthand? C++ › NamespacesC++NamespacesBeginner
2How do namespaces help organize a large codebase? C++ › NamespacesC++NamespacesIntermediate
3How do namespaces interact with the one-definition rule and linkage? C++ › NamespacesC++NamespacesAdvanced
4How do you organize namespaces effectively in a larger application to reflect logical groupings such as models, services, and controllers? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingIntermediate
5What is a namespace and why use one? C++ › NamespacesC++NamespacesBeginner
6What does 'using namespace std;' do and why is it discouraged in headers? C++ › NamespacesC++NamespacesBeginner
7What is the global namespace and how do you refer to it? C++ › NamespacesC++NamespacesBeginner
8How do namespaces and using directives change from Xamarin.Forms to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
9How do namespaces and using directives change from Xamarin.Forms to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
10How do you prevent a team from deploying to namespaces they don't own? ArgoCD › RBACArgoCDRBACIntermediate
11What is a using-declaration versus a using-directive? C++ › NamespacesC++NamespacesIntermediate
12What is an anonymous (unnamed) namespace? C++ › NamespacesC++NamespacesIntermediate
13What is a namespace alias? C++ › NamespacesC++NamespacesIntermediate
14What is argument-dependent lookup (ADL)? C++ › NamespacesC++NamespacesAdvanced
15What is an inline namespace and what is it used for? C++ › NamespacesC++NamespacesAdvanced
16How do 'extension method ambiguity' conflicts arise when two different NuGet packages or namespaces define extension methods with the identical signature, and how do you resolve them? C# › Extension MethodsC#Extension MethodsAdvanced
17What is a TypeScript namespace, and how is it declared? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingBeginner
18Why is 'export' required inside a namespace for a member to be accessible from outside it? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingBeginner
19What are top-level statements, and how do they simplify a basic C# program's entry point? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Beginner
20What is a file-scoped namespace declaration, and how does it reduce indentation compared to a traditional block-scoped namespace? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Beginner
21What is a namespace in PHP, and what problem does it solve when working with larger applications or third party libraries? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingBeginner
22How do you use the use keyword to import a class from a specific namespace, letting you reference it by its short name within a file? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingBeginner
23What is declaration merging, and how does TypeScript combine multiple 'interface' declarations with the same name? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingIntermediate
24How does merging work between a namespace and a class (or function) sharing the same name? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingIntermediate
25How do you merge a namespace with an enum to add extra static-like helper functionality to that enum? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingIntermediate
26How do global using directives work, and how do you declare one for an entire project? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Intermediate
27What does the 'ImplicitUsings' project setting (`<ImplicitUsings>enable</ImplicitUsings>`) do automatically? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Intermediate
28How do required members (C# 11's 'required' keyword) enforce that certain properties MUST be set during object initialization? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Intermediate
29How does PSR-4 autoloading work, and how does it map a namespace structure directly to a corresponding directory structure on disk? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingIntermediate
30What is the difference between using a relative namespace reference, a fully qualified name starting with a backslash, and importing a class with use, when referencing a class from within a namespaced file? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingIntermediate
31What conflicts and restrictions exist when merging two interfaces that both declare the same property name? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
32How would you use declaration merging to properly type a module augmentation that adds a method to a third-party library's exported class? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
33How does namespace merging across multiple files work, and what does this mean for organizing large ambient type declarations? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
34Why can't 'type' aliases participate in declaration merging the way 'interface' declarations can, and what design implication does this have? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
35How would you migrate a legacy namespace-organized codebase to ES Modules, and what pitfalls commonly arise? TypeScript › Namespaces & Declaration MergingTypeScriptNamespaces & Declaration MergingAdvanced
36How do C# 12's collection expressions (`[1, 2, 3]`) provide a unified, type-agnostic syntax for initializing arrays, lists, and spans? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
37How do C# 12 primary constructors interact with dependency injection in ASP.NET Core minimal APIs and controller classes? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
38How does the 'file' access modifier (C# 11) create a type visible ONLY within its own source file, and what problem does this solve for source generators? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
39How do C# 12's default parameter values on LAMBDA expressions work, and what limitation did they remove compared to earlier C# versions? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
40How do C# 11's raw string literals (`"""..."""`) simplify writing strings containing quotes, escape sequences, or multi-line content like JSON or SQL? C# › Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)C#Modern C# Features (Global Usings, File-Scoped Namespaces, Top-Level Statements)Advanced
41How does Composer's classmap and files autoloading mechanism differ from PSR-4, and when would you use these alternative approaches instead? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingAdvanced
42How does Composer generate and optimize its autoloader for production, and what is the difference between the development autoloader and an optimized production autoloader? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingAdvanced
43What causes an 'undefined reference' (unresolved symbol) linker error? C++ › Compilation & LinkingC++Compilation & LinkingBeginner
44What is Composer and why is it considered an essential tool for modern PHP development? PHP › ComposerPHPComposerBeginner
45What is the composer.json file, and what key information does it contain about a PHP project? PHP › ComposerPHPComposerBeginner
46What is a Composer package, and why might a developer choose to extract reusable code into a standalone package rather than keeping it within a single application? PHP › Package Development & Publishing with ComposerPHPPackage Development & Publishing with ComposerBeginner
47What is Packagist, and what role does it play in making a PHP package publicly available for other developers to install through Composer? PHP › Package Development & Publishing with ComposerPHPPackage Development & Publishing with ComposerBeginner
48What are the scoping and name-collision advantages of enum class? C++ › Enums & Enum ClassesC++Enums & Enum ClassesIntermediate
49What is the difference between declaration and definition? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
50What is name mangling? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
51How does Composer's autoloading feature, particularly PSR-4 autoloading, eliminate the need to manually require every class file in a PHP project? PHP › ComposerPHPComposerIntermediate
52How does the WordPress plugin file structure typically work, including the required plugin header comment that WordPress uses to recognize and display a plugin? PHP › WordPress Plugin & Theme DevelopmentPHPWordPress Plugin & Theme DevelopmentIntermediate
53What are the dangers of macros affecting names and how do you mitigate them? C++ › Preprocessor & MacrosC++Preprocessor & MacrosAdvanced
54What is internal versus external linkage? C++ › Compilation & LinkingC++Compilation & LinkingAdvanced
55What is module augmentation and how do you use it to add a method to an existing library's types? TypeScript › Declaration FilesTypeScriptDeclaration FilesAdvanced