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.

Slides:



Advertisements
Similar presentations
Introducing JavaScript
Advertisements

Essentials for Design JavaScript Level One Michael Brooks
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
The Web Warrior Guide to Web Design Technologies
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
1 HCI 201 JavaScript - Part 1. 2 Static web pages l Static pages: what we have worked with so far l HTML tags tell the browser what to do with the content.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
JavaScript 101 Lesson 5: Introduction to Events. Lesson Topics Event driven programming Events and event handlers The onClick event handler for hyperlinks.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
Web Development & Design Foundations with XHTML Chapter 14 Key Concepts.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 14 Key Concepts 1 Copyright © Terry Felke-Morris.
Introduction to scripting
Javascript and the Web Whys and Hows of Javascript.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
Server vs Client-side validation. JavaScript JavaScript is an object-based language. JavaScript is based on manipulating objects by modifying an object’s.
Introduction to JavaScript. JavaScript Facts A scripting language - not compiled but interpreted line by line at run-time. Platform independent. It is.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Generations of Programming Languages First generation  Machine Language Second Generation  Assembly Language Third Generation  Procedural language such.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
JavaScript Part 1.
JavaScript 1. What is JavaScript? JavaScript allows web authors to create dynamic pages that react to user interaction. It is an Object-based because.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 14 Key Concepts 1 Copyright © Terry Felke-Morris.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
Chapter 8 Cookies And Security JavaScript, Third Edition.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
1 JavaScript in Context. Server-Side Programming.
Introduction to JavaScript Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 1.
Using Client-Side Scripts to Enhance Web Applications 1.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Regular Expression (continue) and Cookies. Quick Review What letter values would be included for the following variable, which will be used for validation.
Introduction to Client-Side Web Development Introduction to Client-Side programming using JavaScript JavaScript; application examples 10 th February 2005.
CS346 Javascript -3 Module 3 JavaScript Variables.
JavaScript Syntax, how to use it in a HTML document
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 8 Scott Marino.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
4. Javascript M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307) Desain.
1 JavaScript in Context. Server-Side Programming.
Making dynamic pages with javascript Lecture 1. Java script java versus javascript Javascript is a scripting language that will allow you to add real.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Tutorial 11 1 JavaScript Operators and Expressions.
Review and Practice for Final exam. Final exam Date: December 20, 3:15 – 5:15pm Format: Two parts: First part: multiple-choice questions (13 questions.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Web Development & Design Foundations with HTML5
JavaScript is a programming language designed for Web pages.
Web Development & Design Foundations with HTML5 7th Edition
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
14 A Brief Look at JavaScript and jQuery.
WEB PROGRAMMING JavaScript.
PHP.
JavaScript What is JavaScript? What can JavaScript do?
JavaScript What is JavaScript? What can JavaScript do?
Tutorial 10: Programming with javascript
JavaScript Basics What is JavaScript?
JavaScript is a scripting language designed for Web pages by Netscape.
JavaScript: Introduction to Scripting
Presentation transcript:

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 in 15 minutes), close book. Second part: solve two problems using computers in Hyer Hall Lab, open book.

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

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

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.

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.

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.

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.

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

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

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

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

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.

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.

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

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

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.

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.

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

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

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

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

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.

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

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

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

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

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

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) { }

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.