Home /Islamia University Bhawalpur (IUB) /Web Programming

Web Programming MSCS 2 Semester/Term Islamia University Bhawalpur (IUB) 2017

Web Programming MSCS 2 Semester/Term Islamia University Bhawalpur (IUB) 2017 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

More Web Programming papers

See all

Paper text

The Islamia University of Bahawalpur

(Subjective)

Course Code: CSIT-21303

Term: Final

Class: MCS (2nd Semester)

Subject: Web Programming

Marks: 45

Time: 160 Mins

a Noradni.co

SHORT QUESTIONS - (12 x

2)

Write briefly with syntax and/or examp/g Where necessary:

1. Differentiate between Static a Dynamic Webpages.

2. Explain the purpose and use of PHP echo statement.

3. Name any four PHP data types.

4. What is PHP Array data type? Create an array of Four names.

5. What is string concatenation operator in PHP? Give example.

6. What is a PHP function? Write its Syntax.

7. What is the purpose of $_SERVER super-global variable? Give Example.

8. What is the purpose of _POST super-global variable? Give Example.

9. What is the purpose of $_ COOKIE super-global variable? Give Example.

10. What is a Web Service? Relate it with PHP, XML and AJAX.

11. Differentiate between string explode() vs. implode() function.

12. What is Wordpress? Explain its two features.

ustadni.com

LONG QUESTION (Attempt any three) - (3 x

7)

Q. No. 3

Consider the "employee" table given below and write a PHP script to display all employees

having "salary" >50000 and "age" < 35 years.

Columns:

Data Types:

emp_code

VARCHAR(S)

emp_name

VARCHAR(30)

emp_age

INT

designation

VARCHAR(20)

salary

INT

Q. No. 4

ustadni. success methe and rediet the pater cian horect then redlect the page to

Write a PHP login script "login.php" which receive "username" and "password" parameters

Q. No. 5

to read data from "names.txt" file, count and display total names fint: use fopen),

explode(), count) methods.

Q. No. 6

Write a PHP script "set_session.php" which receives "name" and "gender" parameters from

POST method and store this information in PHP session, and display this information on ne

page "display_session.php".

visit website: ustadni.com