Search Header Logo

Angular_L1

Authored by Robert Irudyanathan

Other

Professional Development

Angular_L1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used in Angular to create unit test cases?

'Jasmine'
'Mocha'
'Jest'
'Enzyme'

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which decorator in Angular is used to define a unit test?

'@Component'
'@Injectable'
'@Test'
'@Directive'

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following needs to be imported in Angular to enable unit testing?

'TestBed'
'TestingModule'
'TestModule'
'UnitTestModule'

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method in TestBed is used to compile components dynamically in Angular tests?

'compileModule'
'configureTestingModule'
'overrideModule'
'overrideComponent'

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to get access to rendered DOM elements in Angular tests?

'TestFixture'
'DebugElement'
'DOMElement'
'ComponentElement'

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method in Angular TestingModule helps in creating async observable that emits test values?

'createObservable'
'observable'
'asyncData'
'fakeAsync'

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to trigger change detection in Angular tests?

'detectChanges'
'onChange'
'triggerChange'
'runChangeDetection'

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?