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
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 following companies has developed and designed TypeScript?
Amazon
TypeScript
Microsoft
Oracle
Next >
2/25
What is the typing principle of typescript?
Gradual
Duck
Dynamic
All of the above
Next >
3/25
All are backported features of TypeScript, except….
Arrows
Classes
Modules
Methods
Next >
4/25
Which of the statements below is true about the variables in Typescript?
A variable name should include both alphabets and numeric digits.
A variable name cannot start with a digit.
It cannot include spaces and special characters except for dollar ($) sign and underscore (_).
All of the above.
Next >
5/25
Which of the following is a Typescript feature?
Typescript can be compiled to all major versions of Javascript(ES3,ES5,ES6,ES7).
Once can use Typescript for cross -browser development. It is an open source project.
Typescript is considered a superset of JavaScript, providing typed nature to the code.
All of the above.
Next >
6/25
In TypeScript, which method decorator can be used to bind 'this' to the class instance?
.bind()
.apply()
.call()
.link()
Next >
7/25
How does TypeScript handle null and undefined by default in strict mode?
They are considered the same as empty string
They are ignored
They are treated as separate types
They cause a compilation error
Next >
8/25
What is the TypeScript utility type used for creating a type with all properties of an existing type set to optional?
Partial<T>
Required<T>
Readonly<T>
Pick<T>
Next >
9/25
How can TypeScript enhance code maintainability compared to JavaScript?
By enabling stronger typing
By executing faster
By reducing the number of lines of code
By incorporating more libraries
Next >
10/25
Which TypeScript feature is primarily used for extending classes and interfaces?
Generics
Inheritance
Modules
Namespaces
Next >
11/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 >
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
TypeScript is a superset of which language?
JavaScript
Java
Python
C++
Next >
14/25
Which is not a valid way to declare a variable in TypeScript?
let
const
var
def
Next >
15/25
In TypeScript, which operator is used for type assertion?
:
as
=
->
Next >
16/25
What TypeScript feature allows for defining a contract for a class to implement?
Interfaces
Types
Classes
Decorators
Next >
17/25
In TypeScript, what is a Tuple?
A type of function
An array with fixed number of elements
A JSON object
A method for type casting
Next >
18/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 >
19/25
Which TypeScript utility type constructs a type by picking the set of properties from another type?
Partial
Omit
Pick
Record
Exclude
Next >
20/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 >
21/25
What TypeScript feature allows for custom type checks at compile time?
Type Guards
Interfaces
Decorators
Mixins
Next >
22/25
Which is not a valid TypeScript data type?
undefined
number
bigint
byte
Next >
23/25
In TypeScript, which access modifier makes a member visible only within its containing class?
Public
Private
Protected
Static
Next >
24/25
In TypeScript, what is the purpose of the 'keyof' keyword?
To create an enum
To specify a generic constraint
To define a method
To declare a variable
Next >
25/25
What TypeScript feature allows you to conditionally select a type?
Union types
Conditional types
Intersection types
Mapped types
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.