Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
22 views

php Model question

Uploaded by

Gokul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

php Model question

Uploaded by

Gokul
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GOVERNMENT ARTS AND SCIENCE COLLEGE, PENNAGARAM

DEPARTMENT OF COMPUTER SCIENCE


MODEL EXAMINATION APR 2023
DATE: 27-04-23 PHP SCRIPTING MAX MARK: 75
TIME 3:00 HRS PART A (Answer All The Question) 15X1=15 Marks
1. PHP stands for
a. Hypertext Preprocessor B. Pretext Hypertext Preprocessor
b. Personal Home Processor C. None of the above
2. Who is known as the father of PHP?
a. Drek Kolkevi b.List Barely c.Rasmus Lerdrof d. None of the above
3. Variable name in PHP starts with
a. ! (Exclamation) b. $ (Dollar) c. & (Ampersand) d. # (Hash)
4. Which of the following is the default file extension of PHP?
a. .php b. .hphp c. .xml d. .html
5. Which of the following is not a variable scope in PHP?
a. Extern b. Local c. Static d. Global
6. Which of the following is correct to add a comment in php?
a. & …… & b. // …… c. /* …… */ d. Both (b) and (c)
7. Which of the following is used to display the output in PHP?
a. Echo b. Write c. Print d. Both (a) and (c)
8. Which of the following is the use of strlen() function in PHP?
a. The strlen() function returns the type of string
b. The strlen() function returns the length of string
c. The strlen() function returns the value of string
d. The strlen() function returns both value and type of string
9. Which of the following is used for concatenation in PHP?
a. + (plus) b. * (Asterisk) c. . (dot) d. append()

10. Which of the following starts with __ (double underscore) in


a. Inbuilt constants b. User-defined constants c.Magic constants d.Default
constants
11. Which of the following is the use of strpos() function in PHP?
a. The strpos() function is used to search for the spaces in a string
b. The strpos() function is used to search for a number in a string
c. The strpos() function is used to search for a character/text in a string
d. The strpos() function is used to search for a capitalize character in a string
12. What does PEAR stands for?
a. PHP extension and application repository b.PHP enhancement and application reduce
c. PHP event and application repository d.None of the above
13. Which of the following is the correct way to create a function in PHP?
a. Create myFunction() b. New_function myFunction()
c. function myFunction() d. None of the above
14. Which of the following PHP function is used to generate unique id?
a. id() b. mdid() c. uniqueid() d. None of the above
15. Which of the following is the correct way of defining a variable in PHP?
a. $variable name = value; b. $variable_name = value;
c. $variable_name = value d. $variable name as value;
PART B(Answer Any Two Questions) 2X5=10

16.Write Short Notes On ”PHP START AND END TAGS and CODE COHABITATION”?
17. Write Short Notes On “PREDEFINED VARIABLES”?
18.Write Short Notes On “REDIRECT TO A NEW LOCATION”?
19. Write Short Notes On”CONNECTING TO My SQL”?
20. Write Short Notes On “Mailing List Software”?

PART C(Answer All The Questions) 5X10=50

21.a) Write Brief Notes On ”Variables and Operators”?


OR
b). Write Brief Notes On “Mixing PHP and HTML”?
22.a) Write Brief Notes On “Displaying Dynamic Content?
OR
b). Write Brief Notes On “Sending Email”?
23.a) Write Brief Notes On ”Establishing a Connection”?
OR
b). Write Brief Notes On “Creating Database Table”?
24.a) Write Brief Notes On “Adding Contacts?
OR
b). Write Brief Notes On “Deleting Contacts”?
25.a) Write Brief Notes On ”Managing Simple Mail List”?
OR
b). Write Brief Notes On “Creating custom logs”?

******ALLTHE BEST******

You might also like