Search Header Logo

Angular Quiz

Authored by Shad Khan

Professional Development

KG

25 Questions

Used 39+ times

Angular Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which are the different Data Types supported by Typescript?

Boolean

var bValue: boolean = false

Number

var age: number = 16

String

var name: string = "jon"

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of below code

<div>{{ 'Hello! This is Angular Quiz' | uppercase | lowercase |

titlecase }}</div>

hello! this is angular quiz

Hello! This Is Angular Quiz

HELLO! THIS IS ANGULAR QUIZ

Error -

(Can't use multiple pipes for same element)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the types of directives (Select all that apply)

i) Component

ii) Structural

iii) Behavioral

iv) Attribute

ii, iii, iv

i, ii, iv

i, ii, iii

i, iii, iv

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I have created a custom pipe with name substr which takes start index, and end index as paramenters.

A variable is declared in TS file as - let header = 'Angular Quiz';

What is the code to display output as "Quiz"

{{ header | substr(8, 12) }}

{{ substr (header, 8, 12) }}

{{ header | substr:8:12 }}

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not built-in pipe in Angular?

DatePipe

CurrencyPipe

DataPipe

PercentPipe

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which directive substitutes the normal href property and makes it easier to work with route links in Angular?

RouterLink

RouterRend

RouterLike

RouterLayer

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select all Structaral directives from below

i) *ngIf

ii) *ngFor

iii) *ngClass

iv) *ngElse

v) *ngWhile

vi) *ngSwitch

ii, iii, v

i, ii, iv

i, ii, vi

i, iii, v

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?