InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the form associated with expression? |
|
Answer» What is the form associated with expression? |
|
| 2. |
Annotations can be implemented as __________. |
|
Answer» Annotations can be implemented as __________. |
|
| 3. |
The following are ways to declare a variable in TypeScript, except ________. |
|
Answer» The following are ways to declare a VARIABLE in TypeScript, EXCEPT ________. |
|
| 4. |
A type system is a set of ________. |
|
Answer» A TYPE system is a set of ________. |
|
| 5. |
Type Annotations allow us to _______. |
|
Answer» Type Annotations allow us to _______. |
|
| 6. |
Which of the following code snippets is safer? |
|
Answer» Which of the following code SNIPPETS is safer? |
|
| 7. |
Enum organizes a _______. |
|
Answer» ENUM organizes a _______. Choose the correct option from below LIST (1)Set of RELATED VALUES (2)Set of un-related values Answer:-(1)Set of related values |
|
| 8. |
How can we access a class from a module from outside? |
|
Answer» How can we access a class from a module from outside? |
|
| 9. |
The following types are supported by TypeScript, except ______. |
|
Answer» The FOLLOWING types are SUPPORTED by TypeScript, EXCEPT ______. |
|
| 10. |
A JavaScript file cannot be renamed to a TypeScript file. |
|
Answer» A JavaScript file cannot be renamed to a TypeScript file. |
|
| 11. |
What type of checking does Java programming language use? |
|
Answer» What type of checking does Java programming LANGUAGE USE? |
|
| 12. |
Which of the following demonstrates function overloading, if possible, in TypeScript? |
|
Answer» Which of the FOLLOWING demonstrates function overloading, if possible, in TypeScript? |
|
| 13. |
TypeScript provides access to private members through ___________. |
|
Answer» TypeScript provides access to private members through ___________. |
|
| 14. |
TypeScript is a __________. |
|
Answer» TYPESCRIPT is a __________. Choose the correct OPTION from below list (1)New version of JavaScript (2)Compiler (3)Dynamically type-checked language (4)Super-set of JavaScript Answer:-(4)Super-set of JavaScript |
|
| 15. |
Code to read JSON object in typescript? |
|
Answer» CODE to READ JSON object in typescript? We USE let keyword of typescript to handle the JSON VALUE and then parse them. Below is the syntax to handle the JSON value:-
|
|
| 16. |
TypeScript is __________. |
|
Answer» TYPESCRIPT is __________. CHOOSE the correct option from below LIST (1)Procedural (2)Object Oriented (3)Symbolic (4)Functional Answer:-(2)Object Oriented |
|
| 17. |
How can we access a class of module from outside? |
|
Answer» How can we access a class of module from outside? |
|
| 18. |
Type System is a _____________. |
|
Answer» Type SYSTEM is a _____________. |
|
| 19. |
Dynamic type checking is done at __________. |
|
Answer» Dynamic type checking is DONE at __________. |
|
| 20. |
_________ in the command line enables experimental support for decorators. |
|
Answer» _________ in the command LINE ENABLES EXPERIMENTAL support for decorators. |
|
| 21. |
During compilation, TypeScript code gets converted to assembly language. |
|
Answer» During COMPILATION, TYPESCRIPT code gets converted to assembly language. |
|
| 22. |
Which of the following is the right way of defining enum? |
|
Answer» Which of the following is the RIGHT way of defining enum? |
|
| 23. |
What is true about Mixins in TypeScript? |
|
Answer» What is true about Mixins in TypeScript? |
|
| 24. |
The optional parameter can be defined by using "?". |
|
Answer» The optional parameter can be DEFINED by using. |
|
| 25. |
We can rename a .js file to .ts file generally. |
|
Answer» We can rename a .JS file to .ts file generally. |
|
| 26. |
Accessing a class of a module from outside is impossible in TypeScript. |
|
Answer» ACCESSING a class of a module from outside is IMPOSSIBLE in TypeScript. Choose the correct option from below list (1)TRUE (2)FALSE Answer:-(2)False |
|
| 27. |
TypeScript is a open secure programming language. |
|
Answer» TypeScript is a OPEN secure programming language. |
|
| 28. |
The value of TypeScript is writing _________. |
|
Answer» The value of TypeScript is writing _________. |
|
| 29. |
Below are the two main ways to install Typescript |
|
Answer» Below are the two main ways to install Typescript |
|
| 30. |
We can rename a .js file to .ts file generally |
|
Answer» We can rename a .js file to .ts file generally |
|
| 31. |
Ten most common difference between Javascript and Typescript |
|
Answer» Ten most common difference between Javascript and Typescript |
|
| 32. |
Define what is TypeScript Map file? |
|
Answer» DEFINE what is TypeScript Map file? TypeScript Map files are source map files that let tools map between the emitted JavaScript code and the TypeScript source files that created it. And this files will helps to debug the Typescript file instead of the Javascript file. And this Typescript map file is consumed by MANY debuggers to debug the Typescript. A source map file maps from the transpiled JavaScript file to the original TypeScript file. Below are the some keypoints of TypeScript Map file:- (1)Here reference to the JavaScript file is defined in a file FIELD. (2)As from above point we knows the reference to TypeScript file is in a sources field. And it is placed in the PROJECT structure. (3)In TypeScript file sourceRoot field is the root path of the TypeScript files. (4)Here version field help us to get the version of the source map spec which is being used. (5)The names field is a list of identifiers used in the source code that were changed or removed from the OUTPUT. (6)There is mapping field have have mapping information for every position in the javascript code back to positions in the TypeScript code. These are base64 encoded variable-length quantities. |
|
| 33. |
TypeScript was made public by __________. |
|
Answer» TypeScript was made public by __________. |
|
| 34. |
Typescript compiler tsc converts code to _________. |
|
Answer» Typescript COMPILER tsc converts code to _________. |
|
| 35. |
Which keyword is used for Inheritance in TypeScript? |
|
Answer» Which KEYWORD is used for Inheritance in TypeScript? |
|
| 36. |
What does " function f(l: number, w: number){} " demonstrate? |
|
Answer» What does " function F(l: number, w: number){} " demonstrate? |
|
| 37. |
The code snippet " if (value && typeof value == "string") {}; is used for ______________. |
|
Answer» The code snippet " if (VALUE && typeof value == "string") {}; is used for ______________. |
|