typescript

typescript

Professional Development

7 Qs

quiz-placeholder

Similar activities

Section D - 1 - How Data is Organised - Data Structures 1

Section D - 1 - How Data is Organised - Data Structures 1

Professional Development

6 Qs

Basic Programming Kotlin

Basic Programming Kotlin

Professional Development

10 Qs

JavaScritp.getElementByID

JavaScritp.getElementByID

Professional Development

9 Qs

PHP Tours Meetup #25 PHP 8.1

PHP Tours Meetup #25 PHP 8.1

University - Professional Development

7 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

JavaScript Fundamentals

JavaScript Fundamentals

9th Grade - Professional Development

10 Qs

Javascript 05 Aug 22

Javascript 05 Aug 22

Professional Development

12 Qs

Treinamento JS - Capítulo 2

Treinamento JS - Capítulo 2

Professional Development

10 Qs

typescript

typescript

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Can (Kishi)

Used 9+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statements about TypeScript is true?

TypeScript is a superset of JavaScript.

TypeScript is a programming language developed by Microsoft.

TypeScript code is directly executed by the browser.

TypeScript is only used for front-end development.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which TypeScript feature allows you to define a new type based on an existing type?

Classes

Generics

Interfaces

Enums

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to indicate that a parameter in a TypeScript function is optional?

optional

required

maybe

?

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which operator is used for type assertion in TypeScript?

like

type

as

<>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the "strictNullChecks" compiler flag in TypeScript?

It enables strict type checking for null and undefined values.

It allows null and undefined to be used interchangeably.

It is not a valid compiler flag in TypeScript.

It disables type checking for null and undefined values.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which TypeScript feature allows you to specify multiple types for a variable?

Optional Types

Union Types

Intersection Types

Tuple Types

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "readonly" modifier do in TypeScript?

It allows a property to be modified only within the same class.

It restricts a variable to read-only access within a specific scope.

Readonly is not a valid modifier in TypeScript.

It makes a property or variable immutable.