W3 Docs Typescript Basic Course Free Certification | Typescript Basic Quiz Answers 2022

Quiz TypeScript Basic

Start Quiz

Test your knowledge with W3docs’ basic quiz made especially for beginners in TypeScript. Pass the test and get a Certificate of achievement!

The Test

The test contains 20 questions and there is no time limit. The test is not official, it’s just a nice way to see how much you know about TypeScript.

Count Your Score

You will get 5% for each correct answer. At the end of the Quiz, your total score will be displayed out of 100% maximum score.

Apply Link

Enrich your knowledge

At the end of the quiz you can see all the questions with the right answers. There will also be notes about the answers which will lead you to the appropriate page on the platform to enrich your knowledge. Read our HTML tutorial if you are not sure that you are ready for the quiz.

Quiz Answers

Which of the following companies has developed and designed TypeScript?

Amazon

TypeScript

Microsoft

Oracle

Ans. Microsoft

What is the typing principle of typescript?

Gradual

Duck

Dynamic

All of the above

Ans. All of the above

Which of the following filenames is the extension for typescript?

.tt

.nod

.ts

.txt

Ans.
.ts

Which of the computer programming languages below has influenced the creation of typescript?

JavaScript

Java

C#

All of the above

Ans. All of the above

All are backported features of TypeScript, except….

Arrows

Classes

Modules

Methods

Ans. Methods

The advantages of Typescript are…

It assists in code structuring.

It applies class -based object oriented programming.

It introduces coding guidelines.

All of the above.

Ans. All of the above

What variable scopes are available in TypeScript?

Global Scope

Local Scope

Class Scope

Ans. All of the above

Which of the options below power the interactive TypeScript experience in Visual Studio, Vs Code, Sublime, the TypeScript playground and other editor.

TypeScript main

TypeScript language

TypeScript compiler

TypeScript method

Ans. TypeScript language

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.

Ans. All of the Above

A typescript may be installed or managed through…

Tag

Nmp

Space

Void

Ans. Nmp

The different Data Types supported by Typescript are…

Boolean let bValue: boolean = false;

String let name: string = “Jack”;

Number let age: number = 16;

All of the above

Ans. All of the above

Which statements below are true about JSX modes?

The preserve mode keeps the JSX as part of the output to be further consumed by another transform step.

The react mode will emit React.addElement.

The preserve, react, and react native modes don’t affect the emit stage – type checking is affected.

The output of react mode has a .jsx file extension.

Ans. The preserve mode keeps the JSX as part of the output to be further consumed by another transform step.

What object oriented terms does Typescript support?

Interfaces

Classes

Modules

All of the above

Ans. All of the Above

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.

Ans. All of the Above

….. are the way of organizing a code in TypeScript.

Methods

Modules

Arrows

Classes

Ans. Modules

The TypeScript components are….

TypeScript Compiler

TypeScript Language Service

TypeScript Language

All of the above

Ans. All of the Above

What does Typescript use for anonymous functions?

“dot” syntax

“arrow” syntax

none of the above

Ans. “arrow” syntax

By which type below are integers represented?

Int32

Int

Int64

Number

Ans. Number

What will be output of the following expression?

let a:string=47;
console.log( ” Value of a= ” +a);

Value of a=47

Value of a=0

Value of a=

None of the above

Ans. Value of a=47

Can alert() be used in TypeScript?

Yes

No

Ans. Yes

error: Content is protected !!
Scroll to Top