All fields

“Directives” in Information Technology

23 questions across 6 technologies.

Information Technology

23 questions in 6 technologies

#QuestionTechnologyTopicLevel
1How do namespaces and using directives change from Xamarin.Forms to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
2How do namespaces and using directives change from Xamarin.Forms to MAUI? .NET MAUI › Migration from Xamarin.Forms.NET MAUIMigration from Xamarin.FormsIntermediate
3What are conditional compilation directives used for? C++ › Preprocessor & MacrosC++Preprocessor & MacrosIntermediate
4How 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
5How do the requires and exports directives in a module-info.java file work together to define a module's dependencies and public API surface? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
6How does the ServiceLoader/Service Provider Interface pattern integrate with JPMS using the 'uses' and 'provides ... with' directives, replacing the older META-INF/services file-based mechanism? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
7What performance benefits does the new control flow syntax offer compared to the older structural directives? Angular › New Control Flow Syntax (@if, @for & @switch)AngularNew Control Flow Syntax (@if, @for & @switch)Advanced
8What is a directive in Angular and what are the three main types? Angular › DirectivesAngularDirectivesBeginner
9What is the ngFor structural directive used for, and how does the newer at for syntax compare to it? Angular › DirectivesAngularDirectivesBeginner
10How would you create a custom attribute directive in Angular? Angular › DirectivesAngularDirectivesIntermediate
11How does the HostListener decorator let a directive respond to events on its host element? Angular › DirectivesAngularDirectivesIntermediate
12How would you build a custom structural directive similar to ngIf from scratch? Angular › DirectivesAngularDirectivesAdvanced
13How would you animate a button so it grows slightly when a user hovers over it? Angular › Angular AnimationsAngularAngular AnimationsBeginner
14What is the Angular CDK and how is it different from Angular Material? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Beginner
15What 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
16How would you animate a list where items can be added or removed, such as a shopping cart? Angular › Angular AnimationsAngularAngular AnimationsIntermediate
17How does the Angular CDK's drag and drop module work? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Intermediate
18What does the CDK's virtual scrolling feature do, and why is it useful for very long lists? Angular › Angular CDK (Component Dev Kit)AngularAngular CDK (Component Dev Kit)Intermediate
19What is Angular's DomSanitizer service and when would you need to use it? Angular › Angular Security (XSS, Sanitization & CSP)AngularAngular Security (XSS, Sanitization & CSP)Intermediate
20How would you conditionally show different content in a component's template? Angular › Components & TemplatesAngularComponents & TemplatesIntermediate
21How does using trackBy, or the track expression in the newer at for syntax, improve the performance of rendering lists? Angular › Performance & Lazy LoadingAngularPerformance & Lazy LoadingIntermediate
22How would you manage keyboard focus properly in an Angular modal dialog to keep it accessible? Angular › Accessibility (a11y) in AngularAngularAccessibility (a11y) in AngularAdvanced
23How does ng-template work together with content projection to allow more flexible, conditional content? Angular › Content Projection (ng-content)AngularContent Projection (ng-content)Advanced