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
What is the typing principle of typescript?
Gradual
Duck
Dynamic
All of the above
Next >
2/25
All are backported features of TypeScript, except….
Arrows
Classes
Modules
Methods
Next >
3/25
A typescript may be installed or managed through…
Tag
Nmp
Space
Void
Next >
4/25
What object oriented terms does Typescript support?
Interfaces
Classes
Modules
All of the above
Next >
5/25
What does Typescript use for anonymous functions?
"dot" syntax
"arrow" syntax
none of the above
Next >
6/25
Can alert() be used in TypeScript?
Yes
No
Next >
7/25
Which TypeScript feature allows for specifying types that cannot be extended or instantiated?
Abstract Classes
Interfaces
Type Aliases
Enumerations
Next >
8/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 >
9/25
In TypeScript, which access modifier makes members accessible only within their declaring class?
Private
Public
Protected
Internal
Next >
10/25
What TypeScript feature enables conditional type checks?
Generics
Type inference
Conditional types
Enumerated types
Next >
11/25
What TypeScript feature is used for defining a variable that can have one of a set of named constants?
Enum
Union type
Interface
Tuple
Next >
12/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 >
13/25
Which TypeScript feature allows for specifying an exact set of string values a variable can hold?
Generics
Enums
String Literal Types
Interfaces
Next >
14/25
In TypeScript, which keyword is used to declare a constant variable?
let
var
const
static
Next >
15/25
What TypeScript utility type makes all properties of an object optional?
Partial
Readonly
Record
Required
Next >
16/25
What TypeScript feature allows for defining a contract for a class to implement?
Interfaces
Types
Classes
Decorators
Next >
17/25
Which command is used to compile a TypeScript file?
ts-compile
typescript
tsc
ts-run
Next >
18/25
In TypeScript, how do you annotate a variable of a custom type?
Using the 'type' keyword
By specifying the type after the variable name
Using the 'var' keyword
Type annotation is not supported
Next >
19/25
In TypeScript, which is used to define a variable that can hold any type but only one type once set?
any
var
let
generic
Next >
20/25
In TypeScript, which of the following is a correct way to define an enum?
enum Direction { Up, Down, Left, Right }
enum Direction = { Up, Down, Left, Right }
Direction = ['Up', 'Down', 'Left', 'Right']
enum Direction ( Up, Down, Left, Right )
Next >
21/25
Which method is used to convert a TypeScript file to JavaScript?
ts-compile
tsc
ts-convert
typescript-compile
Next >
22/25
Which is not a valid TypeScript data type?
undefined
number
bigint
byte
Next >
23/25
In TypeScript, which operator is used for type assertions?
as
typeof
instanceof
<>
Next >
24/25
Which TypeScript feature allows you to work with variables of unknown types in a safe way?
Any type
Unknown type
Void type
Never type
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.