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

Quiz

js

vernona pit 46 questions

Take the quiz

Questions in this quiz (46)

  1. 1Please select all correct variants of connection the external JavaScript file:
    1. A<link rel="stylesheet" href="script.js">
    2. B<script src="script.js"></script>
    3. C<script defer src="script.js"></script>
    4. D<script></script>
  2. 2Select all correct variants of variable declaration:
    1. Avar t = 'Hello))';
    2. Blet _c = document.body;
    3. Cvar 1c = 56;
    4. Dlet $ = true;
    5. Elet obj = {};
  3. 3Is the statement "JS is a dynamically typed language" true?
    1. ATrue
    2. BFalse
  4. 4Which data type is better to use to create unique values?
    1. ANumber
    2. BBigInt
    3. CSymbol
    4. DString
  5. 5What statement is correct to create a variable of BigInt type?
    1. Alet a = 123;
    2. Blet a = 123n;
    3. Clet a = '123n';
    4. Dlet a = BigInt(123);
  6. 6What is the result of executing the typeof operator in the below code?

    let myVar;
    typeof myVar;
    1. Anull
    2. Bundefined
    3. C"undefined"
    4. D"null"
  7. 7Choose the right variant for accessing an object property:
    1. Astudent.name;
    2. Bstudent->name
    3. Cstudent[name]
    4. Dstudent["name"]
  8. 8How does the data type in JS affect the variable?
    1. ADefines a range of valid values
    2. BDefines a set of operations on a variable
    3. CAllows to check the type of a variable during the code compilation time
    4. DSpecifies how a variable is stored in memory
  9. 9What is output of the code below?
    console.log(null==undefined)
    1. ATrue
    2. BFalse
  10. 10What outputs to the console after executing the code?

    let a = "75";
    let b = "75a";
    console.log(Number(a));

    console.log(Number(b));
    1. A75 75
    2. BNaN NaN
    3. C75 ReferenceError
    4. D75 NaN

Information

Description
Quiz on js, created by vernona pit on 28/08/2022.
Language
English
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?