0% found this document useful (0 votes)
42 views6 pages

4.WP Question Bank

The document is a question bank for the Web Programming course at Ahmedabad Institute of Technology for the academic year 2024-2025, prepared by Prof. Binoli Shah. It includes various questions categorized into units covering topics such as web design, HTML, CSS, JavaScript, PHP, and database programming. Each question is assigned specific marks, indicating its importance and complexity.

Uploaded by

meshva
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)
42 views6 pages

4.WP Question Bank

The document is a question bank for the Web Programming course at Ahmedabad Institute of Technology for the academic year 2024-2025, prepared by Prof. Binoli Shah. It includes various questions categorized into units covering topics such as web design, HTML, CSS, JavaScript, PHP, and database programming. Each question is assigned specific marks, indicating its importance and complexity.

Uploaded by

meshva
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/ 6

Ahmedabad Institute of Technology

CE Department
Web Programming (3160713)
Question Bank
Year: 2024-2025
Prepared By: - Prof. Binoli Shah

Unit 1: Introduction WEB& Web Design


Sr. No. Question Marks
1. Explain different design issues at the time of designing an effective 4/7
website.
2. List and explain the website design principles. 3
3. Explain Architecture of Browser. 7
4. What is HTTP? What are HTTP request and response? 7
5. Difference Between GET and POST. 3/7
Difference between web browser and web server
6. Give full name of followings: 7
1) DOM 2) TCP 3) RSS 4) ISP 5) XSD 6) HTTP
7. What are frames? List out its advantages and disadvantages. 4
8. List features of Web 2.0 3
9. Explain the points which should be considered for planning a website. 3
10. Discuss how display resolution affects web site design. 4
11. What is HTTP? Explain HTTP Header with example. 7

Unit 2: HTML and CSS


Sr. No. Question Marks
12. What do you mean by meta tags? Show their meaning and use with 7
example. Also show how can following be achieved with the help of
Metadata?
a. Stop the page from being listed.
b. Set an expiration date
c. Stop the browser from caching a page.
d. Give a context for date so that it can take format DD- MM-YYYY
13. What is an HTML form tag? Discuss the different form attributes and 7
design a simple form to register for new user including user_name,
password, email, mobile number, gender and hobbies.
14. What is the different between HTML and XHTML? Explain ordered and 7
unordered list with example.
15. What is HTML table? Explain table element rowspan and colspan with 7
necessary attributes. Write HTML code for following table.
16. XHTML is stricter language than HTML. Justify 4
17. Write HTML code to display following irregular table. 7
18. What is meta tag? How it is useful by search engine? 4
19. Explain the key components of the XML with suitable examples. 4
20. Write and explain rules for well formed XML document. 4
21. List and explain various list tags in HTML with example. 7
22. Explain any three attributes of <Table> Tag in HTML. Write code to 7
display following table.
23. Write HTML code for creating following table. 7
24. How to display ordered list and unordered list using HTML? Give 4
Example.
25. Design Login Page HTML. Page must have fields in page Username, 7
Password, Remember Me and Login Button
26. Design Registration page in HTML 4
27. Explain following HTML tags with example (i) <select> (ii) <pre> 3
28. What do you mean by Meta Tags? List and Explain any three meta tags 7
with example
29. What do you mean by “class” and “id” in CSS? Explain with Example. 7
OR
Explain types of selectors with example.
30. What is CSS? Explain the different types of CSS. 7
31. What is positioning in CSS? Also explain margin and padding with 7
example.
32. Write HTML and CSS code for the following: 7
(i) set the background color for the active link states to "yellow".
(ii) Set the list style for unordered lists to "square".
(ii) Set "paper.gif" as the background image of the page.
33. What is Cascading Style Sheet? Compare inline, embedded and external 7
style sheet with example.
34. Write an HTML snippet with CSS for following effects 7
1. link: after visited red color and before visited blue color
2. table with odd rows blue and even rows green color.
3. Text color-green, Text case-uppercase
35. Differentiate between “ID” and “Class” using suitable example. 4
36. List and Explain types of CSS with Example. 4
37. What does the floating and positioning element do in CSS explain with 4
example.

Unit 3: Client side scripting using JavaScript


Sr. No. Question Marks
38. Write a JavaScript that handles following events. 7
(i) Gives the key code for the key pressed.
(ii) The script should give message that "vowel is pressed" if vowel keys
are pressed.
(iii) Background color should change to red after releasing the pressed
key.
39. Write JavaScript code to know which mouse button was 7
clicked,number of elements in form, and write hello world on the
document.
40. Show the use of JavaScript events for the following 7
(i) Trap the exiting of the user from a page.
(ii) Show the heading. When the mouse is over the heading the
background color should be red and when the mouse goes out of the
heading,color should change to blue.
41. Design a login form using HTML & JavaScript with following validations 7
on username and password fields.
1. Password length must be 6 to 12 characters
2. Username should not start with _, @ or number.
3. Phone number must be 10 digit start with 6/7/8/9
4. All fields should not be blank.
42. Write a JavaScript program which read number and check whether that 7
number is prime or not?
43. Design a form using HTML and JavaScript that asks the user to enter his 7
date of birth and on clicking the Calculate Button it calls the function that
calculates how many days are left in your
birthday?
44. Design a form using html and JavaScript to collect the details from the user 7
such as name, gender (Radio Button), address, state, city.
Create a dynamic drop down list for state and based
on state another drop down list contains list of cities for state.
45. What do you mean by event in JavaScript? Give at least two examples of 4
events with their handling.
46. Define the following with reference to XSL: 4
1) value-of 2) for-each 3) sort
47. Develop XML File for book record and also write a DTD and XSL for it. 4
48. Write a Java Script to read data from XML File and print it in tabular 4
manner.
49. Write JavaScript code to print following pattern. 1 7
01
101
0101
10101
50. Explain DOM structure of HTML. Write JavaScript code to know which 7
mouse button was clicked and number of elements in form
51. Difference between XSD Simple element and XSD Complex element. 4
52. Compare and contrast between HTML and XML 4
53. Write a JavaScript program to validate an Email address. 4
54. Write a JavaScript that handles following events. 7
(i) Gives the key code for the key pressed.
(ii) The script should give message that "vowel is pressed" if vowel keys
are pressed.
(iii) Background color should change to red after releasing the pressed key
55. Write an HTML and JavaScript program which accepts N as input and 7
print first N odd numbers.
56. Show the use of events for the following with example. 7
(i) Trap the exiting of the user from a page.
(ii) Show the heading. When the mouse is over the Heading the
background color should be yellow and when the mouse goes out of the
heading, color should change to black
57. Explain pop-up boxes in JavaScript with example. 4
58. Write Java Script to validate Mobile Number. 7
1) Entered value must be numeric
2) 10 digit length
59. Write the difference between Client Side Scripting and Server Side 4
Scripting
60. Explain any two types of events in Java Script with Example 4
61. Write Java Script for find first 10 prime numbers. 7
62. Explain DTD (Document Type Definition). 3
63. Explain following XSL Elements with suitable example. 3
1) value-of
2) sort
64. Write Well formed XML file to store student information. 4
65. Explain the Document Object Model with example 4
66. Give full form of following acronym (i) DTD (ii) DOM (iii) XSL 4
67. Differentiate client side scripting and server side scripting. 4
68. Design a login form with username and password option using HTML and 7
JavaScript. Perform following validations.
(i) Username field: minimum length 6 characters, it should not have any
special character or digits other than _
(ii) Password field: minimum length 8 characters and maximum length 12
characters, it must contain at least one digit and at least one special
character from the set {*,#,_}
69. State true or false and justify your answer : “Java Script is untyped 4
language”
70. What is external style sheet? Give example. Give advantages of external 4
style sheet
71. Write a JavaScript that handles following events. 7
(i) If the mouse is over heading, change font color to “red” and if the
mouse goes out of the heading change it to “black”
(ii) If key pressed is ‘a’,’e’,’i’,’o’,’u’, the message should be displayed on
pop up box that “vowel is pressed”
(iii) If “Date and Time” button is clicked it displays current date and time
information.
72. What is XML? Give purpose and list its features 4
73. Using HTML and Java script design a web page that takes one integer as 7
input and display total N prime numbers starting from 1 in HTML table on
web page
74. Write XML file to store information about Music_Album having fields of 7
Title, Singer, Music_Composer, Actor, Language, Country and
Release_Year. Also write corresponding external DTD file
75. Write JavaScript code that display the text “Gujarat Technological 7
University” with increasing font size in interval of 50ms in blue color.
When font size reaches to 50px it should stop
76. Demonstrate onChange event handler in java script code when input focus 7
exits after the user modifies its text.
77. Explain Callback function in JavaScript with example 4
78. Explain following terms 1. Difference between for and forEach method in 4
JavaScript 2. Write a code to validate user input using
jQuery

Unit 4: Server side scripting with PHP


Sr. No. Question Marks
79. Explain date() function in PHP. 4
80. What are the different types of arrays in PHP? Explain with example to proc 7
81. Write a PHP program to find whether entered year is leap year 7
or not.
82. Write a PHP script to validate email address using Regular 7
Expression when user click on SUBMIT button.
83. Explain the PHP session and PHP cookie with an example. 7
84. Explain index and associative arrays in PHP 4
85. Write PHP program to print following pattern: 1 7
01
101
0101
10101
86. Explain the use of following arrays in PHP. 3
1) $_REQUEST [ ] 2) $_SERVER[ ]
87. Give full form of following acronym. 7
(1) DOM (2) XSL (3) DTD (4) HTTP (5) PHP (6) XML
88. Differentiate between Client Side Scripting and Server Side Scripting. 4
89. What PHP can do with header() function? 3
90. Difference between DTD and XML Schema. 4
91. What is use of “break” and “continue” statements in PHP scripts? 7
92. Explain following string functions with example in PHP: ucwords() and strp 7
93. What is difference between identical and equal to operator in PHP? Give ex 7
94. Why state is problem for web application? Explain various technique 7
for state and session management in php with example

Unit 5: Database programming with PHP and MySQL


Sr. No. Question Marks
95. Write a PHP program to store user registration (user-name, address, Date of 7
96. Write an application using PHP and HTML to upload a file from the user on 4
97. Write a web application code using PHP, HTML and MySql for Students tha 7
98. Write a web application code using PHP, HTML and MySql for Employees 7
update, delete etc.
99. Explain require() and include() functions in PHP. 4
100. How to read(display on the browser) and write file in PHP?Explain with exa 7
101. Write php code to create database state, create table 7
city(cityname, area,population) and insert data from table
102. Write php code to upload image file. 7
103. Explain Browser detection PHP with Example. 4
104. Explain database connectivity in PHP with example. 4
105. Write PHP script to read and write a text file. 4
106. Write a php program to greet the user based on time. 4
107. Write a php code to upload file on server and display file details on 3
the page (Ex. File name, Extension, File Size)

Unit 6: Advanced Web Programming concepts


Sr. No. Question Marks
108. Write a php code to check whether given username is already in 7
“login_tbl” table or not using AJAX and display appropriate message.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy