JavaScript Level 1

JavaScript Level 1

5th - 9th Grade

20 Qs

quiz-placeholder

Similar activities

AP CSP Unit 5 Review: Lists, Loops and Traversals

AP CSP Unit 5 Review: Lists, Loops and Traversals

9th - 12th Grade

19 Qs

AP Computer Science Principles Unit 5 Review Lists

AP Computer Science Principles Unit 5 Review Lists

9th - 12th Grade

20 Qs

AP CSP Mixed Review

AP CSP Mixed Review

9th - 12th Grade

20 Qs

AP Computer Science Principles Lists

AP Computer Science Principles Lists

9th - 12th Grade

20 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Python - Chpt 1 - Review

Python - Chpt 1 - Review

9th - 12th Grade

15 Qs

Creative Coding Test Review

Creative Coding Test Review

9th - 11th Grade

20 Qs

JavaScript Practice Quiz

JavaScript Practice Quiz

8th Grade

15 Qs

JavaScript Level 1

JavaScript Level 1

Assessment

Quiz

Computers

5th - 9th Grade

Medium

Created by

Sor Ling Liang

Used 9+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How do I generate a random number from 0 to less than 1?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE SELECT QUESTION

1 min • 5 pts

How do I add comments in my codes?

Use double forward slash, like this:

// say something

Use /* and */ to enclose some lines of text as comments

Use #, hash symbol, like this:

# say something

Use <!-- and --> to enclose some lines of text as comments

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following will ask for input when you run the program?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What will be printed in the console?

Error. This code cannot run.

29 February

11 February

2+9+February

5.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Which of the following is/are valid JavaScript variable name(s)?

num1

1num

my_name

my name

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

I want to use a String variable to store some text value in my program. Which one is correct?

let some text = can i ask a question?;

def some_text = "can i ask a question?";

let some_text = "can i ask a question?";

def some_text = can i ask a question?;

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

I want to use a number variable to store some numerical value in my program. Which one is correct?

let 1num = 100;

def 1num = "100";

let num1 = 100;

let num1 = "100";

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?