Search Header Logo

Seatwork #4

Authored by Lukas Kurnia

Information Technology (IT)

12th Grade

Used 5+ times

Seatwork #4
AI

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

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?