Search Header Logo

JavaScript -MIDTERM EXAM

Authored by DENNIS GONZALES

Computers

University

Used 14+ times

JavaScript -MIDTERM EXAM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JavaScript primarily used for?

Database management

Web programming

Desktop applications

Mobile app development

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a language that all web developers must learn?

JavaScript

Python

CSS

HTML

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the assignment operator (=) do in JavaScript?

Compares two values

Assigns a value to a variable

Performs arithmetic operations

Declares a function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for logical 'and' in JavaScript?

||

!

&&

&

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of values can a variable hold in JavaScript?

Only boolean values

Any type of data

Only strings

Only numbers

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of methods in JavaScript?

To store data

To define variables

To create new objects

To perform actions on objects

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a JavaScript event?

function doWhatever

var month

document.write

onClick

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?