Search Header Logo

quiz 1

Authored by Ahmed Kamal

Computers

1st - 5th Grade

Used 3+ times

quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question 1: Which of the following is not a JavaScript data type?

a) String

b) Array

c) Float

d) Function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Question 2: What is the correct data type for the value "42"?

a) Number

b) String

c) Boolean

d) Undefined

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question 3: What will the following expression evaluate to?

typeof "Hello"

a) "Number"

d) "Undefined"

c) "String"

b) "Boolean"

4.

MULTIPLE SELECT QUESTION

1 min • 2 pts

Question 4: How do you declare a variable in JavaScript?

d) const myVariable;

c) let myVariable;

b) variable myVariable;

a) var myVariable;

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Question 5: Which data type is used to store multiple values in a single variable?

c) Boolean

d) Array

b) Number

a) String

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Question 6: What will the following expression evaluate to?

typeof true

a) "String"

d) "Undefined"

c) "Boolean"

b) "Number"

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Question 7: How do you check if two variables have the same value and data type in JavaScript?

a) Using the == operator

b) Using the === operator

c) Using the != operator

d) Using the !== operator

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?