0% found this document useful (0 votes)
101 views17 pages

Quiz and Test Module 1-SOLVED

Test Python

Uploaded by

josegmay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views17 pages

Quiz and Test Module 1-SOLVED

Test Python

Uploaded by

josegmay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Quiz and Test (JSE) Module 1 - SOLVED

Centro público integrado de formación profesional


Nuevo (desglose IES Campanillas)

Quiz and Test


JavaScript Essentials 1 (JSE)
Module 1
SOLVED

José García JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED

Índice
JAVASCRIPT ESSENTIALS 1 (JSE) - MODULE 1 .............................................................................................................................3
JAVASCRIPT ESSENTIALS 1 (JSE) MODULE 1 ........................................................................................................................................................... 3
Introduction to JavaScript and Computer Programming .................................................................................................................... 3
QUIZ ....................................................................................................................................................................................................................4
TEST ................................................................................................................................................................................................................ 11

José García 2 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
JavaScript Essentials 1 (JSE) - Module 1 - SOLVED

JavaScript Essentials 1 (JSE)


Module 1

Introduction to JavaScript and Computer Programming


After completing Module 1, the student will:

• understand the fundamental programming concepts, such as: interpreting and the interpreter,
compilation and the compiler, client-side vs. server-side programming;
• have basic knowledge of how to set up and use the basic programming environment (online or local);
• gain skills allowing them to run their first JavaScript program on the client side (both as an element
embedded in the HTML page and directly in the browser console).

José García 3 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
Quiz
JavaScript is:
a. an interpreted language.
b. a language designed for mathematical calculations.
c. a natural language.
d. designed to run on servers only.

a.- an interpreted language.

JavaScript is primarily known as an interpreted language, meaning that the code is executed line
by line at runtime by an interpreter, rather than being compiled into machine code beforehand like
languages such as C++ or Java. This feature allows for more flexibility and easier development
as changes can be quickly tested without the need for a lengthy compilation process. JavaScript
is commonly used for web development and runs in web browsers to add interactivity and
dynamic content to websites. It can also be used on servers (e.g., with Node.js) and in various
other environments beyond web browsers.

What is the basic difference between compiled and interpreted languages?


a. In compiled languages, unlike in interpreted languages, all the program code must be transformed into the
target form before it can be run.
b. In interpreted languages, it is not possible to use variables.
c. In compiled languages, the program is always transformed into the executable code of a specific machine
(processor).
d. In interpreted languages, the step of checking the correctness of the formal writing of the source code (le.
syntax) is always omitted.

a.- In compiled languages, unlike in interpreted languages, all the program code must be transformed
into the target form before it can be run.

The basic difference between compiled and interpreted languages lies in how the code is
executed:
1. Compiled Languages:
In compiled languages, the source code is translated into machine code (also known as
binary code or object code) by a compiler. The compiler analyzes the entire source code,
checks for errors, and translates it into an executable file that can be run directly on a specific
target machine (processor architecture). The resulting binary file contains instructions that the
computer's processor can directly understand and execute. Once compiled, the code can be
executed multiple times without the need for recompilation (unless changes are made to the
code).
2. Interpreted Languages:
In interpreted languages, the source code is not directly translated into machine code.
Instead, an interpreter reads and executes the source code line by line at runtime. The
interpreter processes each line of code, translates it into machine code or intermediate code,
and then immediately executes it. This process happens each time the program is run,
without generating a separate binary file. Interpreted languages tend to be more flexible and
allow for easier debugging since changes to the code can be tested immediately without the
need for a compilation step.

Option (a) correctly states the difference between compiled and interpreted languages.

José García 4 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
The basic online development environment will consist of:
a. At least a code editor and a runtime environment.
b. The runtime environment only.
c. A forum for developers to exchange information only.
d. An online code editor only.

a.- At least a code editor and a runtime environment.

The basic online development environment typically consists of at least a code editor and a runtime environment.
Here's an explanation of each component:
1. Code Editor:
An online code editor allows developers to write, edit, and manage their code directly within a web browser. It
provides features like syntax highlighting, auto-completion, code formatting, and sometimes debugging tools.
Code editors are essential for writing and maintaining code efficiently.
2. Runtime Environment:
The runtime environment is a platform or system that executes the code written in the code editor. For web
development, this often includes a web browser with JavaScript support or a server environment that can run
server-side code. The runtime environment is responsible for executing the code and displaying the output or
results of the program.

Together, the code editor and the runtime environment create an online development environment that allows
developers to write, test, and execute code without the need for local installations of software development tools.

Options (b), (c), and (d) are not comprehensive enough to constitute a basic online development environment.
While some online development environments might have additional features like forums for developer
collaboration or information exchange, the core components will include a code editor and a runtime environment.

What is not the task of the debugger?


a. Transforming the source code of the program into the target form.
b. Showing the current values of the variables of the executed program.
c. Allowing the user to execute only single statements step by step.
d. Allowing the user to pause the execution of the program.

a.- Transforming the source code of the program into the target form.

The task of a debugger is not to transform the source code of the program into the target form (option a). Instead,
a debugger is a software tool used by developers to identify and resolve issues in their programs during the
debugging process. Debuggers provide various functionalities that aid developers in understanding how their
code behaves and finding and fixing bugs.

The other options are tasks performed by a debugger:

a. Showing the current values of the variables of the executed program: A debugger allows developers to
inspect the current values of variables at different points during program execution, helping them understand
how the values change and track down errors.

b. Allowing the user to execute only single statements step by step: Debuggers enable developers to execute
their code line by line, which is known as "stepping through" the code. This step-by-step execution allows
developers to observe the behavior of the program and catch any issues that may arise during execution.

c. Allowing the user to pause the execution of the program: A debugger allows developers to pause the
execution of the program at specific breakpoints or during specific conditions. Pausing the execution gives
developers the opportunity to inspect the program's state and investigate the cause of problems.

In summary, debuggers are powerful tools for developers to analyze and debug their code, but they are not
responsible for transforming the source code into the target form (e.g., compiling code in compiled languages).

José García 5 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
Using JavaScript, we want to display the word "hello" the console. What statement do we use to do
this?
a. console("hello");
b. console.log("hello");
c. display("hello");
d. log("hello");

b.- console.log("hello");

In JavaScript, to display the word "hello" in the console, you use the ‘console.log()’ statement. It
is a built-in function that outputs messages or values to the browser's console or the developer
tools console. The content inside the parentheses, in this case, "hello," will be displayed as output
in the console.

A client-side JavaScript program:


a. may be embedded inside an HTML document or run standalone in the browser.
b. does not require an interpreter to run.
c. runs directly in a web browser and can contain an HTML document inside it.
d. should be embedded inside an HTML document.

a.- may be embedded inside an HTML document or run standalone in the browser.

A client-side JavaScript program can be either embedded inside an HTML document using
‘<script>’ tags or run standalone in the web browser. The primary purpose of client-side
JavaScript is to enhance the interactivity and behavior of web pages, and it can be used in
multiple ways:

• Embedded inside an HTML document: This is a common approach where JavaScript code is
included within ‘<script>’ tags in the HTML file. The JavaScript code can interact with the
HTML elements and modify the content, behavior, and appearance of the web page.
• Run standalone in the browser: JavaScript files can also be linked externally to an HTML
document using the ‘<script>’ tag's ‘src’ attribute. This allows developers to separate the
JavaScript code from the HTML file, making the code more modular and easier to manage.

Option (a) correctly describes the versatility of client-side JavaScript programs. They can be
embedded in an HTML document or run as standalone scripts in the browser to enhance web
page functionality.

HTML is:
a. a language for describing the structure of a web page.
b. a scripting language to support mathematical calculations.
c. the name of one of the browsers.
d. a network protocol.

a.- a language for describing the structure of a web page.

HTML (Hypertext Markup Language) is a markup language used for creating the structure and
content of web pages. It is the standard language for describing the elements, layout, and overall
structure of a webpage. HTML uses various tags and attributes to define the different
components of a web page, such as headings, paragraphs, images, links, forms, and more.

Option (a) accurately describes the purpose and role of HTML in web development. It is not a
scripting language for mathematical calculations (option b), the name of a browser (option c), or a
network protocol (option d).

José García 6 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
The <html> tag indicates the start of the actual HTML document. What tag should appear at the end of
the document?
a. </html>
b. <html>
c. <html/>
d. >html<

a.- </html>

The ‘<html>’ tag indicates the start of the actual HTML document, and the corresponding closing
tag, ‘</html>’, should appear at the end of the document. The opening ‘<html>’ tag defines the
beginning of the HTML document, and the closing ‘</html>’ tag marks the end of the document.

So, the correct tag to appear at the end of the HTML document is ‘</html>’.

What tag do we use in HTML to denote the main part of the document inside which we define the page
elements?
a. <head>
b. <page>
c. <body>
d. <main>

c.- <body>

In HTML, we use the ‘<body>’ tag to denote the main part of the document inside which we
define the page elements. The ‘<body>’ tag represents the content of the web page that is visible
to the user. It contains various elements such as headings, paragraphs, images, links, forms, and
other HTML elements that make up the actual content and structure of the web page.

Option (c) ‘<body>’ is the correct tag used for defining the main part of the document in which the
page elements are placed. Options (a) ‘<head>’, (b) ‘<page>’, and (d) ‘<main>’ serve different
purposes and are not used to define the main content area of the document.

José García 7 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
What HTML tag is used to indicate that we are embedding
JavaScript code?
a. <script>
b. <javascript>
c. <body>
d. <embedded>

a.- <script>

The HTML tag used to indicate that we are embedding JavaScript code is the <script> tag. The <script>
tag is used to define client-side JavaScript code within an HTML document. It can be placed in the <head>
or <body> section of the HTML document.
For example:

.html
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<script>
// JavaScript code goes here
alert("Hello, world!");
</script>
</head>
<body>
<!-- The rest of the HTML content -->
</body>
</html>

Option (a) ‘<script>’ is the correct tag used for embedding JavaScript code in an HTML document.
Options (b) ‘<javascript>’, (c) ‘<body>’, and (d) ‘<embedded>’ are not valid tags for embedding
JavaScript code.

José García 8 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
In a browser, we want to open a local file by typing the path to it in the address bar. The path must be
preceded by:
a. file:///
b. local:///
c. http://
d. C://

a.- file:///

In a browser, to open a local file by typing its path in the address bar, the path must be preceded
by "file:///".

For example, if you want to open a local HTML file located at


"C:\Users\YourUsername\index.html", you would type the following in the address bar:

file:///C:/Users/YourUsername/index.html

The "file://" protocol indicates that you are accessing a local file on your computer. Option (a)
"file:///" is the correct prefix for opening local files in a browser. Options (b) "local:///", (c) "http://",
and (d) "C://" are not valid prefixes for opening local files in this context.

In the browser, we type into the address bar a string starting with file:///. This means that:
a. we want to save the page as a local file.
b. we want to share our local files on the network.
c. the rest of the string is the path to the file on our local computer that we want to open in the browser.
d. we do not want to open the page, but only download a file from the remote address and save it on the
local machine.

c.- the rest of the string is the path to the file on our local computer that we want to open in the browser.

When you type a string starting with "file:///" into the address bar of a web browser, it indicates
that you want to access a file on your local computer, and the rest of the string specifies the path
to that file.

For example:

file:///C:/Users/YourUsername/index.html

In the above example, the browser will attempt to open the file "index.html" located on the local
computer at the path "C:/Users/YourUsername/". This allows you to view and interact with the
HTML file directly in the browser without the need for a web server.

Option (c) correctly describes the meaning of typing a string starting with "file:///" in the address
bar of a web browser. Options (a), (b), and (d) do not accurately represent the purpose of using
"file:///" in this context.

José García 9 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
Entering about:blank in the address bar of your browser will:
a. generate and load a minimal blank HTML page into the current tab.
b. generate a page with information about the browser's status and send it to the developer.
c. open a tab with information about your browser.
d. reset the browser to its default settings.

a.- generate and load a minimal blank HTML page into the current tab.

Entering "about:blank" in the address bar of your web browser will generate and load a minimal
blank HTML page into the current tab. This page does not contain any content, and it is often
used as a quick way to open a new, empty browser tab.

Option (a) correctly describes the action that occurs when you enter "about:blank" in the address
bar. Options (b), (c), and (d) do not accurately represent the outcome of typing "about:blank" in
the address bar.

The JavaScript code includes the console.log("http://test.org"); command. Its execution will:
a. display on the console information about the loading progress of the http://test.org page.
b. send a log with information about the currently executed script to the indicated address http://test.org.
c. write log information to the local file.
d. display the following message on the console:
"http://test.org".

d.- display the following message on the console: "http://test.org".

The JavaScript code ‘console.log("http://test.org");’ will display the provided message,


"http://test.org", on the console. The ‘console.log()’ function is used to log or print messages
to the browser's developer console. It does not load the URL "http://test.org," send logs to an
external address, or write logs to a local file.

Option (d) correctly describes the outcome of executing the given JavaScript code. It will simply
print the message "http://test.org" to the console.

José García 10 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
Test
The <html> tag indicates the start of the actual HTML document. What tag should appear at the end of
the document?
a. <lmth>
b. <html/>
c. <html>
d. </html>

d.- </html>

The correct tag to appear at the end of the HTML document is ‘</html>’. The ‘<html>’ tag
indicates the start of the HTML document, and the corresponding closing tag, ‘</html>’, marks
the end of the document. The complete structure of an HTML document should include both the
opening ‘<html>’ tag at the beginning and the closing ‘</html>’ tag at the end.

Option (d) ‘</html>’ is the correct choice. Options (a) ‘<lmth>’, (b) ‘<html/>’, and (c) ‘<html>’ are
not valid for closing the HTML document.

Entering about: blank in the address bar of your browser will:


a. generate a page with information about the browser's status and send it to the developer.
b. generate and load a minimal blank HTML page into the current tab.
c. reset the browser to its default settings.
d. open a tab with information about your browser.

b.- generate and load a minimal blank HTML page into the current tab.

Entering "about:blank" in the address bar of your web browser will generate and load a minimal
blank HTML page into the current tab. This page does not contain any content, and it is often
used as a quick way to open a new, empty browser tab.

Option (b) correctly describes the action that occurs when you enter "about:blank" in the
address bar. It loads a blank page into the current tab. Options (a), (c), and (d) do not accurately
represent the outcome of typing "about:blank" in the address bar.

Using JavaScript, we want to display the word "test" in the console. What statement do we use to do
this?
a. console.log(“test”);
b. log(“test”);
c. console(log, “test”);
d. console(“test”);

a.- console.log("test");

To display the word "test" in the console using JavaScript, you use the console.log() statement.
The console.log() function is a built-in method in JavaScript that outputs messages or values to
the browser's console or the developer tools console.

Option (a) console.log("test") is the correct statement to achieve the desired output. It will print the
word "test" in the console. Options (b) log("test"), (c) console(log, "test"), and (d) console("test")
are not valid syntax for printing messages to the console.

José García 11 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
In the browser, we type into the address bar a string starting with file:///. This means that:
a. we want to save the page as a local file.
b. we do not want to open the page, but only download a file from the remote address and save it on the
local machine.
c. we want the browser to create an empty page for us with the name we give as a continuation of the string.
d. the rest of the string is the path to the file on our local computer that we want to open in the browser.

d.- the rest of the string is the path to the file on our local computer that we want to open in the browser.

When you type a string starting with "file:///" into the address bar of a web browser, it means that
you want to access a file on your local computer, and the rest of the string specifies the path to
that file.

For example:

file:///C:/Users/YourUsername/index.html

In the above example, the browser will attempt to open the file "index.html" located on the local
computer at the path "C:/Users/YourUsername/". This allows you to view and interact with the
HTML file directly in the browser without the need for a web server.

Option (d) correctly describes the meaning of typing a string starting with "file:///" in the address
bar of a web browser. Options (a), (b), and (c) do not accurately represent the purpose of using
"file:///" in this context.

The basic toolkit needed to effectively develop JavaScript code consists of two elements:
a. code editor, debugger.
b. code editor, interpreter.
c. interpreter, debugger.
d. interpreter, package manager.

a.- code editor, debugger.

The basic toolkit needed to effectively develop JavaScript code consists of two elements:

1. Code Editor: A code editor is a software tool used to write, edit, and manage the JavaScript
code. It provides features like syntax highlighting, auto-completion, code formatting, and often
integrates with version control systems. Popular code editors for JavaScript development
include Visual Studio Code, Sublime Text, Atom, and others.
2. Debugger: A debugger is a software tool that helps developers identify and resolve issues
(bugs) in their JavaScript code. It allows developers to set breakpoints, inspect variables, step
through code line-by-line, and observe the program's execution flow. This helps in
understanding how the code behaves and finding and fixing errors efficiently.

Option (a) code editor and debugger are the two essential elements required for effective
JavaScript development. Options (b), (c), and (d) include other tools or incorrect combinations for
basic JavaScript development.

José García 12 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
The TypeScript language is:
a. a variant of JavaScript that is compiled rather than interpreted.
b. an alternative name for JavaScript.
c. the original name for JavaScript, which has been changed over time.
d. a new language based on JavaScript which, among other things, introduces static typing.

d.- a new language based on JavaScript which, among other things, introduces static typing.

The TypeScript language is a superset of JavaScript that introduces optional static typing and
other features to enhance JavaScript development. It is developed and maintained by Microsoft.
TypeScript code can be compiled to standard JavaScript, making it compatible with all modern
browsers and environments that support JavaScript.

Option (d) correctly describes TypeScript as a new language based on JavaScript that adds static
typing, along with other features, to improve JavaScript development. Options (a), (b), and (c) do
not accurately represent TypeScript's nature and purpose.

What HTML tag is used to indicate that we are embedding JavaScript code?
a. <js>
b. <execute>
c. <script>
d. ‹source>

c. <script>
The HTML tag used to indicate that we are embedding JavaScript code is the <script> tag. The
<script> tag is used to define client-side JavaScript code within an HTML document. It can be
placed in the <head> or <body> section of the HTML document.

For example:

. html
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<script>
// JavaScript code goes here
alert("Hello, world!");
</script>
</head>
<body>
<!-- The rest of the HTML content -->
</body>
</html>

Option (c) <script> is the correct tag used for embedding JavaScript code in an HTML document.
Options (a) <js>, (b) <execute>, and (d) <source> are not valid tags for embedding JavaScript
code.

José García 13 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
Where will we definitely not be able to execute JavaScript code?
a. In a web browser.
b. On a mobile device.
c. Directly in the processor.
d. In a server environment using node.js.

c.- Directly in the processor.

JavaScript is primarily designed to be executed in environments that provide a JavaScript engine


or runtime. While modern web browsers, mobile devices, and server environments like Node.js
support executing JavaScript code, it cannot be directly executed on a processor without a
JavaScript runtime or interpreter.

Options (a) "In a web browser," (b) "On a mobile device," and (d) "In a server environment using
Node.js" are valid environments where JavaScript code can be executed. However, option (c)
"Directly in the processor" is not possible without a JavaScript runtime or interpreter to handle the
code execution.

What is not the task of the interpreter?


a. Creating a runtime environment for the program.
b. Transforming all program code into target code before execution.
c. Transforming the individual commands of the source code into the target form.
d. Verifying the correctness of the program source code (syntax).

b.- Transforming all program code into target code before execution.

The task of an interpreter is not to transform all program code into target code (machine code)
before execution, as stated in option (b). Instead, an interpreter reads and executes the program
code line by line at runtime, translating each line or command into the target form or machine
code just before its execution.

The other options describe tasks that are typically performed by an interpreter:

a.- Creating a runtime environment for the program: The interpreter sets up the necessary
runtime environment for the program to execute, including memory allocation and handling
external resources.
c.- Transforming the individual commands of the source code into the target form: The interpreter
translates each individual command or line of the source code into the target form before
executing it.
d.- Verifying the correctness of the program source code (syntax): The interpreter checks the
syntax of the program source code and reports any errors in the code before starting the
execution.

In summary, an interpreter executes code line by line, translating each line into machine code just
before its execution, and it also handles runtime environment setup and syntax verification.

José García 14 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
A client-side JavaScript program:
a. runs directly in a web browser and can contain an HTML document inside it.
b. requires server support to run.
c. should be embedded inside an HTML document.
d. may be embedded inside an HTML document or run standalone in the browser.

d.- may be embedded inside an HTML document or run standalone in the browser.

A client-side JavaScript program can be either embedded inside an HTML document using
‘<script>’ tags or run as a standalone script in the web browser. Here's an explanation of each
option:

a.- runs directly in a web browser and can contain an HTML document inside it. This statement is
partially correct. A client-side JavaScript program runs directly in a web browser and can indeed
interact with the HTML document it is embedded in. However, the JavaScript code itself is
typically placed inside ‘<script>’ tags within the HTML document rather than the entire HTML
document being inside the JavaScript code.

b.- requires server support to run. This statement is not accurate. Client-side JavaScript runs
entirely within the web browser and does not require server support to execute. It can be
executed without any interaction with the server.

c.- should be embedded inside an HTML document. This statement is partially correct. While
client-side JavaScript can be embedded inside an HTML document using ‘<script>’ tags, it is not
a strict requirement. It can also be included as an external JavaScript file using the ‘src’ attribute
of the ‘<script>’ tag.

d.- may be embedded inside an HTML document or run standalone in the browser. This
statement is correct. Client-side JavaScript can be embedded inside an HTML document using
‘<script>’ tags or run as a standalone script in the browser by including it as an external
JavaScript file.

Option (d) is the most accurate description of a client-side JavaScript program.

José García 15 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
In a browser, we want to open a local file by typing the path to it in the address bar. The path must be
preceded by:
a. http://
b. local:///
c. file:///
d. https://

c.- file:///

In a browser, to open a local file by typing its path in the address bar, the path must be preceded
by "file:///".

For example, if you want to open a local HTML file located at


"C:\Users\YourUsername\index.html", you would type the following in the address bar:

file:///C:/Users/YourUsername/index.html

The "file://" protocol indicates that you are accessing a local file on your computer. Option (c)
"file:///" is the correct prefix for opening local files in a browser. Options (a) "http://", (b) "local:///",
and (d) "https://" are not valid prefixes for opening local files in this context.

The JavaScript code includes the console.log("http://test.org"); command. Its execution will:
a. display the following message on the console: "http://test.org"
b. display on the console information about the progress of http://test.org page loading.
c. send a log with information about the currently executed script to the indicated address http://test.org
d. cause the page http://test.org to be loaded into the browser.

a.- display the following message on the console: "http://test.org"

The JavaScript code ‘console.log("http://test.org");’ will display the provided message,


"http://test.org", on the console. The ‘console.log()’ function is used to log or print messages to
the browser's developer console. It does not load the URL "http://test.org" or send logs to an
external address.

Option (a) correctly describes the outcome of executing the given JavaScript code. It will simply
print the message "http://test.org" to the console. Options (b), (c), and (d) are not accurate
interpretations of the ‘console.log()’ function in this context.

HTML is:
a. one of the data-compression formats.
b. a language for describing the structure of a web page.
c. a network protocol.
d. a scripting language to support mathematical calculations.

b.- a language for describing the structure of a web page.


HTML (Hypertext Markup Language) is a markup language used for creating the structure and
content of web pages. It is not a data-compression format (option a), a network protocol (option
c), or a scripting language for mathematical calculations (option d).

Option (b) correctly describes HTML as a language used to define the structure and content of
web pages, including headings, paragraphs, images, links, forms, and other elements that make
up the webpage.

José García 16 JavaScript - JSE-40-01


Quiz and Test (JSE) Module 1 - SOLVED
What tag do we use in HTML to denote the main part of the document inside which we define the page
elements?
a. <main>
b. <head>
c. <content>
d. <body>

d.- <body>

In HTML, we use the ‘<body>’ tag to denote the main part of the document inside which we
define the page elements. The ‘<body>’ tag represents the content of the web page that is visible
to the user. It contains various elements such as headings, paragraphs, images, links, forms, and
other HTML elements that make up the actual content and structure of the web page.

Option (d) ‘<body>’ is the correct tag used for defining the main part of the document in which the
page elements are placed. Options (a) ‘<main>’, (b) ‘<head>’, and (c) ‘<content>’ serve different
purposes and are not used to define the main content area of the document.

José García 17 JavaScript - JSE-40-01

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy