Typescript class 02

Typescript class 02

University

26 Qs

quiz-placeholder

Similar activities

INF 08 1

INF 08 1

University

21 Qs

QUIZ PRA UAS_RPL_PERTEMUAN 15

QUIZ PRA UAS_RPL_PERTEMUAN 15

University

25 Qs

Technical Quiz - INSIGHT 2K23

Technical Quiz - INSIGHT 2K23

University

23 Qs

ÔN TẬP CUỐI HKII

ÔN TẬP CUỐI HKII

4th Grade - University

23 Qs

PRA PSPM SC025 ( F01 KML )

PRA PSPM SC025 ( F01 KML )

University

24 Qs

Java Review

Java Review

9th Grade - University

25 Qs

Quiz on Air Pool 1 SH

Quiz on Air Pool 1 SH

University

21 Qs

COSC101 PART 2

COSC101 PART 2

University

21 Qs

Typescript class 02

Typescript class 02

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Wania Kazmi

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does TypeScript add to JavaScript that makes it more robust?

Strongly-typed variables

Dynamic typing

Automatic memory management

Built-in debugging tools

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of TypeScript's "Type Declaration"?

To define the types of data a variable can hold

To declare a new variable

To perform type casting

To add comments to the code

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Typescript is

interpreted language

compiled language

Answer explanation

The compiler takes TypeScript code, removes the type information, and generates JavaScript code

The target of this compilation is itself a "source language" makes this a special case of compilation.

This is often called 'transpilation' because it is translating from one source language to another and transpilation is a form of compilation.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does TypeScript add to JavaScript to help catch errors at compile time?

Static typing

Dynamic typing

Runtime checks

Enhanced performance

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

In TypeScript, which keyword is used to declare a variable?

let

const

var

type

variable

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to indicate the type of a variable in TypeScript?

typeOf

isType

:

#

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What tool can you use to transpile TypeScript code into JavaScript code?

TypeScript Compiler (tsc)

JavaScript Transformer (jst)

TypeScript Formatter (tsf)

JavaScript Linter (eslint)

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?

Discover more resources for Computers