Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

ALLIANCE COLLEGE

COLLEGE OF UG
FINAL EXAM

Exam
Course Title AIP Facility Info E. Year 2013 Program REG -------
Date
A. Year Max.
Course Code -------- Department IT 2016 Semester 1 40 %
Weight
Instructor Section Time
Metekiya C. Year 4 A 1:30
Name Allowed

Name _____________________________ ID. No ______________________

Section ___________________________ Department _________________

INSTRUCTION
 Make sure the exam paper contains 4 pages including the cover page.
 Make sure the exam paper contains the appropriate number of question in appropriate
parts.
 Answer the question according to the instructions given for each part.
 Write your answer neatly on the space provided.
 Mobile phone should be switched off.
 Cheating in any form will result punishment without prior notice.

PART I: True or False [2 Pts.]

1. When using the POST method, variables are displayed in the URL:
2. In PHP you can use both single quotes ' ' and double quotes " " for strings
3. PHP can be run on Microsoft Windows IIS(Internet Information Server)
4. In PHP, the only way to output text is with echo.
5. The difference between mysql_connect and mysqli_connect database connection
function is that mysqli_connect passes four parameters

PART II: Choose the best answer from the given alternative [2 pts.]

1.

2. What does PHP stand for?


a) PHP: Hypertext Preprocessor c) Personal Hypertext Process
b) Private Home Page d) All

3. PHP server scripts are surrounded by delimiters, which?


a) <?php ......</?? b) <Script>....</Script>

ALLIANCE COLLEGE Page 1


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

c) <&>....<&> d) <?php ......?

4. How do you write "Hello World"


a) echo "Hello World"; c) Document.write("Hello World");
d) Non
b) "Hello World";
5. All variables in PHP start symbol?
a) $ c) !
d) none
b) &
6. What is the correct way to end a PHP statement?
a) ; c) .
b) > d) New line

7. How do you get information from a form that is submitted using the "post" method?
a) $_POST[ ]; c) Request.QueryString;
b) Request.Form; d) none

8. What is the correct way to include the file "time.php"


a) <!-- include file="time. php " --> c) < php include: "time. php "; ?>
b) < ?php include "time. php "; ?> d) < ? php include file="time. php "; ?>

9. What is the correct way to create a function in PHP?


a) function myFunction() c) create myFunction()
d) none
b) new function myFunction ( )

10. What is a correct way to add a comment in PHP?


a) /*...*/ c) <!----....-->
b) *\...\* d) none

ALLIANCE COLLEGE Page 2


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

11. Which operator is used to check if two values are equal and of same data type?
a) = = c) = = =
b) != d) =
PART III: Work out(each loads 2.5 pts)
1. Explain relational database independency concepts
2. Explain the difference between tier and layer with example
3. Explain different types of tiers with example
4. List down at least five Standard Web Forms Controls and define their functio

Answer Sheet
Exam
Course Title AIP Facility Info E. Year 2013 Program REG -------
Date
A. Year Max.
Course Code -------- Department IT 2016 Semester 1 40 %
Weight
Instructor Section Time
Metekiya C. Year 4 A 1:30
Name Allowed

Name _____________________________ ID. No ______________________

Section ___________________________ Department _________________

PART - I

1. ________________
2. ________________ 4. ________________
3. ________________ 5. ________________

PART - II

1. ________________
2. ________________ 5. ________________
3. ________________ 6. ________________
4. ________________ 7. ________________

ALLIANCE COLLEGE Page 3


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

8. ________________ 10. ________________


9. ________________

PART III

1.

2.

3.

4.

ALLIANCE COLLEGE Page 4


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

GOOD LUCK

ALLIANCE COLLEGE Page 5

You might also like