TypeScript is the backbone of Angular development, offering powerful features like static typing, interfaces, and classes that enhance JavaScript’s capabilities.
The following set of top multiple-choice questions (MCQs) on TypeScript Basics covers fundamental concepts such as data types, classes, interfaces, modules, functions, and more. These MCQs are designed to prepare you for Angular job interviews and technical assessments.
1.) What is TypeScript?
2.) Who developed TypeScript?
3.) What file extension is used for TypeScript files?
4.) How do you compile a TypeScript file?
5.) Which of the following is a key feature of TypeScript?
6.) Which keyword is used to declare a variable in TypeScript?
7.) What is Type Inference in TypeScript?
8.) What is the default access modifier in TypeScript?
9.) What does the enum type do in TypeScript?
10.) How can you ensure a variable can hold values of multiple types in TypeScript?