100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

JavaScript Test UPDATED ACTUAL Exam Questions and CORRECT Answers

Puntuación
-
Vendido
-
Páginas
34
Grado
A+
Subido en
24-06-2025
Escrito en
2024/2025

JavaScript Test UPDATED ACTUAL Exam Questions and CORRECT Answers

Institución
JAVA
Grado
JAVA











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
JAVA
Grado
JAVA

Información del documento

Subido en
24 de junio de 2025
Número de páginas
34
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

JavaScript Test UPDATED ACTUAL Exam Questions and
CORRECT Answers


6.1 In the following line the word document is a(n) ______ that resides in the computer's
memory.

document.writeln("Hello World");

a) attribute

b) behavior
c) object
d) method - c) Object



6.2 In the following line, the word writeln is a(n) _________ that performs a task or action in the
script.

document.writeln("Hello World");

a) structure

b) collection

c) object
d) method - d) Method


6.3 Consider the following HTML5 code.

<html>

<script type = "text/javascript">

<!--

<!-- document.writeln("Hello World"); -->

//-->
</script>
</html>

,What would a browser capable of scripting display when executing this code?

a) document.writeln("Hello World");

b) nothing
c) Hello World

d) <html>

<script type = "text/javascript">

<!--

<!-- document.writeln("Hello World </p>");

//-->

</script>

</html> - b) Nothing


6.4 Which of the following statements would correctly print out the sentence "Hello World" in
blue?

a) document.write( "<p style = \"color: blue\");

document.write( "Hello World >");

b) document.write( "<p> style = \"color: blue\" Hello World </p>);

c) document.write( "<p style = \"color: blue\" Hello World + "</p>");

d) document.write( "<p style = \"color: blue\">");

document.write( "Hello World </p>"); - d) document.write( "<p style = \"color: blue\">");
document.write( "Hello World </p>");



6.5 An alert dialog displaying the text "Welcome!" is created by calling _________.

a) window.alert( "Welcome!" );

b) alert.window( "Welcome!" );
c) window( "alert = \"Welcome!\"" );

,d) window( "<alert> Welcome! </alert>" ); - a) window.alert( "Welcome!" );



6.6 Consider the following script. What is wrong with the following code?

<script type = "text/javascript">
var firstNumber;

thirdNumber;



firstNumber = window.prompt("Enter an integer", "0");

secondNumber = window.prompt("Enter an integer", "0");

thirdNumber = firstNumber + secondNumber;

</script>


a) thirdNumber in line 7 must be in quotes.

b) The words Enter an integer in line 6 should not be in quotes.

c) The word thirdnumber in line 3 should have a comma after it.

d) The word var must be placed before thirdNumber in line 3. - d) The word var must be placed
before thirdNumber in line 3.



6.7 Which of the following is not a valid variable name?

a) Tax1

b) eightball_8
c) 12footage

d) pageNumber1200 - c) 12footage



6.8 What will the browser display if the following script is executed and the user enters 5 at both
prompts?

<script type = "text/javascript">
<!--

, var firstNumber = window.prompt( "Enter an integer", "0" );

var secondNumber= window.prompt( "Enter an integer", "0" );

var thirdNumber;

thirdNumber = firstNumber + secondNumber;
document.write( thirdNumber );

//-->

</script>



a) nothing

b) 0

c) 10

d) 55 - d) 55


6.9 Whenever a value is placed in a memory location, the value________.

a) cannot be added if a value already exists

b) can share a location in memory with another value

c) replaces the previous value in that location

d) will be assigned to another identifier if a value already exists - c) replaces the previous value
in that location



6.10 What is the result of the statement 17 % 5?
a) 0

b) 2

c) 3

d) 12 - b) 2


6.11 Which of the following sequences does not follow the rules of operator precedence?
Assume that operators are evaluated in the order listed from left to right.
$12.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
GradeVaultAcademy

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
GradeVaultAcademy Havard School
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
6 meses
Número de seguidores
0
Documentos
841
Última venta
4 meses hace
GradeVault Academy.

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes