TypeScript Test

Question 1: TypeScript is an ____________ framework.

Question 2: TypeScript is a typed superset of __________.

Question 3: TypeScript file compiled into ________.

Question 4: TypeScript can be used to write server side and client side application.

Question 5: _______ command is used to generate a JavaScript file from a TypeScript file.

Question 6: Which of the following statement declares a variable in TypeScript?

Question 7: Which of the followings are primitive types supported in TypeScript?

Question 8: Which of the following is a valid union type variable?

Question 9: Which of the following is a valid tuple?

Question 10: Type assertion in TypeScript is achieved using which of the following syntax?

Question 11: What will be the output of the following code snippet?

let arr = [10, 20, 30, 40];

for(var val of arr) {
    console.log(val);
}

Question 12: Which of the following is a valid arrow function?

Question 13: The rest parameters in a function is used when _______.

Question 14: Which of the following statement is TRUE?

Question 15: Which of the following are valid data modifiers in TypeScript?

Question 16: Which of the following keyword is used to declare a module?

Question 17: Which of the followings is declared a namespace?

Question 18: Which of the following command is used to compile a module?

Question 19: Which configuration file is required to compile the whole TypeScript project?

Question 20: Which of the following statement is TRUE?