• ¿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 5 páginas
Examen

CodeHS Questions and answers With complete solution 100% pass

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

CodeHS Questions and answers With complete solution 100% passCodeHS Questions and answers With complete solution 100% passCodeHS Questions and answers With complete solution 100% passCodeHS Questions and answers With complete solution 100% passCodeHS Questions and answers With complete solution 100% pass

Vista previa del contenido

CodeHS Questions and answers With complete
solution 100% pass

What is the proper function to call to print to the screen? - Correct Answers println
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! What keyword do you need to use to define a variable in JavaScript? - Correct Answers var
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! What function do you need to call to ask the user of the program to enter text? - Correct Answers
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! readLine



II! println(2 + 2); - Correct Answers 4 II! II! II! II! II! II! II!




II! What symbol do you use to do division in JavaScript? - Correct Answers /
II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! What symbol do you use to do multiplication in JavaScript? - Correct Answers *
II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! In the following code, we create a circle and add it to the screen. What is the meaning of the x variable?
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




var x = 20; II! II! II!




var circle = new Circle(x);
II! II! II! II!




add(circle); - Correct Answers The radius of the circle II! II! II! II! II! II! II! II! II!




II! What are the coordinates of the top right corner of the screen? - Correct Answers getWidth(), 0
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! Which of the following is not a valid value for a boolean? - Correct Answers yes
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! What symbol represents the and operator in JavaScript? - Correct Answers &&
II! II! II! II! II! II! II! II! II! II! II! II!




II! What symbol represents the or operator in JavaScript? - Correct Answers ||
II! II! II! II! II! II! II! II! II! II! II! II!

, II! After the following code runs, what is the value of isWeekend?
II! II! II! II! II! II! II! II! II! II!




var isSaturday = true; II! II! II!




var isSunday = false; II! II! II!




var isWeekend = isSaturday || isSunday; - Correct Answers true
II! II! II! II! II! II! II! II! II! II!




II! What is the proper way to compare if two values are equal in a boolean expression in JavaScript? -
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! Correct Answers == II! II!




II! What is the proper operator for "not equals" in JavaScript? - Correct Answers !=
II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! What kind of statement allows us to run a block code only if a certain condition is true? - Correct Answers
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! if statement
II!




II! What kind of statement allows us to run one block of code if one condition is true, and a separate block of
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! code otherwise? - Correct Answers if/else statement
II! II! II! II! II! II! II!




II! How can we check if a variable num is even? - Correct Answers (num % 2 == 0) will be true
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




II! How many times will the following program print "hello"?
II! II! II! II! II! II! II! II!




for (var i = 0; i < 5; i++) {
II! II! II! II! II! II! II! II! II!




II! println("hello");

} - Correct Answers 5
II! II! II! II! II!




II! In the following code, what will be the last number to print to the screen before the program finishes?
II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II! II!




for (var i = 0; i < 10; i++) {
II! II! II! II! II! II! II! II! II!




II! if (i % 2 == 0) {
II! II! II! II! II! II!

Información del documento

Subido en
12 de febrero de 2025
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.49

¿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.
STUVEX
3.8
(123)
Vendido
838
Seguidores
314
Artículos
16284
Ú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