GoConqr has a new look! Let us know what you think.

Quiz

Quiz: TypeScript. Basic Types and Variable Declarations.

Deleted user 5 questions Updated 25 Apr 2017

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (5)

  1. 1Please select correct basic types that are available in TypeScript:
    1. Anumber, null, binary, string, boolean
    2. Bstring, boolean, enum, null, never
    3. Cboolean, char, string, number
    4. Dboolean, number, int, enum, void
  2. 2Please select correct TypeScript variable declarations. Choose all that apply.
    1. Ax = "My String";
    2. Blet z = "My String";
    3. Clet a: string = "My String";
    4. Dlet myAge: int = 25;
    5. Elet c as string = "My String";
    6. Flet b = ("My String" as string);
  3. 3let variable declaration is accessible anywhere within their containing function, module, namespace, or global scope.
    1. ATrue
    2. BFalse
  4. 4Please 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.`;
    1. A{myName}
    2. B{$myName}
    3. C${myName}
    4. D$myName
    5. E$myAge.toString()
    6. F${myAge}
    7. G{$myAge.toString()}
    8. H{$myAge}
  5. 5The 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());
    1. AFord
    2. B400
    3. C301
    4. Dsyntax error

Information

Description
User has deleted their subject information Quiz on Quiz: TypeScript. Basic Types and Variable Declarations., created by Deleted user on 25/04/2017.
Author
Deleted user
Language
English
Views
56
History
Created on 25 Apr 2017 · updated on 25 Apr 2017

Feedback

What is it about?

What do you think of the new look?

How do you like it?