quizshot

Download as pdf
Download as pdf
You are on page 1of 36
10:28PM § Hie @ « ee Pert ea oo guards ¥ 10 7) ee Cy ea 4of 10 ©000008 Cee @ decides if a route can be activated qo CUE Len) Comments (0) Notes canLoad is used to prevent the application from loading entire modules lazily if the user is not TUL tatoar dale Coe loNcion usage example in a route definition: [oy- hel a a= ( 1 a loadChildren: app/admin/admin.module#AdminModule' , canLoad: [fAdminGuard1 q O = 0574 RO Bena Pert EN .o Which file is responsible for startup of angular 2 project ? A. main.ts O B. index.js O C. app.ts O D. angular.cli.json O = == Remember: You can view the results after completion. If you navigate back from this page your score will be 0. Swiggy Instamart r Special festive offer (Qaida eel a} Bra eet ee Ce a a74 [x] 4/8 Whatis the value of result? array = [1, 2, 3]; result = array.concat([4], [5]); [1,2,3] true [1, 2,3, 4,5] vY 5 [1, 2, 3, [4], [5]] x The concat() method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array. The concat() method creates a new array consisting of the elements in the object on which it is called, followed in order by, for each argument, the elements of that argument (if the argument is an array) or the argument itself (if the argument is pat an array). 9:57PM § -© @ 7 Bos FS Me Sul $8 Si G2) a a74 [x] 1/8 What is the value of result? sla onne (firstParam, seco firstParam + secondParam; result = func(2, Ni 8 NaN x 2 v undefined 6 Default function parameters allow formal parameters to be initialized with default values if no value or undefined is passed. In the case secondParam will be initialized with null. The addition operator will convert null to 0 based on coercion rules. Ce oe PRR Cyrene) Test 6 2/8 What is the value of result? sm0 al oii af name: "Brendan" Pe Ip result = func(); "object" x "string" "null" "undefined" Ni The return statement is affected by automatic semicolon insertion. No line terminator is allowed between the return keyword and the expression. In this case function will return undefined instead of object. 9:56PM § © @ & bee ae et Ce Test 6 [x] 8/8 What is the value of result? outside = result = inside; (outside) { inside = throw a ReferenceError x null number 95 undefined oY let and const have two broad differences from var: 1) they are block scoped. 2) Accessing a var before it is declared has the result undefined; accessing a let or const before it is declared throws ReferenceError. But inside variable is declared only within if statement and typeof returns "undefined" in this case. 10:27PM § Hie @ « en et) cert < content projection C3} | advanced | 00:04:29 RNa e CAE TT allow to group elements that will be displayed in Comments (0) Notes | P | ngProjectAs is similar to but applies to content projection. It is a grouping element that doesn't interfere with styles or layout because Angular doesn't put it in the DOM. modal.component.ts: import { Component } from "@angular/core': q O = 10:26PM ¢ Fie @ « ea aot) cet TOE < content projection iy | advanced | 00:03:47 Pam OOTY import { Component } from "@angular/core'; @Component ({ selector: ‘app-description', template: 'description' ) export class DescriptionComponent { t abc 10:30PM § Hive @ e een aie ert Ee < template-driven forms C3} CE RO) 1 of 10 COTTE YT E-mail: E-mail is invalid emailField.invalid ts eel e ced a) Comments (0) Notes LP | Is something wrong with this question? q O = 10:30PM § Hie @ am aia Piet Oe < template-driven forms ¥ 10 7) ae beginner | 00:01:34 Pam OTe © shorthand for creating multiple ngModels ee ENE Clg) Comments (0) Notes Is something wrong with this question? Give feedback &1 Po 10:31PM § Hie @ « ee cee EZ € pipes C3} mC 1 of 10 000000008 {{ [1,2,3,4,5] | slice : 1 : 3 }} fa) Eelar lacey) Comments (0) Notes P| Is something wrong with this question? 10:34PM § Hie @ « eae cee oo components ¥ 10 ena | 00:01:33 4of 10 020080000 @Component ({ selector: ‘my-co templateUrl1: }) MyComponent {} ide Eel ecedg) Comments (0) Ney tts) q O 10:35PM § Hie @ ¢ een ae ert EB oo components ¥ 10 ena | 00:02:02 5 of 10 ©0000 { Component } @Component ({ selector: 'my-comp' i) MyComponent { eres) Comments (0) Notes No notes 10:35PM § Hie @ ¢ Aa ae Bert EB = built-in directives ¥ 10 7) ae beginner | 00:00:37 1 of 10 OEE feel eceys) Comments (0) Notes We can add multiple attribute directives to a single element. Angular doesn't restrict us to use only one directive as it happens with structural directives. read more: Angular built-in directives Is something wrong with this question? Give feedback 40 Po q O N00 ae OD ba a et oo vet eda= Va (KS N/a) Absa a advanced | 00:02:28 Sera @ ee OE NEC Comments (0) Notes P| Is something wrong with this question? Give feedback tae ae N00 ae OD ee aot) Beet OP < vet eda= Va (KS TS | advanced | 00:02:11 7 of 10 e©eee0@ class Collection { bio) | find(keyword: string) : T { return this.items.filter(el => el.value === keyword) [0]; i fae) lar dcey) Comments (0) Notes a Is something wrong with this question? 10:48PM $ Hie @ « er cee ee = interfaces ¥ 20 S srag | 00:01:01 Paral ieee) [Orewmy ee nE Li Celg) Comments (0) Ney tt Some properties should only be modifiable when an object is first created. You can specify this by putting readonly before the name of the property. { Ey:<- ale i l=) person: IPerson = {age: 25}; person.age = 5; q O 10:46PM § Hie @ « eae cee ee CN SLUTS SVaPTH SHOW EXPLANATION [ml SHOW EXPLANATION N00 ae OD ba a et oo vet eda= Va (KS N/a) Absa a advanced | 00:02:28 Sera @ ee OE NEC Comments (0) Notes P| Is something wrong with this question? Give feedback tae ae 10:46PM ¢ Fie @ « ee aot) Beet OP < vet eda= Va (KS TS | advanced | 00:02:48 9 of 10 Comments (0) Notes P| It is not possible to create generic enums and namespaces - only classes, functions and interfaces. read more: Is something wrong with this question? N00 ae OD ee aot) Beet OP < vet eda= Va (KS TS | advanced | 00:02:11 7 of 10 e©eee0@ class Collection { bio) | find(keyword: string) : T { return this.items.filter(el => el.value === keyword) [0]; i fae) lar dcey) Comments (0) Notes a Is something wrong with this question? 10:38PM § Hie @ ¢ ee ae ert EB oo Cy Veolia ¥ 10 fal CSS| beginner| 00:00:52 Pama 00000008 Bs { color: red; } { color: green; } * { color: black; } a Pa

example paragraph

ra > eC LCelg) Comments (0) Ney tt 10:35PM § Hie @ ¢ Aa ae Bert EB = built-in directives ¥ 10 7) ae beginner | 00:00:37 1 of 10 OEE feel eceys) Comments (0) Notes We can add multiple attribute directives to a single element. Angular doesn't restrict us to use only one directive as it happens with structural directives. read more: Angular built-in directives Is something wrong with this question? Give feedback 40 Po q O 10:35PM § Hie @ ¢ een ae ert EB oo components ¥ 10 ena | 00:02:02 5 of 10 ©0000 { Component } @Component ({ selector: 'my-comp' i) MyComponent { eres) Comments (0) Notes No notes 10:34PM § Hie @ « eae cee oo components ¥ 10 ena | 00:01:33 4of 10 020080000 @Component ({ selector: ‘my-co templateUrl1: }) MyComponent {} ide Eel ecedg) Comments (0) Ney tts) q O 10:31PM § Hie @ « ee cee EZ € pipes C3} mC 1 of 10 000000008 {{ [1,2,3,4,5] | slice : 1 : 3 }} fa) Eelar lacey) Comments (0) Notes P| Is something wrong with this question? 10:30PM § Hie @ am aia Piet Oe < template-driven forms ¥ 10 7) ae beginner | 00:01:34 Pam OTe © shorthand for creating multiple ngModels ee ENE Clg) Comments (0) Notes Is something wrong with this question? Give feedback &1 Po 10:30PM § Hive @ e een aie ert Ee < template-driven forms C3} CE RO) 1 of 10 COTTE YT E-mail: E-mail is invalid emailField.invalid ts eel e ced a) Comments (0) Notes LP | Is something wrong with this question? q O = 10:28PM § Hie @ « ee Pert ea oo guards ¥ 10 7) ee Cy ea 4of 10 ©000008 Cee @ decides if a route can be activated qo CUE Len) Comments (0) Notes canLoad is used to prevent the application from loading entire modules lazily if the user is not TUL tatoar dale Coe loNcion usage example in a route definition: [oy- hel a a= ( 1 a loadChildren: app/admin/admin.module#AdminModule' , canLoad: [fAdminGuard1 q O = 10:27PM § Hie @ « en et) cert < content projection C3} | advanced | 00:04:29 RNa e CAE TT allow to group elements that will be displayed in Comments (0) Notes | P | ngProjectAs is similar to but applies to content projection. It is a grouping element that doesn't interfere with styles or layout because Angular doesn't put it in the DOM. modal.component.ts: import { Component } from "@angular/core': q O = 10:26PM ¢ Fie @ « ea aot) cet TOE < content projection iy | advanced | 00:03:47 Pam OOTY import { Component } from "@angular/core'; @Component ({ selector: ‘app-description', template: 'description' ) export class DescriptionComponent { t abc 0574 RO Bena Pert EN .o Which file is responsible for startup of angular 2 project ? A. main.ts O B. index.js O C. app.ts O D. angular.cli.json O = == Remember: You can view the results after completion. If you navigate back from this page your score will be 0. Swiggy Instamart r Special festive offer (Qaida eel a} Bra eet ee Ce a a74 [x] 4/8 Whatis the value of result? array = [1, 2, 3]; result = array.concat([4], [5]); [1,2,3] true [1, 2,3, 4,5] vY 5 [1, 2, 3, [4], [5]] x The concat() method is used to merge two or more arrays. This method does not change the existing arrays, but instead returns a new array. The concat() method creates a new array consisting of the elements in the object on which it is called, followed in order by, for each argument, the elements of that argument (if the argument is an array) or the argument itself (if the argument is pat an array). 9:57PM § -© @ 7 Bos FS Me Sul $8 Si G2) a a74 [x] 1/8 What is the value of result? sla onne (firstParam, seco firstParam + secondParam; result = func(2, Ni 8 NaN x 2 v undefined 6 Default function parameters allow formal parameters to be initialized with default values if no value or undefined is passed. In the case secondParam will be initialized with null. The addition operator will convert null to 0 based on coercion rules. 9:56PM § © @ & bee ae et Ce Test 6 [x] 8/8 What is the value of result? outside = result = inside; (outside) { inside = throw a ReferenceError x null number 95 undefined oY let and const have two broad differences from var: 1) they are block scoped. 2) Accessing a var before it is declared has the result undefined; accessing a let or const before it is declared throws ReferenceError. But inside variable is declared only within if statement and typeof returns "undefined" in this case. 9:48PM § © @ ? 3A ee YO. 46,4 Yo 5 fair) ol Test 6 2/8 What is the value of result? func = { name: "Brendan" i jb result = func(); "object" x "string" "null" "undefined" Y The return statement is affected by automatic semicolon insertion. No line terminator is allowed between the return keyword and the expression. In this case function will return undefined instead of object.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy