Total Questions : 20
Expected Time : 20 Minutes

1. What is the purpose of TypeScript's 'null' and 'undefined' types?

2. What is the TypeScript equivalent of 'console.log()' in JavaScript?

3. What is the use of the 'declare' keyword in TypeScript?

4. What is the TypeScript equivalent of 'undefined' in JavaScript?

5. What is the purpose of TypeScript's 'readonly' modifier?

6. What is a discriminated union in TypeScript?

7. What is the purpose of the 'extends' keyword in TypeScript?

8. What is the purpose of the 'interface' keyword in TypeScript?

9. Which TypeScript feature is used to create a new type that is composed of existing types?

10. Which TypeScript feature is used to apply metadata to classes, methods, or properties?

11. What TypeScript feature allows for specifying an exact set of string values for a type?

12. In TypeScript, what is the purpose of the 'namespace' keyword?

13. What is the purpose of TypeScript's 'as' keyword?

14. How do you define a function in TypeScript?

15. In TypeScript, what is the 'any' type used for?

16. What is TypeScript's 'module' system used for?

17. Which of the following allows TypeScript to infer the return type of a function?

18. What is the purpose of TypeScript's 'class' keyword?

19. What is TypeScript's 'namespace' used for?

20. What is the TypeScript feature used to combine multiple types into a single type?