What is the default value for box-sizing in CSS?
box-sizing
border-box
content-box
inherit
inherit
none
What is the width of the rendered <div> element?
width
<div>
div { width: 100px; padding: 5px; background: red; box-sizing: border-box; }
90px
100px
105px
110px
What is the height of the rendered <div> element?
height
div { height: 100px; border: 3px solid black; background: red; box-sizing: border-box; }
94px
103px
106px
What is the final height of the rendered <div> element?
div { height: 100px; margin: 5px; background: red; box-sizing: border-box; }
95px
Which property is used to change font color?
font-style
font-variant
color
font-weight
Fill the blank to register a custom service:
import { NgModule } from '@angular/core'; import { ProductsService } from './products.service'; @NgModule({ : [ ProductsService ] }) export class AppModule {}
Fill the blank to register a custom component in the module:
import { NgModule } from '@angular/core'; import { GameDetailsComponent } from './game-details.component'; @NgModule({ : [ GameDetailsComponent ] }) export class AppModule {}
Services in Angular cannot depend on other services. True or false?
true
false
What kind of attribute should be used in @ViewChild to access the <child> component?
@ViewChild
<child>
import { Component, ViewChild } from '@angular/core'; @Component({ selector: 'app-component', template: '<child #myChild></child>' }) export class AppComponent { }
id="myChild"
myChild
#myChild
[myChild]
There are two types of directives in Angular. Select correct answer:
injected and structural
attribute and schematic
encapsulated and structural
attribute and structural