100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

JAVASCRIPT FINAL EXAM REVIEW QUESTIONS WITH VERIFIED SOLUTIONS GRADED A+

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
20-11-2025
Written in
2025/2026

JAVASCRIPT FINAL EXAM REVIEW QUESTIONS WITH VERIFIED SOLUTIONS GRADED A+ Anywhere in the body of a web page - Answers Where are <form> </form> tags placed? submit, reset, & hidden - Answers Buttons that can be automatically created using the type attribute are: By email, to a javascript program, & to a server - Answers Which of the following are ways to submit form data? name - Answers When using a set of radio button, which attribute must be the same for all buttons in the set? shortString = longSr (6, 3); - Answers Which line of code should be used to make the following code snippet work? var longString = "Great day, isn't it?"; var shortString = ______________________ ("It's going ton rain to" + shortString); Which of the following will send form results from a form named "importantInfo" to the email address with the subject "Read this!" - Answers Which of the following will send form results from a form named "importantInfo" to the email address with the subject "Read this!" if (var charX.charAt[i] == "X"); - Answers Which line of code will check if any character in the string variable pword is the letter X and return true for the variable check? var check = false; for (i = 0; i < h; i++) { _____???_______ check = true; } the id attribute - Answers Given the following line of code, what does the this keyword refer to? <input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething()" /> tab index - Answers Which of the following sets or changes the tab order of form controls? onfocus = "setBlue('blue')" - Answers Which of the following will call a function named setBlue() when a text box with id = "blue" gets the focus? <a href="Javascript:doStuff()"> <img src = "redB"> </a> - Answers Which of the following will substitute an image named redB that is stored in the same place as the web page for a generic button? The doStuff() function is called when the button is clicked. ElementById("color_change").round = "blue"; - Answers Which of the following is the correct way to set a background color of blue to an HTML element with id = "color_change"?

Show more Read less
Institution
JAVASCRIPT
Course
JAVASCRIPT









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

Written for

Institution
JAVASCRIPT
Course
JAVASCRIPT

Document information

Uploaded on
November 20, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

JAVASCRIPT FINAL EXAM REVIEW QUESTIONS WITH VERIFIED SOLUTIONS GRADED A+

Anywhere in the body of a web page - Answers Where are <form> </form> tags placed?

submit, reset, & hidden - Answers Buttons that can be automatically created using the type
attribute are:

By email, to a javascript program, & to a server - Answers Which of the following are ways to
submit form data?

name - Answers When using a set of radio button, which attribute must be the same for all
buttons in the set?

shortString = longString.substr (6, 3); - Answers Which line of code should be used to make the
following code snippet work?

var longString = "Great day, isn't it?";

var shortString = ______________________

document.write("It's going ton rain to" + shortString);

Which of the following will send form results from a form named "importantInfo" to the email
address with the subject "Read this!" - Answers Which of the following will send
form results from a form named "importantInfo" to the email address with the
subject "Read this!"

if (var charX.charAt[i] == "X"); - Answers Which line of code will check if any character in the
string variable pword is the letter X and return true for the variable check?

var check = false;

for (i = 0; i < pword.length; i++)

{

_____???_______

check = true;

}

the id attribute - Answers Given the following line of code, what does the this keyword refer to?

<input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething(this.id)" />

tab index - Answers Which of the following sets or changes the tab order of form controls?

onfocus = "setBlue('blue')" - Answers Which of the following will call a function named setBlue()

, when a text box with id = "blue" gets the focus?

<a href="Javascript:doStuff()"> <img src = "redButton.jpg"> </a> - Answers Which of the
following will substitute an image named redButton.jpg that is stored in the same place as the
web page for a generic button? The doStuff() function is called when the button is clicked.

document.getElementById("color_change").style.background = "blue"; - Answers Which of the
following is the correct way to set a background color of blue to an HTML element with id =
"color_change"?

if(myName.length > 2 && myName.length < 11) - Answers Which of the following checks to see
if the number of characters in a given string named myName is greater than 2 and less than 11?

Radio Buttons - Answers _____ are used to allow users to select only one option at a time.

<form></form> - Answers A form using the ______ tag pair can be placed anywhere within a web
page.

event handler - Answers When a form is enhanced with JavaScript, an _____ must be used to
evoke the JavaScript code.

Common Gateway Interface (CGI) - Answers The _____ allows web pages to be generated as
executable files.

False - Answers CGI scripts are normally saved in a folder named cgi-bin that exists on every
client's hard drive.

name - Answers The property of each radio button in a group of radio buttons that must be the
same for each button is the _____ property.

checked - Answers The _____ property can be used to return the state of a checkbox to a
JavaScript function.

Today I will wear a gray shirt and blue pants. - Answers What will be displayed after this
program is coded and run?

var shirt = "blue";

var pants = "gray";

var clothes = wearIt(shirt, pants);

function wearIt( x, y)

{

var myOutfit = "Today I will wear a " + pants + 8

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
joshuawesonga22 Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
26
Member since
7 months
Number of followers
1
Documents
9762
Last sold
1 hour ago
Tutor Wes

Hi there! I'm Tutor Wes, a dedicated tutor with a passion for sharing knowledge and helping others succeed academically. All my notes are carefully organized, detailed, and easy to understand. Whether you're preparing for exams, catching up on lectures, or looking for clear summaries, you'll find useful study materials here. Let’s succeed together!

3.3

3 reviews

5
1
4
0
3
1
2
1
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

Frequently asked questions