All fields

“Templates” in Information Technology

144 questions across 9 technologies.

Information Technology

144 questions in 9 technologies

#QuestionTechnologyTopicLevel
1How would you implement route-based API versioning using route templates and constraints without a dedicated versioning library? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
2Why use concepts instead of unconstrained templates? C++ › Concepts & ConstraintsC++Concepts & ConstraintsBeginner
3What does `dotnet new` do, and how do you list available project templates? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
4What is a DataTemplateSelector and when is it useful? .NET MAUI › Controls & Views.NET MAUIControls & ViewsIntermediate
5What is a DataTemplateSelector and when is it useful? .NET MAUI › Controls & Views.NET MAUIControls & ViewsIntermediate
6How do you implement URL segment-based API versioning for controllers using [ApiVersion] and route templates? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningIntermediate
7How do CloudFormation parameters and outputs make templates more reusable and flexible across different environments? AWS › IaC (CloudFormation)AWSIaC (CloudFormation)Intermediate
8How do control structures like loops and conditionals work within Blade and Twig templates, and how do they compare to writing the equivalent raw PHP directly inside an HTML file? PHP › Template Engines (Blade & Twig)PHPTemplate Engines (Blade & Twig)Intermediate
9How can SAM templates be organized and parameterized to support deploying the same serverless application consistently across multiple environments like development, staging, and production? AWS › AWS Serverless Application Model (SAM)AWSAWS Serverless Application Model (SAM)Advanced
10How can template caching and precompilation in Blade and Twig improve the performance of rendering templates on every incoming request? PHP › Template Engines (Blade & Twig)PHPTemplate Engines (Blade & Twig)Advanced
11What is a route template in ASP.NET Core, and how do route parameters like {id} work within one? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesBeginner
12What is a component in Angular and what are its main parts? Angular › Components & TemplatesAngularComponents & TemplatesBeginner
13What is Angular's template syntax used for displaying dynamic values on the page? Angular › Components & TemplatesAngularComponents & TemplatesBeginner
14What is a layout in the Next.js App Router, and how does it work? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesBeginner
15What is the difference between a layout and a template in the Next.js App Router? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesBeginner
16How do route constraints (like {id:int} or {id:guid}) restrict which requests match a given route, and why are they useful? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
17What is endpoint metadata, and how do attributes like [Authorize] and custom metadata attach to a specific route for later inspection by middleware? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
18How does route template precedence work when multiple routes could potentially match the same incoming URL? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
19How do you define optional route parameters, and what's the difference between an optional parameter and one with a default value? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
20What is route grouping via MapGroup, and how does it let you apply shared route prefixes, metadata, and filters to a set of related minimal API endpoints? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
21How do route parameter transformers let you customize the casing convention of generated URLs, such as converting PascalCase action names to kebab-case URLs? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
22How do complex/composite route segments (combining literal text and a parameter in the same segment, like {fileName}.{extension}) work? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesIntermediate
23How do standalone components change the way you organize and use components in Angular? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
24How would you conditionally show different content in a component's template? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
25How do nested layouts work when you have layouts defined at multiple levels of your route structure? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesIntermediate
26How would you create a layout that only applies to a specific group of routes without affecting the URL structure? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesIntermediate
27How would you implement a custom route constraint (IRouteConstraint) for a domain-specific validation pattern, like a product SKU format? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
28How do you write custom middleware or an endpoint filter that reads endpoint metadata to conditionally alter its behavior per-route? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
29How would you implement a catch-all route parameter to handle a variable-depth URL path, like a file browser or wiki-style page hierarchy? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
30How do you generate a URL for a named route or endpoint programmatically, rather than hardcoding URL strings throughout the application (like in a Location header for a 201 Created response)? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
31How would you debug why a specific request isn't matching the route you expect it to, using ASP.NET Core's routing diagnostics? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
32How would you design a route structure and constraint strategy for a large, RESTful API with deeply nested resource hierarchies (like organizations/{orgId}/projects/{projectId}/tasks/{taskId})? ASP.NET Core › Endpoint Metadata, Route Constraints & TemplatesASP.NET CoreEndpoint Metadata, Route Constraints & TemplatesAdvanced
33How do you pass data into a component from its parent using an input property? Angular › Components & TemplatesAngularComponents & TemplatesAdvanced
34How do you fetch and share data across a layout and all of its nested pages efficiently? Next.js › Layouts & TemplatesNext.jsLayouts & TemplatesAdvanced
35What is a lambda expression in C++? C++ › Lambda ExpressionsC++Lambda ExpressionsBeginner
36What does constexpr mean? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
37What is static_assert? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeBeginner
38What is the auto keyword? C++ › Type Deduction & autoC++Type Deduction & autoBeginner
39What are C++20 ranges? C++ › Ranges & ViewsC++Ranges & ViewsBeginner
40What are C++20 concepts? C++ › Concepts & ConstraintsC++Concepts & ConstraintsBeginner
41How do concepts improve template error messages? C++ › Concepts & ConstraintsC++Concepts & ConstraintsBeginner
42What are some standard library concepts? C++ › Concepts & ConstraintsC++Concepts & ConstraintsBeginner
43What is the fundamental structural difference between controller-based APIs (MVC) and minimal APIs in ASP.NET Core? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsBeginner
44What is accessibility in Angular and why does it matter? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularBeginner
45What is the Angular animations module and how do you enable it in a project? Angular › Angular AnimationsAngularAngular AnimationsBeginner
46How would you animate a button so it grows slightly when a user hovers over it? Angular › Angular AnimationsAngularAngular AnimationsBeginner
47What is Angular DevTools and how do you install it? Angular › Angular DevTools & DebuggingAngularAngular DevTools & DebuggingBeginner
48How do you add a Material dialog to an Angular app? Angular › Angular Material & UI Component LibrariesAngularAngular Material & UI Component LibrariesBeginner
49What is cross site scripting, often called XSS, and how does Angular protect against it by default? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Beginner
50What is the official Angular style guide, and why is it useful for a team? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesBeginner
51Why does the Angular style guide recommend keeping components small and focused rather than very large? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesBeginner
52What is content projection in Angular and what does ng-content do? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
53What is a simple real world example of when content projection is useful? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Beginner
54What are the main types of data binding in Angular? Angular › Data BindingAngularData BindingBeginner
55How does event binding work in Angular, letting a component respond to a user action? Angular › Data BindingAngularData BindingBeginner
56What is a directive in Angular and what are the three main types? Angular › DirectivesAngularDirectivesBeginner
57How do you prevent a form from reloading the page when it is submitted in Angular? Angular › FormsAngularFormsBeginner
58What is internationalization in Angular, and what built in tool does the framework provide for it? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularBeginner
59What are lifecycle hooks in Angular and why would you use them? Angular › Lifecycle HooksAngularLifecycle HooksBeginner
60What is the new at if control flow block in Angular, and how does it compare to the older asterisk ngIf directive? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Beginner
61What is an NgModule in Angular, and what was its traditional purpose? Angular › NgModules & Modular ArchitectureAngularNgModules & Modular ArchitectureBeginner
62What is a pipe in Angular and how do you use one in a template? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Beginner
63How do you create a clickable link to navigate between pages using Angular's router? Angular › RoutingAngularRoutingBeginner
64What is a service in Angular and why are services used to hold shared logic? Angular › Services & Dependency InjectionAngularServices & Dependency InjectionBeginner
65What is a standalone component in Angular, and how do you create one? Angular › Standalone ComponentsAngularStandalone ComponentsBeginner
66What is a common sign that an Angular app's state management approach needs to be reconsidered? Angular › State ManagementAngularState ManagementBeginner
67What is a template reference variable in Angular, and how do you use one? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildBeginner
68What is the difference between a unit test and a component test in an Angular app? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaBeginner
69Why does Angular use TypeScript instead of plain JavaScript, and what benefit does it provide? Angular › TypeScript with AngularAngularTypeScript with AngularBeginner
70What is the purpose of the custom App component in the Pages Router? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterBeginner
71How do you set the page title and description for SEO in the Next.js App Router? Next.js › Metadata API & SEO OptimizationNext.jsMetadata API & SEO OptimizationBeginner
72What are parallel routes in the Next.js App Router, and why would you use them? Next.js › Parallel Routes & Intercepting RoutesNext.jsParallel Routes & Intercepting RoutesBeginner
73How does file based routing work in the Next.js App Router? Next.js › Routing (App/Pages Router)Next.jsRouting (App/Pages Router)Beginner
74How is routing in the Pages Router different from the App Router? Next.js › Routing (App/Pages Router)Next.jsRouting (App/Pages Router)Beginner
75What is std::function and how does it relate to lambdas? C++ › Lambda ExpressionsC++Lambda ExpressionsIntermediate
76What are the rules/limitations of constexpr functions? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
77How does constexpr improve performance? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeIntermediate
78How does template argument deduction work? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
79What is decltype and how does it differ from auto? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
80What is auto return type deduction for functions? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
81What is a forwarding (universal) reference and how is it deduced? C++ › Type Deduction & autoC++Type Deduction & autoIntermediate
82Why are function-like macros discouraged in modern C++? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
83What are the different ways to apply a constraint to a template? C++ › Concepts & ConstraintsC++Concepts & ConstraintsIntermediate
84What is a requires expression? C++ › Concepts & ConstraintsC++Concepts & ConstraintsIntermediate
85How does concept subsumption affect overload resolution? C++ › Concepts & ConstraintsC++Concepts & ConstraintsIntermediate
86What is the One Definition Rule (ODR)? C++ › Compilation & LinkingC++Compilation & LinkingIntermediate
87How do you organize and group endpoints in Swagger UI by tags or API version? ASP.NET Core › API Documentation with Swagger/OpenAPIASP.NET CoreAPI Documentation with Swagger/OpenAPIIntermediate
88What is the difference between versioning at the API level (entire controller/group) versus versioning individual actions within a shared controller? ASP.NET Core › API VersioningASP.NET CoreAPI VersioningIntermediate
89How do you restrict access to a minimal API endpoint or endpoint group using authorization, given minimal APIs don't use controller attributes? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
90How does the [Authorize] attribute interact with Razor Pages, given they don't use the traditional controller/action model? ASP.NET Core › AuthorizationASP.NET CoreAuthorizationIntermediate
91How do you organize a large number of minimal API endpoints without ending up with an enormous, unwieldy Program.cs file? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
92Can a single ASP.NET Core project use both controllers and minimal APIs simultaneously, and what are valid reasons to do so? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
93How does route-to-code discoverability differ between controllers' attribute-based routing and minimal APIs' explicit registration, and what are the trade-offs for large codebases? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsIntermediate
94How do you add ARIA attributes to a custom Angular component to make it accessible? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularIntermediate
95How do you define a simple fade in animation using the trigger and transition functions in Angular? Angular › Angular AnimationsAngularAngular AnimationsIntermediate
96How would you generate a new component, service, or module using Angular CLI commands? Angular › Angular CLI & Project StructureAngularAngular CLI & Project StructureIntermediate
97How do you pass data into an Angular Element from outside, such as from plain HTML or JavaScript? Angular › Angular Elements (Web Components)AngularAngular Elements (Web Components)Intermediate
98What is the single responsibility principle and how does it apply to writing Angular components and services? Angular › Angular Style Guide & Best PracticesAngularAngular Style Guide & Best PracticesIntermediate
99How would you use multiple ng-content slots to project content into different specific locations within a component? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Intermediate
100How does two way binding using the banana in a box syntax, square brackets and parentheses together, actually work behind the scenes? Angular › Data BindingAngularData BindingIntermediate
101How does attribute binding differ from property binding, and when do you actually need to use it? Angular › Data BindingAngularData BindingIntermediate
102How does the HostListener decorator let a directive respond to events on its host element? Angular › DirectivesAngularDirectivesIntermediate
103How do you format dates, numbers, and currency correctly for different locales in an Angular app? Angular › Internationalization (i18n) in AngularAngularInternationalization (i18n) in AngularIntermediate
104How does the new at switch control flow block let you handle multiple possible conditions cleanly? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Intermediate
105How do you select a specific piece of state from the NgRx store and use it in a component? Angular › NgRx State ManagementAngularNgRx State ManagementIntermediate
106How would you create a custom pipe in Angular, such as one that truncates long text? Angular › Pipes (Built-in & Custom)AngularPipes (Built-in & Custom)Intermediate
107What is a resolver in Angular routing, and what problem does it solve? Angular › Router Guards & ResolversAngularRouter Guards & ResolversIntermediate
108How do you read a dynamic value from the URL, such as a product id, in an Angular route? Angular › RoutingAngularRoutingIntermediate
109What does the ViewChild decorator do, and how would you use it to access a child component from a parent's TypeScript code? Angular › Template Reference Variables & ViewChildAngularTemplate Reference Variables & ViewChildIntermediate
110How would you test that clicking a button in a component triggers the expected behavior? Angular › Testing with Jasmine & KarmaAngularTesting with Jasmine & KarmaIntermediate
111Why can you not use React hooks like useState inside the custom Document component? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterIntermediate
112If a project is migrating from the Pages Router to the App Router, what happens to the custom App and Document components? Next.js › Custom App & Document in Pages RouterNext.jsCustom App & Document in Pages RouterIntermediate
113How does the global-error.js file differ from a regular error.js file in the App Router? Next.js › Error Handling & Not Found PagesNext.jsError Handling & Not Found PagesIntermediate
114How is the folder structure organized differently between the App Router and the Pages Router? Next.js › Next.js Project Setup & ConfigurationNext.jsNext.js Project Setup & ConfigurationIntermediate
115How do you share state between multiple components that are not directly related, such as a shopping cart shown in both the header and a product page? Next.js › State Management in Next.js AppsNext.jsState Management in Next.js AppsIntermediate
116How would you organize global styles versus component specific styles in a large Next.js application? Next.js › Styling in Next.js (CSS Modules, Tailwind & Styled Components)Next.jsStyling in Next.js (CSS Modules, Tailwind & Styled Components)Intermediate
117What is a generic (template) lambda? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced
118How are lambdas implemented under the hood? C++ › Lambda ExpressionsC++Lambda ExpressionsAdvanced
119What is compile-time computation good for, and what are its trade-offs? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
120What is 'if constexpr' and why is it useful? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
121What is template metaprogramming versus constexpr for compile-time work? C++ › Constexpr & Compile-TimeC++Constexpr & Compile-TimeAdvanced
122What is decltype(auto) and when is it needed? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
123What is class template argument deduction (CTAD)? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
124How does deduction interact with reference collapsing rules? C++ › Type Deduction & autoC++Type Deduction & autoAdvanced
125How do concepts compare to SFINAE and enable_if? C++ › Concepts & ConstraintsC++Concepts & ConstraintsAdvanced
126How do you define a custom concept? C++ › Concepts & ConstraintsC++Concepts & ConstraintsAdvanced
127How do concepts interact with the ranges library? C++ › Concepts & ConstraintsC++Concepts & ConstraintsAdvanced
128What are the coroutine machinery components (promise_type, awaitable, coroutine_handle)? C++ › CoroutinesC++CoroutinesAdvanced
129How would you exclude specific endpoints or entire controllers from appearing in the generated Swagger documentation? ASP.NET Core › API Documentation with Swagger/OpenAPIASP.NET CoreAPI Documentation with Swagger/OpenAPIAdvanced
130How does the underlying request execution pipeline differ in performance between controllers and minimal APIs, and what accounts for the difference? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsAdvanced
131How would you decide between controllers and minimal APIs for a new project, weighing team familiarity, project complexity, and long-term maintainability? ASP.NET Core › Controllers vs Minimal APIsASP.NET CoreControllers vs Minimal APIsAdvanced
132How does CORS interact with an API gateway or reverse proxy sitting in front of multiple backend microservices? ASP.NET Core › CORS (Cross-Origin Resource Sharing)ASP.NET CoreCORS (Cross-Origin Resource Sharing)Advanced
133How do route transition animations work in Angular, allowing pages to animate as a user navigates? Angular › Angular AnimationsAngularAngular AnimationsAdvanced
134How does the CDK Overlay service help you build components like tooltips and dropdown menus that need to appear above everything else? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Advanced
135How do you create a custom form field control that integrates properly with Angular Material's form field wrapper? Angular › Angular Material & UI Component LibrariesAngularAngular Material & UI Component LibrariesAdvanced
136How do signal inputs work in modern Angular components, and how are they different from the traditional Input decorator? Angular › Angular SignalsAngularAngular SignalsAdvanced
137How would you create a custom two way binding for your own component's custom property? Angular › Data BindingAngularData BindingAdvanced
138How would you build a custom structural directive similar to ngIf from scratch? Angular › DirectivesAngularDirectivesAdvanced
139How would you use Angular's built in deferred loading, the at defer block, to improve performance further? Angular › Performance & Lazy LoadingAngularPerformance & Lazy LoadingAdvanced
140How would you implement nested, or child, routes in Angular for a layout with a shared parent section? Angular › RoutingAngularRoutingAdvanced
141How would you create a reusable, generic Angular component using TypeScript, such as a list component that works with any data type? Angular › TypeScript with AngularAngularTypeScript with AngularAdvanced
142How does route based code splitting interact with shared layouts in the App Router? Next.js › Bundle Analysis & Code SplittingNext.jsBundle Analysis & Code SplittingAdvanced
143How would you combine parallel routes and intercepting routes together to build a modal that overlays the current page? Next.js › Parallel Routes & Intercepting RoutesNext.jsParallel Routes & Intercepting RoutesAdvanced
144How would you organize routes for a large application using route groups to keep related sections logically separated without affecting the URL? Next.js › Routing (App/Pages Router)Next.jsRouting (App/Pages Router)Advanced