Type script

6
Presentation Topic: “Introduction to Typescript” Group Memebers: Muhammad Danish BCSF13M010 Ubaid ur Rehman BCSF13M022 Video Link: https://youtu.be/9SjwRtPzYp8

Transcript of Type script

Page 1: Type script

Presentation Topic:

“Introduction to Typescript”

Group Memebers:

Muhammad Danish BCSF13M010

Ubaid ur Rehman BCSF13M022

Video Link:

https://youtu.be/9SjwRtPzYp8

Page 2: Type script

MCQ’s

Compiler of Typescript is:

1) Tsc 2) Tcs 3) Tc 4) None

Correct: 1

TypeScript is a library which is backed primarily by...

1) Google

2) Microsoft

3) Facebook

4) Twitter

Correct: 2

Which programs can be used to automatically compile

TypeScript?

1) Gulp

2) Grunt

3) Broccoli

4) All of the above

Correct: 1

Page 3: Type script

TypeScript is used primarily with what backend language?

1) Node 2) Ruby 3) Python 4) C

Correct:1

Typescript is a

1) Subset of javascript 2) Clone of javascript 3) Superset of javascript 4) None of the above

Correct: 3

Extension of typescript file is

1) .ts 2) .ls 3) .js 4) .tp

Correct:1

Page 4: Type script

Which packaging managing is used to install typescript?

1) Njs 2) Apt 3) Rpm 4) Npm

Correct:4

To compile .ts file with real time changes ,we use

1- Tsc - - watch file.ts 2- Tsc watch file.ts 3- Not possible 4- None of the above

Correct: 1

Typescript supports the following oop terms

1) modules 2) classes 3) interfaces 4) all of the above

Correct:4

Page 5: Type script

Implement inheritance in typescript using ____ keyword

1) extends 2) expands 3) extend 4) operator (:)

correct:1

Each member of class in typescript is ____ by default

1) public 2) private 3) protected 4) none

correct:1

var n: number=1;

n="asdf";

console.log(n);

what will be the output?

1) asdf 2) 1 3) Error 4) None

Correct:3

Page 6: Type script

References:

https://www.typescriptlang.org/docs/tutorial.html