Languages - Javascript and Node

Languages - Javascript and Node

1st - 12th Grade

21 Qs

quiz-placeholder

Similar activities

Computer Science Principles Lists Loops Traversals

Computer Science Principles Lists Loops Traversals

10th - 12th Grade

20 Qs

C# Intro

C# Intro

9th Grade

20 Qs

Code.org Unit 5

Code.org Unit 5

10th - 12th Grade

20 Qs

CSP Lists Loops and Traversals

CSP Lists Loops and Traversals

10th - 12th Grade

20 Qs

AP CSP Unit 5 Review: Lists, Loops and Traversals

AP CSP Unit 5 Review: Lists, Loops and Traversals

9th - 12th Grade

19 Qs

An introduction to Arduino

An introduction to Arduino

10th - 11th Grade

16 Qs

Code.org List

Code.org List

10th - 12th Grade

20 Qs

Code.org Unit 5 Test

Code.org Unit 5 Test

10th - 12th Grade

20 Qs

Languages - Javascript and Node

Languages - Javascript and Node

Assessment

Quiz

Computers

1st - 12th Grade

Medium

Created by

Aka People

Used 5+ times

FREE Resource

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Apart from recently added Symbol and Big Int, Javascript primitive data types are:

string, number, undefined, null, boolean

string, number, boolean, object, array

string, number, boolean, object

string, number, null, boolean

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Variable assignment can be done with "let", "const" and "var".

You should use "var" instead of "let" or "const" when (mark all the options you consider to be true):

You want to ensure your code works on an old browser.

Never. We should never use "var".

You want to make sure a down-level scope of your code has access to its value.

You want to make sure you are able to change the variable value after the first assignment.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to code on the image. On the console, it will appear:

true

false

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to code on the image. On the console, it will appear:

true

false

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to the code. Mark the correct answer.

This code will cause an error.

No error will occur because we are using "optional chaining" operator.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to the code in the image. We are using "spread" operator to create "myCopy". Choose what will be the equivalent object as the result of the assignment of "myCopy".

Media Image
Media Image
Media Image

7.

OPEN ENDED QUESTION

3 mins • 1 pt

We need to print to the console all integers from 0 to 10. Write here the code to it. Hint: using a "for loop" is an option.

Evaluate responses using AI:

OFF

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?