Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. How does Angular 4 improved error handling, when an error is caused by something in a template?
  1.    By enabling TypeScript's StrictNullChecks
  2.    By creating flattened versions of Angular modules
  3.    By generating source maps in terms of original template
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> By creating flattened versions of Angular modules




Question 2. The . . . . . decorator allows us to define the pipe name that is globally available for use in any template in the across application.
  1.    pipeName
  2.    pipeDeco
  3.    Pipe
  4.    None
 Discuss Question
Answer: Option C. -> Pipe




Question 3. Observables help you manage . . . . . . . . data.
  1.    synchronous
  2.    asynchronous
  3.    Both asynchronous & synchronous
  4.    None of above
 Discuss Question
Answer: Option B. -> asynchronous




Question 4. How would you display a list of Employees on a webpage along with where they were in the list?
  1.    Loop through and print the index
  2.    Loop through and print the employees
  3.    Loop through and print the index and the employee
  4.    Pass both the index and the employee to a web service
 Discuss Question
Answer: Option C. -> Loop through and print the index and the employee




Question 5. Where would you put it?
  1.    In the Component
  2.    In the Template
  3.    In the Injectable decorator
  4.    In the module
 Discuss Question
Answer: Option C. -> In the Injectable decorator




Question 6. If you chain multiple pipes together, they are executed
  1.    in parallel
  2.    LIFO order
  3.    in the order in which you specify them
  4.    None of above
 Discuss Question
Answer: Option C. -> in the order in which you specify them




Question 7. The number pipe is location sensitive, which means that the same format argument will produce differently formatted results based on the . . . . . . .
  1.    user's format setting
  2.    user's currency setting
  3.    user's locale setting
  4.    All of above
 Discuss Question
Answer: Option C. -> user's locale setting




Question 8. We can subscribe to an observable using the . . . . . . . . The benefit of this is that Angular deals with your subscription during the lifecycle of a component. Angular will automatically subscribe and unsubscribe for you.
  1.    sync pipe
  2.    async var
  3.    async pipe
  4.    syn var
 Discuss Question
Answer: Option C. -> async pipe




Question 9. Which of the following is not built-in pipe in Angular?
  1.    DatePipe
  2.    CurrencyPipe
  3.    DataPipe
  4.    PercentPipe
 Discuss Question
Answer: Option C. -> DataPipe




Question 10. How would you retrieve a list of items from a server's URL?
  1.    Create a URL transaction
  2.    Use the HTTP get method
  3.    Create a get SQL statement
  4.    Use an HTTP package
 Discuss Question
Answer: Option A. -> Create a URL transaction




Latest Videos

Latest Test Papers