Presentation is loading. Please wait.

Presentation is loading. Please wait.

Review and Practice for Final exam. Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (15 questions.

Similar presentations


Presentation on theme: "Review and Practice for Final exam. Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (15 questions."— Presentation transcript:

1 Review and Practice for Final exam

2 Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (15 questions in 15 minutes), close book. Second part: solve two problems using computers in Hyer Hall Lab, open book.

3 Review for final exam – multiple choice questions What object is at the top of all browser object models? a. A window b. A document c. A form d. A button

4 Review for final exam – multiple choice questions What object is at the top of all browser object models? a. A window b. A document c. A form d. A button

5 Questions The event handler onmouseover is triggered with which of the following? a. The event handler onmouseover is triggered when the mouse moves on an element and then off. b. The event handler onmouseover is triggered when the mouse moves off an element. c. The event handler onmouseover is triggered when the mouse moves on an element. d. The event handler onmouseover is triggered when the mouse moves around the element.

6 Questions The event handler onmouseover is triggered with which of the following? a. The event handler onmouseover is triggered when the mouse moves on an element and then off. b. The event handler onmouseover is triggered when the mouse moves off an element. c. The event handler onmouseover is triggered when the mouse moves on an element. d. The event handler onmouseover is triggered when the mouse moves around the element.

7 Questions What letter values would be included for the following variable, which will be used for validation purposes: var validCharacters = /[a-z]/? a.Only A and Z would be included. b. Both uppercase and lowercase letters would be included. c. Only lowercase letters A-Z would be included. d. Only uppercase letters A-Z would be included.

8 Questions What letter values would be included for the following variable, which will be used for validation purposes: var validCharacters = /[a-z]/? a.Only A and Z would be included. b. Both uppercase and lowercase letters would be included. c. Only lowercase letters A-Z would be included. d. Only uppercase letters A-Z would be included.

9 Questions When using the RegExp object a /i indicates that the matching is case ________ a. Sensitive b. Insensitive

10 Questions When using the RegExp object a /i indicates that the matching is case ________ a. Sensitive b. Insensitive

11 Questions A user can do which of the following with cookies? a. Read b. Delete c. Update d. All of the above.

12 Questions A user can do which of the following with cookies? a. Read b. Delete c. Update d. All of the above.

13 Questions The following code: document.write(“ ” + document.cookie + “ ”); does what? a. Writes the current value of the cookie on the Browser. b. Writes the current value of the cookie to memory only. c. Writes the current value of the cookie to a file on the PC. d. Writes the current value of the cookie on the server.

14 Questions The following code: document.write(“ ” + document.cookie + “ ”); does what? a. Writes the current value of the cookie on the Browser. b. Writes the current value of the cookie to memory only. c. Writes the current value of the cookie to a file on the PC. d. Writes the current value of the cookie on the server.

15 Questions What symbol separates cookie parameters? a.A semicolon. b.A colon. c. A comma. d. A period.

16 Questions What symbol separates cookie parameters? a.A semicolon. b.A colon. c. A comma. d. A period.

17 Questions Which of the following is true concerning a function to parse the data in a cookie? a.JavaScript has a built-in function called getData(). b.JavaScript has a built-in function called getCookie(). c.JavaScript has a built-in function called getString(). d.JavaScript does not have a built-in function.

18 Questions Which of the following is true concerning a function to parse the data in a cookie? a.JavaScript has a built-in function called getData(). b.JavaScript has a built-in function called getCookie(). c.JavaScript has a built-in function called getString(). d.JavaScript does not have a built-in function.

19 Questions Which is true of JavaScript? A. JavaScript is not object oriented B. JavaScript employs class-based inheritance C. JavaScript employs prototype-based inheritance D. JavaScript supports pointers

20 Questions Which is true of JavaScript? A. JavaScript is not object oriented B. JavaScript employs class-based inheritance C. JavaScript employs prototype-based inheritance D. JavaScript supports pointers

21 Questions What is the document property for changing the background color in JavaScript? A. backgroundColor B. bgColor C. bkColor D. pageColor

22 Questions What is the document property for changing the background color in JavaScript? A. backgroundColor B. bgColor C. bkColor D. pageColor

23 Review for final exam – problem solving problems Step 1: Create this form Create a function to validate the expiration date. When the user presses the Validate button, this function should be called to validate the month and year. If the value of the year entered is less than the current year, the date entered is invalid. If the value of the year entered is equal to the current year and the value of the month entered is less than the value of the current month, the date entered is invalid. If the month entered is less than 1 or greater than 12, the date entered is invalid.

24 Javascript technical interview Questions 1. What does isNaN function do? 2. What are JavaScript data types? Return true if the argument is not a number. Numeric, String, Boolean, Null, Undefined

25 Javascript technical interview Questions 3.How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site? -make the page more immediately interactive without having to submit the script to the server

26 Javascript technical interview questions 4. Where are cookies actually stored ? 5. How to comment javascript code? - at client site - Browser-dependent Use // for line comments and /* */ for block comments

27 Javascript interview questions 6. What is the difference between undefined value and null value? 7. How to read and write a file using javascript? Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null. You can NOT read and write from/to a file directly Using client-side javascript code only But you can combine javascript + java code to do this

28 Javascript technical questions 8. What can javascript programs do? Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected Date and Time Handling

29 Javascript technical interview questions How to embed javascript in a web page? How to create a function in Javascript? javascript code can be embedded in a web page between tags function (parameters) { }

30 Practice for final exam You are a set of 10 favorite songs of three different genres (country, pop, and rock). You are asked to create a form that display the list of songs based from genre.


Download ppt "Review and Practice for Final exam. Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (15 questions."

Similar presentations


Ads by Google