
JavaScript -MIDTERM EXAM
Authored by DENNIS GONZALES
Computers
University
Used 13+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?