WEB SYSTEM & TECHNOLOGIES BSSE 5th Term 2017 Past Paper UOS

University of Sargodha
BS 5th Term Examination 2017
Subject: Software Engineering
Paper: Web Systems & Technologies (CS: 3548)
Time Allowed: 2:30 Hours
Maximum Marks: 80
Objective Part (Compulsory)
Q.1. Write short answers of the following in 2-3 lines each on your answer sheet. (2*16)
- PHP and JavaScript are both programming languages that generate dynamic results for web pages. What is their main difference, and why would you use both of them?
- What does CSS stand for?
- What is the purpose of an FTP program?
- Name the main disadvantage of working on a remote web server.
- Which symbol is used to preface all PHP variables?
- What can a variable store?
- What is the difference between variable == 1?
- Are variable names case-sensitive in PHP?
- What is the best way to force your own operator precedence?
- When would you use the === (identity) operator?
- How can you call an initializing piece of code when an object is created?
- What is the difference between a numeric and an associative array?
- What is the PHP command for deleting the file file.txt?
- Which PHP function is used to read in an entire file in one go, even from across the Web?
- Which PHP superglobal variable holds the details on uploaded files?
- Which PHP function enables the running of system commands?
Subjective: (16 x 3 = 48)
Note: Attempt any three questions. All questions carry equal marks
Q.2. Write PHP code that sends E-mail with text file attachment.
Q.3. Create Login Page log_auth.php that authenticates Username and Password and navigate to profile page prof.php in case of successful authentication otherwise return to log_auth.php page.
Q.4. Write a program in PHP that reads a Text file and prints frequency of each character in a file.
Q.5. Describe web server’s delivery of static contents.
Q.6. What is cascading style sheets? Describe in detail.