JavaScript Level 1

JavaScript Level 1

5th - 9th Grade

20 Qs

quiz-placeholder

Similar activities

AP CSP Lists

AP CSP Lists

9th - 12th Grade

20 Qs

Javascript Debugging Review

Javascript Debugging Review

9th Grade

21 Qs

Intro to CS Semester Test Review P1

Intro to CS Semester Test Review P1

9th Grade

20 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

Code.org AP CSP Lists

Code.org AP CSP Lists

9th - 12th Grade

20 Qs

AP CSP Unit 5

AP CSP Unit 5

9th - 12th Grade

20 Qs

Code.org APCSP Unit 5 Assessment

Code.org APCSP Unit 5 Assessment

9th - 12th Grade

20 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?