Search Header Logo

CH01-TEST-MC-GettingYourFeetWet

Authored by Ramsey Seweingyawma

Computers

9th Grade

Used 1+ times

CH01-TEST-MC-GettingYourFeetWet
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of JavaScript in a web page?

To specify the content and structure of the page.

To specify the styles, colors, and layout of the page.

To add behavior and make the page interactive.

To compile the code before execution.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term does the document use to describe the relationship between JavaScript, HTML, and CSS?

A partnership.

A competition.

A computational cousin.

A declarative framework.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the browser encounters errors in JavaScript code?

It immediately stops and displays a blank page.

It requests the user to debug the code.

It does its best to keep moving and continue reading the rest of the page.

It automatically fixes the error before running the code.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the process of writing and running JavaScript differ from a typical language like C or Java?

JavaScript must be compiled, linked, and deployed first.

JavaScript requires a special server to run the code.

You write the code into the page, and the browser executes it immediately.

JavaScript must be written only in a separate file.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between how you write HTML/CSS and how you write JavaScript?

HTML/CSS involves computation; JavaScript is declarative.

HTML/CSS is largely declarative; JavaScript requires describing computation.

HTML/CSS uses variables; JavaScript uses rules.

HTML/CSS runs on a server; JavaScript runs on a browser.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML element is used to include JavaScript code in a web page?

<js>

<code>

<script>

<link>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To link to an external JavaScript file (e.g., mycode.js), which attribute must be used within the `