7th Seoul - 2nd Cycle Exam

7th Seoul - 2nd Cycle Exam

7th Grade

40 Qs

quiz-placeholder

Similar activities

Quarter 2 Summative Test Einstein

Quarter 2 Summative Test Einstein

9th Grade

41 Qs

3RD QUARTER ASSESSMENT GRADE 9

3RD QUARTER ASSESSMENT GRADE 9

9th Grade

35 Qs

Mini Review 1

Mini Review 1

9th - 12th Grade

36 Qs

JavaScript Control Flow and Loops.

JavaScript Control Flow and Loops.

10th Grade - University

35 Qs

Desarrollo Web

Desarrollo Web

University

40 Qs

AP CSP | Conditionals Review

AP CSP | Conditionals Review

9th - 12th Grade

44 Qs

OH MY ECMA

OH MY ECMA

University - Professional Development

44 Qs

7th Seoul - 2nd Cycle Exam

7th Seoul - 2nd Cycle Exam

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Eugene Castro

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?