0% found this document useful (0 votes)
9 views3 pages

TMP 1c1c6f75

The document contains assignment questions related to web development topics like DOM, jQuery, AJAX, PHP and MySQL. It includes 3 sets of questions allocated to students based on their university roll numbers. Section A contains short questions, Section B contains longer questions requiring explanations and Section C focuses on PHP and database questions.

Uploaded by

Disha Davesar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

TMP 1c1c6f75

The document contains assignment questions related to web development topics like DOM, jQuery, AJAX, PHP and MySQL. It includes 3 sets of questions allocated to students based on their university roll numbers. Section A contains short questions, Section B contains longer questions requiring explanations and Section C focuses on PHP and database questions.

Uploaded by

Disha Davesar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

B.

Tech (4th Sem) DEPARTMENT OF


ASSIGNMENT-2 COMPUTER SCIENCE
Web Development AND ENGINEERING
AGCS-21405

Question Sets
Set 1: Question Number 2,3,11,12,22,23,31,38, 44
Set 2: Question Number 5,6,15,17,24,25,34,40,46
Set 3: Question Number 9,10,19,20,29,30,35,41,47

Allocation of Question Sets to students


Set Uni. Roll No.
2233554, 2233555, 2233557, 2233558, 2233565, 2233567, 2233568, 2233571, 2233576,
1 2233577, 2233583, 2233585, 2233590, 2233591, 2233592, 2233598, 2233603, 2233607,
2233608, 2233610, 2233617, 22336218, 2233623, 2233625
2233550, 2233551, 2233556, 2233562, 2233563, 2233570, 2233573, 2233574, 2233575,
2 2233578, 2233580, 2233582, 2233589, 2233594, 2233599, 2233604, 2233612, 2233613,
2233615, 2233616, 2233619, 2233620, 2233622
2233552, 2233560, 2233561, 2233564, 2233566, 2233572, 2233579, 2233581, 2233586,
3 2233587, 2233588, 2233595, 2233600, 2233601, 2233602, 2233605, 2233606, 2233609,
2233611, 2233621, 2233626

Section – A (2 Marks each)


Q. No Question CO
1 List the various methods of finding HTML elements using DOM.
2 What are the different fields used in a cookie?
3 What is the advantage of using hosted jQuery from Google or Microsoft?
4 Explain $(document).ready() function.
5 Name and explain the attribute used to extend the lifetime of a cookie. CO-1
6 Write the syntax of selector in jQuery.
7 Write a JavaScript function to check whether the given values are the same
or not.
8 Create a program that changes the background color of an HTML element.
9 Write JavaScript code to validate phone number.
10 WAP which will show the hover event of jQuery.
11 Name the various XMLHttpRequest Object Methods.
12 What are the various steps involved in the working of AJAX?
13 Give the names of web applications that uses AJAX.
14 Define the function of XMLHttpRequest Object. CO-2
15 How can we cancel the XMLHttpRequest in AJAX?
16 Write a program in which you have to use the mouse click events by using
methods of DOM.
17 Differentiate between asynchronous and synchronous request in AJAX.
18 Give the syntax of open () method used for XMLHttpRequest.
19 What is the difference between the classic web application model and ajax
web application model?
20 Enlist the various XMLHttpRequest Object properties.
21 Difference between echo and print in PHP?
22 Give names of different types of errors available in PHP.
23 Differentiate between “==” & “===” operator in PHP.
24 Comment on “PHP is a Loosely Typed Language”.
25 Give the names of various sort functions used for array in PHP.
26 Write a note on PHP & Mysql connectivity.
27 Write a MySQL query to create a simple table “countries” including columns CO-3
country_id, country_name and region_id.
28 Describe different array functions used in PHP.
29. Write a PHP script to print items stored in an array using for each loop.
30. Write a program in PHP to add two numbers using superglobals.

Section – B (4 Marks each)

Q. No Question CO
31 Explain the various events & effects used in jQuery.
32 Write the program for the creation & deletion of cookie.
33 Elaborate different methods used for retrieving objects in JavaScript DOM with
a suitable example.
34 Write a program in which we provide choices of color and pass the selected
color value to the cookie. Now, cookie stores the last choice of a user in a
browser. So, on reloading the web page, the users last choice will be shown
on the screen.
35 Create a program to add a new element to the HTML DOM at the last
position with output.
36 Create a form using validations in JavaScript, you need to validate the name
and password. The name cannot be empty and the password cannot be less
than 6 characters long and the user will not be forwarded to the next page
until the given values are correct.

CO-1

37 What is a function of GET and POST Methods in AJAX? Differentiate


between the Get and Post methods with help of an examples.
38 Explain the working mechanism of AJAX with diagram. Also, explain
when we use AJAX in web designing with the help of suitable program.
39 List the advantages of using Ajax in web development. When should we
use AJAX GET request and AJAX POST request.
40 Write a program to change the content of Web page by sending a request to
the server using GET request method with output.
41 Write a program to demonstrate the POST request method for sending
request to server with output. CO-2
42 Explain the disadvantages of Ajax. Explain the different ways of using
open () method for XMLHttpRequest.
43 How the database is accessed in PHP? Explain with a suitable example.
44 Elaborate various MySql functions used in PHP.
45 Write a PHP code to display day of week for any specified date.
e.g.
INPUT: 15/08/2018
OUTPUT: Monday,15th August,2018
46 Explain decision and looping in PHP taking suitable examples.
47 Write a program for following output in which on click of submit button
data in form field save in database. CO-3

48 Write a code for the following output in which on click of various button’s
changes reflect in the student database.

You might also like