You are on page 1of 2

1.

TypeScript is alibrary which is backed primarily by


A. Google
B. Microsoft
C. Facebook
2. TypeScript is used primarily with what backend language?
A. .Net
B. Java
C. Node
3. TypeScript compiles down to
A. C++
B. Java
C. JavaScipt
4. For inheritance TypeScript support
A. Implements
B. :
C. Extends
5. Which one is incorrect method to declare a variable
A. let x=999;
B. var x:string =string;
C. let anyvar:any=[1,true,name];
6. Which one is correct method to declare a variable
A. var number x=999;
B. var x:number=999;
C. var number:x=999;
7. TypeScript file has the extension
A. .js
B. .ts
C. .html
8. Command for tranpiling a .ts file is
A. tsc filename
B. tsd filename
C. tsv filename
9.

Command for running transpiler in watch mode is


A. tsc filename v
B. tsc filename w
C. tsc filename m
10.For calling the constructor of parent keyword used
A. SuperClass()
B. Base()
C. Super()
11.It is possible to combine multiple ts files in one js file

A. True
B. False
12.TypeScript supports all object oriented principles
A. True
B. False
13.A transpiler converts from one language to another language
A. True
B. False
14.TypeScript is optionally dynamicaly typed language
A. True
B. False
15.In TypeScript default access to class members is private
A. True
B. False
16.TypeScript does not provide module support
A. True
B. False

Answers:
1. B
2. C
3. C
4. C
5. A
6. B
7. B
8. A
9. B
10.C
11.A
12.A
13.A
14.B
15.B
16.B

You might also like