Monday, 1 October 2018

Jasmine - Test Framework - Quiz - 2


Welcome back, let's move on post Part 1


1. Angular Http or HttpClient Get API returns which of the following?

A.
Promise
B.
Observable


2. Promise helps in achieving which of the following type of operations?

A.
Synchronous
B.
Asynchronous


3. All of the following are features of Jasmine except

A.
supports asynchronous testing
B.
make use of spies
C.
automation 
D.
supports testing front-code



4. One should not re-configure TestBed after calling createComponent API on TestBed

A.
True
B.
False



5. What is required for Angular testing utilities for unit testing?

A.
imports
B.
Components
C.
spyOn
D.
providers

6. Prior to development of Jasmine what was developed?

A.
JSunit
B.
Screwunit
C.
RSpec
D.
Jquery


7. Jasmine is written in what programming language?

A.
Java
B.
Scala
C.
Python
D.
JavaScript


8. Jasmine can be described as a

A.
dual platform framework
B.
single platform framework
C.
all platform framework
D.
cross platform framework 


9. HttpClient is the recommended way for communicating with remote APIs

A.
From Angular 6
B.
From Angular 4
C.
From Angular 5
D.
From Angular 2


10. The promise object can further be passed to another promise object which can then be passed to another promise object which could then choose to resolve or reject the promise.

A.
Promise chaining
B.
Promise by reference


Looking for correct options?

Here are the answers:
1.B ; 2.B; 3.A; 4.A; 5.B ;6.A; 7.D; 8.D; 9.C; 10.A;


Jasmine Design by Test : Book available at Amazon.in |  Flip kart |, e-book @Pothi.com

Thank you!


Satender Kumar Mall
Twitter: @satenderiiit




No comments:

Post a Comment