Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
JTW Decoder
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
TypeScript Basics
1/25
Which of the computer programming languages below has influenced the creation of typescript?
JavaScript
Java
C#
All of the above
Next >
2/25
What variable scopes are available in TypeScript?
Global Scope
Local Scope
Class Scope
All of the above
Next >
3/25
Which statements below are true about JSX modes?
The preserve mode keeps the JSX as part of the output to be further consumed by another transform step.
The react mode will emit React.addElement.
The preserve, react, and react native modes don’t affect the emit stage - type checking is affected.
The output of react mode has a .jsx file extension.
Next >
4/25
What does Typescript use for anonymous functions?
"dot" syntax
"arrow" syntax
none of the above
Next >
5/25
By which type below are integers represented?
Int32
Int
Int64
Number
Next >
6/25
How can you declare a read-only property in a TypeScript class?
Using the 'readonly' keyword
Using the 'const' keyword
Using the 'static' keyword
Using the 'final' keyword
Next >
7/25
Which TypeScript feature allows for better type inference by analyzing the flow of values in the code?
Control Flow Analysis
Type Guards
Decorators
Mapped Types
Next >
8/25
What is the result of compiling a TypeScript file with no type errors?
JavaScript file with the same functionality
TypeScript file with enhanced performance
An executable binary file
No output, as TypeScript is only for type checking
Next >
9/25
In TypeScript, what does the 'never' type represent?
A type that never returns a value
An unknown type
A type that always returns a value
A void type
Next >
10/25
What is the primary use case for TypeScript decorators?
To add new syntax to the language
To provide metadata programming
For optimizing memory usage
To enable asynchronous programming
Next >
11/25
Which TypeScript feature allows for specifying an exact set of string values a variable can hold?
Generics
Enums
String Literal Types
Interfaces
Next >
12/25
TypeScript is a superset of which language?
JavaScript
Java
Python
C++
Next >
13/25
In TypeScript, which operator is used for type assertion?
:
as
=
->
Next >
14/25
What TypeScript feature allows for defining a contract for a class to implement?
Interfaces
Types
Classes
Decorators
Next >
15/25
Which command is used to compile a TypeScript file?
ts-compile
typescript
tsc
ts-run
Next >
16/25
What is the key advantage of using TypeScript over JavaScript?
Faster runtime execution
Type safety and easier debugging
Support for older browsers
Smaller file size
Next >
17/25
What TypeScript feature allows for specifying an array of multiple data types?
Union Types
Generics
Enum
Any
Tuple
Next >
18/25
Which operator is used for type assertions in TypeScript?
as
is
typeof
instanceof
Next >
19/25
Which method is used to convert a TypeScript file to JavaScript?
ts-compile
tsc
ts-convert
typescript-compile
Next >
20/25
What TypeScript feature allows for custom type checks at compile time?
Type Guards
Interfaces
Decorators
Mixins
Next >
21/25
What TypeScript feature allows for specifying an array where order and type of elements are fixed?
Enums
Tuples
Generics
Interfaces
Next >
22/25
What is the TypeScript utility type used for constructing a type with a set of properties from another type?
Partial
Readonly
Record
Pick
Next >
23/25
In TypeScript, which operator is used for type assertions?
as
typeof
instanceof
<>
Next >
24/25
How do you declare a readonly array in TypeScript?
const[]
readonly[]
immutable[]
fixed[]
Next >
25/25
Which TypeScript feature is used to describe the shape of an object?
Type alias
Interface
Class
Function
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.