JavaScript Level 1

JavaScript Level 1

5th - 9th Grade

20 Qs

quiz-placeholder

Similar activities

For and While Loops in Python

For and While Loops in Python

9th - 12th Grade

16 Qs

Year 9 computing mixed questions

Year 9 computing mixed questions

9th - 11th Grade

22 Qs

AP Computer Science Principles Lists

AP Computer Science Principles Lists

9th - 12th Grade

20 Qs

CS Principles Unit 5 Assessment

CS Principles Unit 5 Assessment

9th - 12th Grade

20 Qs

Code.org CSP Unit 5 Test Review

Code.org CSP Unit 5 Test Review

9th - 12th Grade

20 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Revision

Revision

9th Grade

17 Qs

Python -Iteration (loops)

Python -Iteration (loops)

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