
Mastering TypeScript for JavaScript Users
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Tomas Martinez
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct file extension for a TypeScript file?
.js
.ts
.jsx
.tsx
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used in TypeScript to explicitly declare a variable's type?
typeof
type
as
:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid TypeScript type?
string
number
boolean
digit
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default type assigned to a variable in TypeScript if no type is specified and no value is assigned?
string
any
undefined
object
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which TypeScript feature allows you to specify that a function parameter is optional?
Using the "?" after the parameter name
Using the "optional" keyword
Using the "maybe" keyword
Using the "!" after the parameter name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the following TypeScript code, what is the type of the variable `result`? ```typescript let result: number | string; ```
number only
string only
number or string
any
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes the purpose of TypeScript interfaces?
To define the structure of objects
To perform mathematical operations
To create new data types at runtime
To handle asynchronous code
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
15 questions
HTML Quiz
Quiz
•
11th Grade - University
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
20 questions
Quiz Visual Studio
Quiz
•
12th Grade
20 questions
Database&Relation
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
