Total Questions : 10
Expected Time : 10 Minutes

1. Which TypeScript feature is used for ensuring code blocks are never reached?

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

3. What is TypeScript's 'async/await' feature used for?

4. What is the purpose of namespaces in TypeScript?

5. Which of the following is a valid way to define a string variable in TypeScript?

6. What does the 'as' keyword do in TypeScript?

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

8. In TypeScript, what is the purpose of the 'as' keyword?

9. In TypeScript, what is the difference between 'interface' and 'type' when defining a new type?

10. What is TypeScript's 'type inference'?