Search Header Logo

typescript

Authored by Can (Kishi)

Computers

Professional Development

Used 9+ times

typescript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?