TypeScript
Generics is a/an _______. function template object class
template
Static Type Checking Examples
C, C++, JAVA, C#, Fortran, Pascal, Scala etc.
Dynamic type Checking Examples
JavaScript, Python, VBScript etc.
Which of the following is the right way of defining enum? enum Enum {} const enum DNA {} declare enum Enum {} all the above
all
static type checking is done at
compile time
Generics allows accepting arguments of _________. only one type different types none of the options
different types
any is a generic type.
false
TypeScript is __________. procedural symbolic functional object oriented
functional ?
Annotations can be implemented as __________. length=12 var lengthC='1' length: number static length=12
length: number
Typescript compiler tsc converts code to _________.
machine language
A type system is a set of ________. data rules variables predefined functions
rules
Dynamic Type Checking is done at
run time [compiler automatically detects the type of the variable, so therefore, we do not need to declare it]
The value of TypeScript is writing _________. less code safer code
safer code
the above quiz received a score of :
score 3/4
TypeScript is a __________. compiler super-set of javascript dynamically type-checked language new version of javascript
super-set of js
We can rename a .js file to .ts file generally (t/f)
true