Web Question Bank
Web Question Bank
Marks
Questions
SL. MODULE 1
NO.
1. 1Explain the following tags with syntax and examples.
2 Marks each
a)<p> b) <strong> c) Headings d) <img> g) <img> h) <a> i) <br /> j) <pre>
2. 2How lists are handled in HTML? Design an HTML code to illustrate the nested list. 9M
3. Explain standard HTML document structure 6M
4. Create a document to show the linking to a part of another document and explain.
5. Explain the selector forms with an example
6M
What are selectors? List and explain selectors with an example.
6. Why are lists used in a web pages? With an example, explain different types of lists available in XHTML. 6M
7. What are selectors? Explain with example different types of selector forms. 8M
8. Explain the different levels of style sheets available in CSS. 4M
9. Write the history of markup languages 4M
10. Write the difference between XHTML and HTML5 4M
11. What are the three aims of HTML 5 and expand the following HTML, XML, DOCTYPE,PHP,
8M
WHATWG
12. Define CSS and list out its benefits with explanation 8M
MODULE 2
1. What are the different ways of passing information via the URL
2. Which widgets are created using <input> tag? Explain with example. 6M
3. Explain the tags, i) select iii) Textarea iv) div 8M
4. Explain the following with respect to XHTML forms:
a) Textbox
b) Checkbox
c) Radio button
d) Menu
5.
7M
7.
8M
8. Create an HTML document that includes alteast two images and enough text to precede the images, flow
4M
around them (one on left and one on right) and continue after the last image (Note : Use CSS tags).
9. Create XHTML document that contains student information VIZ. Name, usn, subject1, subject2,
subject3. Insert values for each student in five rows. Also row background of each student should be in the 8M
different color.
10. Explain the following, with respect to table creation in XHTML documents:
a) table, tr, th and td tags
b) align and valign attributes..
c) rowspan and colspan attributes.
d) Cell padding and cell spacing attributes
11. Explain the following with example. I) element visibility ii) absolute positioning. 8M
12. Explain positioning of elements. 8M
13. Explain the visibility property. How are they used?
14. What is the difference between relative and absolute positioning.
15. What does floating an element do in CSS? How do you float an element? 8M
16. Apply the following table elements to display the following table: 8M
17. Explain with a neat diagram how form works? Discuss about query string and micro formats. 8M
18. Identify the approaches to CSS layouts and explain them in detail. 8M
19. What is responsive design? Why its important? Explain in detail 8M
20. Explain the float property of CSS. How do you create multiple columns using float 6M
21. How to change the properties of elements using innerHTML and style (node) properties. 8M
MODULE 3
1. What are the different ways of accessing HTML document elements in javascript. 8M
2. What are block-level and inline elements 4M
3. Illustrate Javascript program handling f events from button element. 6M
4. Explain the different control statements used in PHP with a program 7M
5. Write a java script to compare two passwords 4M
6. Describe briefly the major uses of Javascript on the client side. 6M
7. Write a javascript to return the leftmost vowel of the string 8M
8. Describe briefly the major differences between java and javascript. 4M
9. Describe the different ways an array object can be created in javascript. Explain the array methods with
12M
example.
10. Write a javascript to generate first 4 fibonacci numbers. 4M
11. Discuss the advantages and disadvantages of client-side scripting. 8M
12. Write a javascript code that displays text “VTU BELAGAVI” with increasing font size in the interval of 8M
100ms in blue color, when the font size reaches 50 pt. it should stop increasing.
13. With a neat diagram, explain client and server script execution 8M
14. Write a PHP program to greet the user based on time 8M
15. Compare the server-side technologies in detail 8M
16. What are software layers? What benefits do they provide? Explain in detail. 8M
17. What is javascript and listener? Discuss the advantages and disadvantages of client side scripting 8M
18. Write a PHP program to demonstrate the session. Program: Store page view count on refresh. 8M
19. Discuss the datatypes of PHP
20. Explain the writing of output in PHP. 8M
21. Discuss the alternative syntax of control structure 10M
22. Discuss the use of global keyword in PHP 6M
23. Explain with example inline, external and embedded scripting
24. How are exceptions handled in javascript. Explain the throw keyword 8M
25. What are the ways of declaring and accessing arrays in javascript. 6M
26. List and explain the different events – i) frame events ii) mouse events iii) keybords events iv) form events
MODULE IV
1. Explain $_GET and $_POST superglobal arrays 8M
2. How do you read or write a file on the server from PHP? Give example. 8M
3. Write a PHP program to create a class STUDENT with the following specification. 8M
Data members : Name, Roll number, Average marks
Member function : Read abd wrute
Use the above specification to read and print the information of 2 students.
4. How do you achieve data encapsulation in PHP? Give example 8M
5. What are superglobal arrays? List them & explain
6. Define constructor and discuss the concept of inheritance, polymorphism and object interface with respect 8M
to OOP. (8 marks)
7. Explain with an example, the two basic techniques for read/write files in PHP (8 marks) 8M
8. Write the PHP code to validate phone number. (8 marks) 8M
9. How is array defined in PHP? Explain the array operations of PHP.
10. Explain the process of populating $_GET superglobal array
11. Explain the process of populating $_POST superglobal array.
12. Explain the $_SERVER array
13. Explain the use of $_FILES array.
14. Explain how the files are uploaded from the browser and values are accessed at the server
15. How is the size of file restricted in PHP
MODULE V
1. What is a cookie? how cookie is used in PHP? 8M
2. Why is state is a problem for web applications? Explain. 8M
3. What does $( ) short and stand for in JQuery? Explain any 3 JQuery form selectors. 8M
4. Write the DTD for the following XML code: 8M