1.
Who developed and designed TypeScript?
Correct Answer
A. Microsoft
Explanation
Microsoft is the correct answer because TypeScript was developed and designed by Microsoft. TypeScript is a programming language that is a superset of JavaScript and adds optional static typing to the language. It was first released by Microsoft in 2012 and has since gained popularity among developers for its ability to improve the development experience and provide better tooling support.
2.
When was the first time TypeScript was made public?
Correct Answer
B. October 2012
Explanation
TypeScript was first made public in October 2012.
3.
Which of the following is the typing principle of typescript?
Correct Answer
D. All of the above
Explanation
The correct answer is "All of the above". This means that all three typing principles - Gradual, Dynamic, and Duck - are applicable in TypeScript. Gradual typing allows for both static and dynamic typing within the same codebase. Dynamic typing allows for variables to be assigned different data types at runtime. Duck typing allows for objects to be considered of the same type if they have the same set of properties. Therefore, TypeScript incorporates all these principles to provide a flexible and powerful typing system.
4.
Which of the following is a filename extension for typescript?
Correct Answer
A. .tsx
Explanation
The correct answer is .tsx. This is a filename extension commonly used for TypeScript files. TypeScript is a programming language that is a superset of JavaScript, and the .tsx extension is specifically used for files that contain TypeScript code along with JSX syntax, which is commonly used in React applications.
5.
Among which of the following computer programming language influenced the creation of typescript?
Correct Answer
D. All of the above
Explanation
All of the above computer programming languages influenced the creation of TypeScript. TypeScript is a superset of JavaScript, so it is directly influenced by JavaScript. It also draws inspiration from Java and C#, incorporating features from both languages. The goal of TypeScript is to provide a more structured and typed approach to JavaScript development, making it easier to build large-scale applications. Therefore, all three languages have played a significant role in shaping the design and functionality of TypeScript.
6.
The following are backported features of typescript, except?
Correct Answer
B. Methods
Explanation
The given question asks for backported features of TypeScript, except for one option. The correct answer is "Methods." This means that all the other options (Classes, Modules, and Arrow) are backported features of TypeScript. A backported feature refers to a feature that is implemented in a newer version of a software or language but is made available in an older version. Therefore, in this case, methods are not a backported feature of TypeScript.
7.
The ...... Service powers the interactive TypeScript experience in Visual Studio, Vs Code, Sublime, the TypeScript playground and other editor.
Correct Answer
A. Typescript language
Explanation
The TypeScript language powers the interactive TypeScript experience in various editors such as Visual Studio, Vs Code, Sublime, and the TypeScript playground. It provides the necessary tools and features for developers to write and edit TypeScript code efficiently. The language itself includes syntax, data types, and other language constructs that make it possible to write and execute TypeScript code in these editors.
8.
A typescript can be installed or managed through?
Correct Answer
C. Nmp
Explanation
Nmp is not a valid package manager or tool for installing or managing TypeScript. The correct package manager for TypeScript is npm (Node Package Manager). npm is a popular package manager for JavaScript and it can be used to install and manage TypeScript packages and dependencies.
9.
Which Object Oriented Terms are Supported by Typescript?
Correct Answer
D. All of the above
Explanation
TypeScript supports all of the mentioned Object Oriented terms - Modulus, Interface, and Classes. Modulus is a mathematical operation and not directly related to Object Oriented programming. However, TypeScript supports Interfaces and Classes, which are essential components of Object Oriented programming. Therefore, the correct answer is "All of the above".
10.
..... are the way to organise code in typescript.
Correct Answer
A. Modules
Explanation
Modules are the way to organize code in TypeScript. They allow developers to split their code into separate files or modules, making it easier to manage and maintain. Modules help in encapsulating related functionality, promoting reusability, and providing better organization and structure to the codebase. By using modules, developers can import and export functions, classes, variables, and other entities, allowing them to create modular and maintainable applications.