TypeScript Quiz Questions and Answers

Which of the following is valid typescript statement?

Answer :
  • var a : string= ”Hello”;

TypeScript supports Object Oriented Programming concepts like classes, interfaces, inheritance ?

Answer :
  • TRUE

The Type System checks the validity of the supplied values, before they are stored or manipulated by the program.?

Answer :
  • TRUE

What are the built-in types in TypeScript ?

Answer :
  • All of the above

Number datatype can be used to represent both, integers and fractions.

Answer :
  • TRUE

The any data type is the super type of all types in TypeScript.?

Answer :
  • TRUE

Using the any type is equivalent to opting out of type checking for a variable.?

Answer :
  • TRUE

A variable initialized with undefined means that the variable has no value or object assigned to it ?

Answer :
  • TRUE

Null means that the variable has been set to an object whose value is undefined?

Answer :
  • TRUE

Select the datatype for classes, interfaces, arrays, and tuples?

Answer :
  • User-defined