Download presentation
Presentation is loading. Please wait.
Published byJunior Simon Modified over 9 years ago
1
Where does PHP code get executed?
2
Where does JavaScript get executed?
3
There are many alternatives to PHP such as Ruby, Python, ASP, etc. What are the alternatives to JavaScript?
4
Is jQuery a language? Explain.
5
The jQuery selector syntax $(“#myid”) is modeled after which language?
6
Which one of these is pure JavaScript and which is jQuery a.document.getElementById(“x”).setAttribute(“style”, “color: red”); b.$(“#x”).css(“color”, “red”);
7
Why is the jQuery considered “better?” List two reasons. Why is the pure JavaScript “better?” List two reasons a.document.getElementById(“x”).setAttribute(“style”, “color: red”); b.$(“#x”).css(“color”, “red”);
8
Document.getElementById(“x”).setAttribute(“style”, “color: red”); 1. Wordier 2. Easier to make difficult to debug syntax errors $(“#x”).css(“color”, “red”); 1. Requires including jquery.js 2. Easier to make difficult to debug syntax errors
9
Which of these is most likely PHP a.$x b.$(“x”) c.var x
10
Identify the HTML, CSS and JavaScript in this code OK
11
Identify the PHP HTML, CSS and JavaScript in this code echo ‘ ’.$label.’ ’;
12
In JavaScript why is it better to apply an event listener or event handler, rather than use an attribute as show below? OK
13
More generally why is it important to separate HTML and JavaScript?
14
Where can JavaScript code be defined? a.In a tag anywhere in an HTML document. b.Directly in the of an HTML document c.In a separate “.js” file that is then included using the tag. d.In certain HTML attributes such as “onclick” or “onload” e.In a PHP file, assuming the JavaScript code is properly outputted inside a web page
15
Where would you store a user’s password in a typical web application a.In a file on the server b.In a database table, hopefully an encrypted field c.As a PHP variable d.In a $_SESSION variable e.In the browser cookie f.As a JavaScript variable
16
Where would you NOT store a user’s current running score in a typical web- based game a.In a file on the server b.In a database table, hopefully an encrypted field c.As a PHP variable d.In a $_SESSION variable e.In the browser cookie f.As a JavaScript variable
17
Where would you store a user’s historical high scores in a typical web- based game a.In a file on the server b.In a database table, hopefully an encrypted field c.As a PHP variable d.In a $_SESSION variable e.In the browser cookie f.As a JavaScript variable
18
Which language allows us to select, delete, insert and update information that is stored in a web application's underlying database? a.Circle one: Front-end Back-end Communication
19
Which framework is used to pass information between a web server and web browser without needing to refresh the entire web page? a.Circle one: Front-end Back-end Communication
20
Which HTML attribute is primarily used to apply CSS to two or more elements so they share the same style?
21
Which HTML attribute is used by JavaScript to get a unique element so it can be fetched/manipulated?
22
Which HTML attribute is used to identify form elements for traditional GET and POST form submission?
23
It is often better to generate HTML with a program rather than type it manually (hard coding), even for things that are not dynamic, i.e., will not change. What is one of the major advantages of creating HTML code programmatically that has nothing to do with the content being dynamic?
24
Write the code so that any element with class="important" will display the alert message "this is important" if the element is clicked.
25
In general, what are the main reasons for using client-side processing instead of server- side processing?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.