option
Cuestiones
ayuda
daypo
buscar.php

Angular Basic

COMENTARIOS ESTADÍSTICAS RÉCORDS
REALIZAR TEST
Título del Test:
Angular Basic

Descripción:
Basic knowledge

Fecha de Creación: 2026/02/07

Categoría: Otros

Número Preguntas: 9

Valoración:(0)
COMPARTE EL TEST
Nuevo ComentarioNuevo Comentario
Comentarios
NO HAY REGISTROS
Temario:

True or False: You can define an Angular Component without using the @Component decorator as long as you have an HTML file. True. False.

What are the three essential parts that make up an Angular Component?. A Service, a Module, and a Directive. A TypeScript Class, an HTML Template, and Metadata (Decorator). A JSON configuration, a CSS file, and a Provider.

How does Angular technically categorize a Component in its internal hierarchy?. It is a specialized type of Directive. It is a subtype of an Injectable Service. It is a standalone function called by the Index.html.

In the component definition, what is the purpose of the selector property?. It selects which CSS file to apply to the component. It defines the custom HTML tag name used to instantiate the component in a template. It selects which service the component should inject.

Before the adoption of component-based architectures like Angular's, what was a primary struggle for developers working on large-scale web applications?. JavaScript was not powerful enough to handle simple loops. Large applications often became "monolithic," where a single change in one part of the UI could unexpectedly break logic in a completely unrelated section. Browsers were unable to render more than one HTML file at a time.

Why does Angular motivate developers to keep HTML, CSS, and Logic inside a single component unit rather than having one giant global stylesheet and one giant script file?. To ensure that styles and logic are "scoped," preventing a component's internal CSS from accidentally changing the look of other parts of the app. Because Angular's compiler cannot read files that are longer than 500 lines of code. To increase the total number of files in the project so it looks more professional.

Which scenario best illustrates the "Intent" of reusability in Angular components?. Copy-pasting the same 50 lines of HTML into five different pages. Creating a single CustomCardComponent and using its selector <app-custom-card> multiple times through the app with different data. Using a Service to fetch data and then manually updating the DOM using vanilla JavaScript.

How does the component-based attempt of Angular assist large development teams working on the same project?. It forces all developers to work in the same file to ensure they are communicating. It allows different developers to work on separate, isolated components simultaneously without causing constant merge conflicts in a single "master" UI file. It automatically writes the documentation for the team as they code.

Which part of the component structure is responsible for "telling" Angular that a standard TypeScript class should actually be treated as a component?. The constructor() method inside the class. The @Component decorator (Metadata). The export keyword before the class name.

Denunciar Test