Quiz: TypeScript. Basic Types and Variable Declarations.

Beschreibung

Information Technology Quiz am Quiz: TypeScript. Basic Types and Variable Declarations., erstellt von Levon Badalian am 25/04/2017.
Levon Badalian
Quiz von Levon Badalian, aktualisiert more than 1 year ago
Levon Badalian
Erstellt von Levon Badalian vor mehr als 7 Jahre
15
0

Zusammenfassung der Ressource

Frage 1

Frage
Please select correct basic types that are available in TypeScript:
Antworten
  • number, null, binary, string, boolean
  • string, boolean, enum, null, never
  • boolean, char, string, number
  • boolean, number, int, enum, void

Frage 2

Frage
Please select correct TypeScript variable declarations. Choose all that apply.
Antworten
  • x = "My String";
  • let z = "My String";
  • let a: string = "My String";
  • let myAge: int = 25;
  • let c as string = "My String";
  • let b = ("My String" as string);

Frage 3

Frage
let variable declaration is accessible anywhere within their containing function, module, namespace, or global scope.
Antworten
  • True
  • False

Frage 4

Frage
Please use drag and drop to make sure that variable sentence contains the following string: "Hello, my name is Joe Bloggs. I'm 44 years old." let myName = "Joe Bloggs"; let myAge: number = 44; let sentence: string = `Hello, my name is [blank_start]${myName}[blank_end]. I'm [blank_start]${myAge}[blank_end] years old.`;
Antworten
  • {myName}
  • {$myName}
  • ${myName}
  • $myName
  • $myAge.toString()
  • ${myAge}
  • {$myAge.toString()}
  • {$myAge}

Frage 5

Frage
The following code will output in the console: enum make { Audi = 100, BMW = 200, Citroen=300, Ford, Holden, Hyundai, Jaguar, Kia, Lada } let myCarMake: make = make.Ford; console.info(myCarMake.toString());
Antworten
  • Ford
  • 400
  • 301
  • syntax error
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

CCNA Security 210-260 IINS - Exam 3
Mike M
Application of technology in learning
Jeff Wall
Innovative Uses of Technology
John Marttila
Ch1 - The nature of IT Projects
mauricio5509
The Internet
Gee_0599
CCNA Answers – CCNA Exam
Abdul Demir
SQL Quiz
R M
Professional, Legal, and Ethical Issues in Information Security
mfundo.falteni
System Analysis
R A
Flash Cards Networks
JJ Pro Wrestler
EDUC260- Multimodal Literacies for a Digital Age
angelwoo2002