Search Header Logo

7th Seoul - 2nd Cycle Exam

Authored by Eugene Castro

Computers

7th Grade

Used 1+ times

7th Seoul - 2nd Cycle Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JavaScript do in a webpage?

Structures content

Styles content

Makes the webpage interactive

Stores data in a database

Answer explanation

JavaScript primarily makes webpages interactive by enabling dynamic content updates, user interactions, and real-time responses, enhancing the overall user experience. It does not structure or style content directly.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to include JavaScript in an HTML document?

<script>

<js>

<javascript>

<code>

Answer explanation

<script> is the tag that can be used on declaring JavaScript

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can JavaScript be written in an HTML file?

Inside the tag

Inside the tag

Both and tags

Only in an external file

Answer explanation

JavaScript can be included in both the and tags of an HTML file. This allows for scripts to be loaded before or after the content, providing flexibility in how and when the scripts are executed.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a use of JavaScript?

Form validation

Adding animations

Designing a webpage layout

Fetching data from a server

Answer explanation

JavaScript is primarily used for dynamic functionalities like form validation, animations, and fetching data. However, designing a webpage layout is typically done with HTML and CSS, not JavaScript.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to display an alert box in JavaScript?

alertBox("Hello");

message("Hello");

alert("Hello");

display("Hello");

Answer explanation

The correct way to display an alert box in JavaScript is by using the alert() function. Therefore, alert("Hello"); is the right choice, as it triggers a pop-up alert with the specified message.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method writes content to an HTML document?

document.write()

document.log()

write.document()

write.log()

Answer explanation

The correct method to write content to an HTML document is document.write(). The other options, document.log(), write.document(), and write.log(), are not valid JavaScript methods for this purpose.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you log information to the console?

console.log("Hello");

log.console("Hello");

output.console("Hello");

display.log("Hello");

Answer explanation

The correct way to log information to the console in JavaScript is using console.log("Hello"). The other options are incorrect as they do not use the proper syntax for logging.

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?