0% found this document useful (0 votes)
7 views

Assignment

The document outlines a series of assignments covering various web technologies including PHP, XML, JavaScript, AJAX, and CodeIgniter. Each assignment contains questions of varying marks that test knowledge on topics such as session handling, XML structure, JavaScript functions, AJAX applications, and the MVC architecture. The assignments are structured to assess both theoretical understanding and practical coding skills.

Uploaded by

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

Assignment

The document outlines a series of assignments covering various web technologies including PHP, XML, JavaScript, AJAX, and CodeIgniter. Each assignment contains questions of varying marks that test knowledge on topics such as session handling, XML structure, JavaScript functions, AJAX applications, and the MVC architecture. The assignments are structured to assess both theoretical understanding and practical coding skills.

Uploaded by

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

Assignment 1

Introduction to Web Techniques


Q. Answer
1 Mark

1. Which function is used to print an error message and exit from current code?
2. What is sticky form?
3. Which function is used for page redirecting?
4. How to set response header in PHP?
5. Write the elements of global array $_SERVER.
6. Which function is used to create cookie in PHP? Give syntax of it.
7. Which function is used to remove all global session variables?
8. Which information is stored in $_FILES?
9. List Predefine Variables in PHP
10. Define Cookies
11. Define Session

2 Marks

1. Discuss differences between GET and POST method.


2. Explain any five elements of $_server variable.
3. Explain the concept of session handling with example.
4. How to start and destroy session in PHP? Give syntax.
5. What is the significance of POST method?
6. What is session? How to start the new session?

3 Marks

1. Explain use of setcookie () function with its arguments.

4 Marks

1. Which are the fields used in cookies?


2. What are different techniques to maintain state in PHP?
3. Write a php program to strore current date-time in COOKIE and display last visited on”. date-
time on the webpage upon reopening of the same page.
Assignment 2
XML
1 Mark

1. c) XML Parser cannot alter documents or create new documents. Justify True or False.
2. What are XML namespaces?
3. Whether root element is required for XML file? If so, how many root elements are required?
4. What are different values of readyState property of XMLHttpRequest?
5. List out parts of XML document structure.
6. What are the characteristics of XML?
7. XML tags are case sensitive. Justify true of false.
8. What is the use of XML Http Request object?

2 Marks

1. d) Explain the structure of well-formed XML document.


2. What are different rules to make XML document well-formed?
3. Give relationship between XML and PHP.

3 Marks

1. Write XML syntax rules.

4 Marks

1. c) What is XML parser? Explain it with its types.


2. Suppose following books.xml is loaded into xmlDoc. Get the first element and change the
''category'' attribute value to “food” using XML DOM.
Assignment 3
JAVASCRIPT & jQuery
1 Marks

1. d) What is DOM?
2. e) How the variables declared in Javascript?
3. f) What is JQuery?
4. Give any two limitations of JavaScript.
5. What is the use of iSNAN() function in Java Script?
6. Write the primitive datatypes in JavaScript

2 Marks

1. List any four datatypes that JavaScript support with its usage.
2. What is the scope of variable in JavaScript?

3 Marks

1. b) What are Query selectors? Explain in brief

4 Marks

1. Write a JavaScript code to display message - ‘Exams are near, prepare well for it” using alert,
prompt and confirm boxes. Accept proper input from user and display messages accordingly.
2. Write a php program to add or append in paragraph text and also in the numbered (ordered)
list in a given HTML document using jQuery selectors.
3. Explain the JavaScript confirm dialog box with suitable example.
4. Design the HTML form to accept Employee name, Age and Mobile no. and perform the
following validation using Java Script: i) No field should be empty. ii) Mobile no. must contain
10 digits
5. Write a JavaScript code to accept username and password validate it with username should
not be null and password should be at least 6 digit long.
Assignment 4
AJAX
1 Mark

Q. Answer the Following

1. g) Give any two applications of AJAX.


2. h) Which object is Ajax make web page interactive?
3. Write any two applications of using AJAX
4. What is Ajax?

2 Marks

1. Draw AJAX web application model.


2. Explain Synchronous request to the server in Ajax

4 Marks

1. Draw and explain AJAX web application module.


2. What are the advantages and disadvantages of AJAX?
3. Write an Ajax program to search Student Name according to the character typed and display
list using array.
4. Write an AJAX program to display list of countries stored in an array on clicking OK button.
5. Create student table as follows student (sno. sname, per). Write Ajax program to select the
student name and print the selected student’s details
6.

Assignment 5
Code Igniter
1 Marks

Q. Answer the following Questions

1. What is Code Igniter?


2. Which function is used for page redirection in codeIgniter?

2 Marks

1. What is MVC?
2. What is page redirecting? Write down syntax of the function used for page redirection

4 Marks

1. Explain the workflow of MVC Architecture.


2. Explain CodeIgniter architecture with suitable diagram.

3 Marks

1. Write down the steps to integrate external CSS and JS file in CodeIgniter. Give example
2. Explain MVC framework.

You might also like