Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Examen

Exam (elaborations) Assessment Material 321098

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

As before, this review is not a “practice test”— it is longer than the exam will be and covers more material. Some of the questions may be harder and/or more time­consuming than the exam questions. Furthermore, this review is not exhaustive and there may be questions on the test that are not exhibited here. These questions are here for you to think about and to trigger your own thoughtful inquiry into the material. Review the lecture notes and textbook reading in an inquisitive way: not only “do I understand this,” but “can I explain it,” and “can I use it” and even “what bits of syntax are tricky here?” In addition to answering these questions, we recommend studying your midterm exam and homework problems, working through past problems and seeking assistance to understand solutions you did not understand the first time around. Finally, the final exam is cumulative, so don’t forget to review old material, even HTML! Q1: Fill in the following sentences: A. Each line of JavaScript code is called a ______________. B. You can concatenate __________ together with the + operator. C. All JavaScript statements end with a _______________. D. To link to an external JavaScript file from HTML, you need the _______ attribute for the scriptelement. E. OR(||)and AND(&&)are ______________ operators. F. A parameter acts like a _____________ in the body of a function. Q2: Why do we need variables in a JavaScript program? Explain how they are used throughout a program. Q3: What does it mean in JavaScript when something is displayed as “undefined” in the console? Q4: Is a relational operator, such as =, used in the same kind of expressions as a logical operator, such as &&? Explain Q5:Answer the following questions without using the console. You can use the console to check your value only after you have tried to complete the questions by hand. Show your work. vartemp=81; varwillRain=true; varhumid=(temp80&&willRain==true); A. What is the value of humid? _____________ varguess=6; varisValid=(guess=0&&guess=6); B. What is the value of isValid? _____________ varkB=1287; vartooBig=(kB1000); varurgent=true; varsendFile=(urgent==true||tooBig==false); C. What is the value of sendFile? _____________ Q6. Find all the bugs in this JavaScript code: //Testforjokes varjoke="JavaScriptwalkedintoabar...'; vartoldJoke="false"; var$punchline= "Betterwatchoutforthosesemi-colons." var%entage=20; varresult if(toldJoke==true){ Alert($punchline); }else alert(joke); } Q7: Declare a variable that will store an array of string values. Explain every component of the


Información del documento

Subido en
8 de julio de 2024
Número de páginas
9
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$9.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

Vendido
0
Seguidores
0
Artículos
322
Última venta
-


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

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