Subject 2018 Question Paper — Government College of Engineering and T…
The 2018 Subject previous year question paper (Government College of Engineering and Technology, Jammu), with every question and its marks.
- University: Government College of Engineering and Technology, Jammu
- Course: Web Programming Using PHP
- Branch: Information Technology Engg.
- Year: 2018
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt five questions in all selecting at least two questions from each Section.
- Each question carries 20 marks.
Questions
Section - A
- Q1. (a) Explain the main features of client side scripting. Also explain the scenario in which it should be preferred to server side scripting. (b) Explain the syntax and usage of various decision making constructs available in Php. [20 marks]
- Q2. (a) What is the use of an echo command? Give example. (b) What is a query string? Give example. (c) When is the variable $ SERVER [ 'PHP - SELF' ] used? Give an example. (d) Differentiate between for and for each loop in PHP. [20 marks]
- Q3. Explain the following terms: (a) Operators and expressions (b) Data types (c) Conditional statements. [20 marks]
- Q4. (a) What is a regular expression? Explain splitting the string with regular expression. (b) How many types of arrays are supported in PHP? [20 marks]
Section - B
- Q5. (a) Describe the process of redirecting user. (b) Explain the functions which are used to open and close a file in PHP. [20 marks]
- Q6. (a) Design a webpage that accepts username and password as input and authenticate the same from given database using PHP. (b) Define cookies. How are they created, used and deleted in PHP? [20 marks]
- Q7. How is a form connected to a database? How can the data in the result set of database using PHP be retrieved and edited? Consider any suitable example. [20 marks]
- Q8. (a) What do you understand by uploading and downloading? Explain the working of file upload in Php with an example. (b) Write PHP code to show all the session variable values for a user session. [20 marks]