This download link is referred from the post: PTU B.Sc IT (BCA) Last 10 Years 2010-2020 Previous Question Papers || Punjab Technical University
Roll No.
Total No. of Questions : 07 Total No. of Pages : 02
B.Sc.(IT) (2015 & Onwards) (Sem.-4)
--- Content provided by FirstRanker.com ---
PROGRAMMING IN PHP
Subject Code : BSIT-401
M.Code : 74083
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
--- Content provided by FirstRanker.com ---
- SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks each.
- SECTION-B contains SIX questions carrying TEN marks each and students have to attempt any FOUR questions.
SECTION-A
1) Answer briefly :
- What are the basic DML commands?
- PHP is server side language or client side language? Explain your answer.
- Write the connectivity string in PHP with Mysql database.
- Which operator is used to check the data types of the variables, whether they are same or not?
- Differentiate between session and cookie.
- How to retrieve a value from textbox in PHP on click event of button?
- What is WYSIWYG?
- Which server is used to compile PHP code?
- Differentiate between $_GET and $_POST methods in PHP.
- What are interfaces in PHP?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION-B
--- Content provided by FirstRanker.com ---
2) Write a PHP script which takes the username, password and e-mail values from user and checks whether the user has filled the textboxes or not. Also, check the e-mail field whether it is incorrect format or not.
3) Write a function that interchange and prints the value of two integers A and B without using any extra variable.
4) How a Browser communicate with Web Servers?
5) How to save the user's data in file? Also, write a program on it?
6) Write a program to update a value of database on user request.
--- Content provided by FirstRanker.com ---
7) What are FORMS? Explain different Form fields.
NOTE : Disclosure of Identity by writing Mobile No. or Making of passing request on any page of Answer Sheet will lead to UMC against the Student.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: PTU B.Sc IT (BCA) Last 10 Years 2010-2020 Previous Question Papers || Punjab Technical University