
Seatwork #4
Authored by Lukas Kurnia
Information Technology (IT)
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is JavaScript primarily used for?
Adding interactivity to web pages
Designing graphics
Creating databases
Managing server-side operations
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What does the 'var' keyword do in JavaScript?
Defines a function
Declares a variable
Imports a library
Creates a loop
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following is a valid way to declare a variable in JavaScript?
variable myVariable = 10;
myVariable := 10;
set myVariable = 10;
var myVariable = 10;
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is the purpose of the 'alert()' function in JavaScript?
To validate form inputs
To create a new HTML element
To log messages to the console
To display a message to the user
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which operator is used for multiplication in JavaScript?
/
x
*
-
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What will the following code output? document.write(5 + 5);
Error
55
5 + 5
10
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following is an "AND" operator in JavaScript?
!=
||
and
&&
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?