Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which are the different Data Types supported by Typescript?
  1.    Boolean var bValue: boolean = false
  2.    Number var age: number = 16
  3.    String var name: string = "jon"
  4.    All of the above mentioned
 Discuss Question
Answer: Option D. -> All of the above mentioned




Question 2. What are variables in Typescript?
  1.    A variable name should contain alphabets and numeric digits
  2.    It cannot contain spaces and special characters except underscore (_) and dollar ($) sign
  3.    A variable name cannot begin with a digit
  4.    All
 Discuss Question
Answer: Option D. -> All




Question 3. Which statements are true regarding JSX modes?
  1.    These modes only affect the emit stage - type checking is unaffected
  2.    The output of react mode will have a .jsx file extension
  3.    The react mode will emit React.addElement
  4.    The preserve mode will keep the JSX as part of the output to be further consumed by another transform step
 Discuss Question
Answer: Option D. -> The preserve mode will keep the JSX as part of the output to be further consumed by another transform step




Question 4. What are the variable scopes available in TypeScript?
  1.    Global Scope
  2.    Class Scope
  3.    Local Scope
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Question 5. What are the benefits of Typescript?
  1.    It helps in code structuring
  2.    Use class based object oriented programming
  3.    Impose coding guidelines
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Question 6. Which object oriented terms are supported by Typescript?
  1.    Modules
  2.    Classes
  3.    Interfaces
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 7. When was the first time TypeScript was made public?
  1.    December 2012
  2.    October 2012
  3.    October 2013
  4.    November 2013
 Discuss Question
Answer: Option B. -> October 2012




Question 8. What are the components of TypeScript?
  1.    TypeScript Language
  2.    TypeScript Compiler
  3.    TypeScript Language Service
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 9. What are the types of access modifiers supported by TypeScript?
  1.    Public
  2.    Private
  3.    Protected
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 10. List some features of Typescript?
  1.    Typescript can be compiled to all major versions of Javascript(ES3,ES5,ES6,ES7)
  2.    Typescript can be used for cross "“browser development and is an open source project
  3.    Typescript is a superset of JavaScript that provides typed nature to your code
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Latest Videos

Latest Test Papers