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

Question Bank of WT - 2

This document contains 35 questions related to web technologies like PHP, JavaScript, HTML, and databases. The questions cover various topics such as array handling in PHP, server-side and client-side scripting, event handling in JavaScript, database connectivity in PHP, form validation, and regular expressions. Most questions provide examples of code snippets to demonstrate the relevant concepts.

Uploaded by

jaysheel mistry
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)
740 views3 pages

Question Bank of WT - 2

This document contains 35 questions related to web technologies like PHP, JavaScript, HTML, and databases. The questions cover various topics such as array handling in PHP, server-side and client-side scripting, event handling in JavaScript, database connectivity in PHP, form validation, and regular expressions. Most questions provide examples of code snippets to demonstrate the relevant concepts.

Uploaded by

jaysheel mistry
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/ 3

WEB TECHNOLOGY QUESTION BANK 2020

WEB TECHNOLOGY
QUESTION BANK –Part 2
1 Explain types of array in PHP with example
2 Explain PHP and WAMP server in detail.
3 Differentiate between Client Side Scripting and Server Side Scripting.
4 Write a JavaScript to find first 10 prime numbers.
5 Explain event handling in JavaScript.
6 Write a JavaScript to check input string is palindrome or not.
7 Write a web application code using PHP, HTML and MySql for Employees that
stores employee’s id, name, department, designation, etc. in database. Create
proper GUI including buttons that run separate .php file for each database
operation like insert, update, delete etc.
8 Write a PHP script to print following pattern.
1
01
101
0101
10101
9 Explain session and cookies in PHP with proper example.
10 Write php code to create database state, create table city(cityname,
area,population) and insert data from table.
11 What is session and cookie in php? Create seesion and session parameter using-
php code.
12 Write php code to read from a file and display it in browser
13 Explain Cookie in PHP. & Explain session in PHP.
OR What is Cookie? How can we handle cookies in PHP?
What is session? Explain PHP session management.
14 Write PHP program to read text file.
15 Write PHP code for database connectivity. Apply insert and delete operation with
proper example.
16 Write a PHP program to upload image. And also check file size should not greater
than 30 KB.
17 Write a PHP program to insert data in table. And also display data on browser with

PREPARED BY HIREN V MER- ASST PROF- CE DEPARTMENT Indus University


WEB TECHNOLOGY QUESTION BANK 2020

proper tabular format.


18 What is JavaScript event? List the major events and show use of at
least one event by writing JavaScript code.
19 Write a PHP program to display table of cube for 1 to 10.
20 Write a PHP program to display table of square for 1 to 10.
21 Write a PHP program to display Multiplication table of user's input value.
22 How can you connect to database in PHP? Explain database
connectivity in PHP with example.
23 Write a PHP program to display a table stored in database.
24 Explain DOM structure of HTML. Write using JavaScript: how to know which
mouse button was clicked, number of elements in form, and write hello world.
25 Define DHTML. Explain onLoad, onBlur, image preloading, change image size,
mouse curser position
26 Differentiate between server side and client side scripting languages. Write HTML
and JavaScript to take input for loginname, password, birthdate, email address,
phone no. and validate them.
27 Explain different ways to pass information from one web page toother(s). Write a
PHP program to explain any two ways.
28 Write a note on server side include. Write a PHP program to demonstrate the
same.
29 Explain need of URL redirection. Write the same in PHP, HTML and JavaScript.
30 What is PHP? Write a PHP program to find whether entered year is leap year or
not.
31 Explain with suitable example, string manipulation with PHP
32 Read and store student information such as enrollment no, name, semester and
percentage in database table named student. Output the data to a web page using
PHP.
33 What is document object model? Explain document object with example.
34 With the use of PHP, switch case and if structure perform the following and print
appropriate message.
(i) Get today’s date
(ii) if date is 3, it is dentist appointment.
(iii) If date is 10, go to conference.
(iv) If date is other than 3 and 10, no events are scheduled.

PREPARED BY HIREN V MER- ASST PROF- CE DEPARTMENT Indus University


WEB TECHNOLOGY QUESTION BANK 2020

35 Why do you need validation? Show the use of regular expression in


JavaScript to validate the email address with example.

PREPARED BY HIREN V MER- ASST PROF- CE DEPARTMENT Indus University

You might also like