• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 7 páginas
Examen

Javascript Certification Test Questions With Correct Answers Graded A+

Document preview thumbnail
Vista previa 2 fuera de 7 páginas

JAVASCRIPT CERTIFICATION TEST QUESTIONS WITH CORRECT ANSWERS GRADED A+ Basic Structure of a Randomizer - Answers Math.Random(); Range of Math.Random(); - Answers 0 (inclusive) - 1 (exclusive) How random are randomizers? - Answers Randomizers are not entirely random. They have formulas to create a random number. Overall name for Randomizers - Answers PRNG - Pseudo Random Number Generators Basic Structure of a For Loop - Answers for (var i = 0; i num; i++) { } Step One of a basic for loop - Answers Initializer - initialize the variable i as a counter Step Two of a basic for loop - Answers Condition - as long as the previously defined variable follows the condition of the for loop, then the following program will run Step Three of a basic for loop - Answers Increment - this changes the previously initialized variable so that the variable will increase or diminish as a counter Basic Structure of an If Statement - Answers if (boolean expression) { } What is the difference/importance of adding an "else" statement - Answers Using multiple if-statements would mean that every if-statement would have to run. Using and else or else if makes code more connected (more for readability) Define Comparison Operators - Answers Operators/symbols that call for the comparison between two values == - Answers equal to != - Answers not equal to - Answers greater than - Answers less than = - Answers greater than or equal to = - Answers less than or equal to Define Logical Operators - Answers Operators/symbols that call for a comparison between boolean values in a boolean expression ! - Answers not || - Answers or && - Answers and Basic Structure for Initializing a new shape - Answers var figure = new Shape (dimensions

Vista previa del contenido

JAVASCRIPT CERTIFICATION TEST QUESTIONS WITH CORRECT ANSWERS GRADED A+

Basic Structure of a Randomizer - Answers Math.Random();

Range of Math.Random(); - Answers 0 (inclusive) - 1 (exclusive)

How random are randomizers? - Answers Randomizers are not entirely random. They have
formulas to create a random number.

Overall name for Randomizers - Answers PRNG - Pseudo Random Number Generators

Basic Structure of a For Loop - Answers for (var i = 0; i < num; i++) {

}

Step One of a basic for loop - Answers Initializer - initialize the variable i as a counter

Step Two of a basic for loop - Answers Condition - as long as the previously defined variable
follows the condition of the for loop, then the following program will run

Step Three of a basic for loop - Answers Increment - this changes the previously initialized
variable so that the variable will increase or diminish as a counter

Basic Structure of an If Statement - Answers if (boolean expression) {

}

What is the difference/importance of adding an "else" statement - Answers Using multiple if-
statements would mean that every if-statement would have to run.

Using and else or else if makes code more connected (more for readability)

Define Comparison Operators - Answers Operators/symbols that call for the comparison
between two values

== - Answers equal to

!= - Answers not equal to

> - Answers greater than

< - Answers less than

>= - Answers greater than or equal to

<= - Answers less than or equal to

Define Logical Operators - Answers Operators/symbols that call for a comparison between
boolean values in a boolean expression

, ! - Answers not

|| - Answers or

&& - Answers and

Basic Structure for Initializing a new shape - Answers var figure = new Shape (dimensions
depending on shape);

figure.setPosition(x, y);

figure.setColor(Color.**);

add(figure);

Basic Structure for Initializing Text - Answers var txt = new Text(string in quotes);

txt.setPosition(x, y);

add(txt);

Positions taken for a Circle, Rectangle, and Text - Answers Circle positions are set to the center
point;

Rectangle positions are set to the top left corner;

Text positions are set to the bottom left corner;

Determinate loops - Answers Loops specified with a certain amount of times to be run.

Any loop where the user knows how many times the loop will run.

Example of a determinate loop - Answers For loop

Indeterminate Loops - Answers Loops not specified with a certain amount of times to be run.

Any loop where the user doesn't know how many times the loop will run.

Example of an indeterminate loop - Answers While loop

Basic Structure of a While Loop - Answers while (boolean expression) {

}

Define Loop and a Half - Answers a while loop with a break

Basic structure of a Loop and a Half - Answers while (boolean expression) {

if (boolean expression) {

Información del documento

Subido en
20 de noviembre de 2025
Número de páginas
7
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$10.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
joshuawesonga22
3.6
(15)
Vendido
147
Seguidores
2
Artículos
16166
Última venta
1 semana hace




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