Javascript Final Exam Study Questions with Complete Solutions
- mean answers comes before the questions** Anywhere in the body of a web page - Where are <form> </form> tags placed? submit, reset, & hidden - Buttons that can be automatically created using the type attribute are: By email, to a javascript program, & to a server - Which of the following are ways to submit form data? name - When using a set of radio button, which attribute must be the same for all buttons in the set? shortString = longSr (6, 3); - 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!" - 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"); - 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 - Given the following line of code, what does the this keyword refer to? <input type = "button" name = "murgatroyd" id = "Mortimer" onclick = "doSomething()" /> tab index - Which of the following sets or changes the tab order of form controls? onfocus = "setBlue('blue')" - 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> - 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"; - Which of the following is the correct way to set a background color of blue to an HTML element with id = "color_change"? if(myNh > 2 && myNh < 11) - 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 - _____ are used to allow users to select only one option at a time. <form></form> - A form using the ______ tag pair can be placed anywhere within a web page. event handler - When a form is enhanced with JavaScript, an ___
Schule, Studium & Fach
- Hochschule
- Javascript
- Kurs
- Javascript
Dokument Information
- Hochgeladen auf
- 10. juni 2024
- Anzahl der Seiten
- 12
- geschrieben in
- 2023/2024
- Typ
- Prüfung
- Enthält
- Fragen & Antworten
Themen
-
javascript final exam study questions with comple