Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Exam (elaborations) Assessment Material 321098

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
08-07-2024
Written in
2023/2024

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

Show more Read less
Institution
Assessment Material 321098
Course
Assessment Material 321098









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Assessment Material 321098
Course
Assessment Material 321098

Document information

Uploaded on
July 8, 2024
Number of pages
9
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
leonardkinyua

Get to know the seller

Seller avatar
leonardkinyua Abraham Lincoln University, School Of Law
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
323
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions