TypeScript Quiz Questions and Answers

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 :
  • A) number
    B) string
    C) boolean
    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

A variable a named space in the memory” that stores values. ?

Answer :
  • TRUE

Variable name cannot contain spaces and special characters, except the underscore (_) and the dollar ($) sign.?

Answer :
  • TRUE