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
EN
DE
RU
FR
ES
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
The advantages of Typescript are...
It assists in code structuring.
It applies class -based object oriented programming.
It introduces coding guidelines.
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 object oriented terms does Typescript support?
Interfaces
Classes
Modules
All of the above
Next >
5/25
..... are the way of organizing a code in TypeScript.
Methods
Modules
Arrows
Classes
Next >
6/25
What does Typescript use for anonymous functions?
"dot" syntax
"arrow" syntax
none of the above
Next >
7/25
By which type below are integers represented?
Int32
Int
Int64
Number
Next >
8/25
Can alert() be used in TypeScript?
Yes
No
Next >
9/25
Which TypeScript feature allows for specifying types that cannot be extended or instantiated?
Abstract Classes
Interfaces
Type Aliases
Enumerations
Next >
10/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 >
11/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 >
12/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 >
13/25
What TypeScript feature enables conditional type checks?
Generics
Type inference
Conditional types
Enumerated types
Next >
14/25
How does TypeScript enhance debugging in comparison to plain JavaScript?
By providing more detailed error messages during compile time
By eliminating the need for debugging
By automatically correcting syntax errors
By increasing runtime performance
Next >
15/25
What is the purpose of the 'readonly' keyword in TypeScript?
To make a variable immutable
To make a variable mutable
To declare a constant value
To declare a variable with global scope
Next >
16/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 >
17/25
Which TypeScript feature allows for specifying an exact set of string values a variable can hold?
Generics
Enums
String Literal Types
Interfaces
Next >
18/25
TypeScript is a superset of which language?
JavaScript
Java
Python
C++
Next >
19/25
How do you access a private class member in TypeScript?
Using the 'private' keyword
Through public methods of the class
By directly accessing it outside the class
Private members cannot be accessed
Next >
20/25
In TypeScript, which operator is used for type assertion?
:
as
=
->
Next >
21/25
How can you declare a variable in TypeScript whose value can never be changed?
By using the 'final' keyword
By using the 'immutable' keyword
By using the 'const' keyword
By using the 'readonly' keyword
Next >
22/25
What TypeScript feature allows for specifying an array of multiple data types?
Union Types
Generics
Enum
Any
Tuple
Next >
23/25
What is the purpose of the 'never' type in TypeScript?
To represent any type of value
To represent values that never occur
To declare a variable without a type
To define optional parameters
Next >
24/25
In TypeScript, which access modifier makes a member visible only within its containing class?
Public
Private
Protected
Static
Next >
25/25
How do you declare a readonly array in TypeScript?
const[]
readonly[]
immutable[]
fixed[]
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.