0% found this document useful (0 votes)
12 views

SC2064 PDF

The document is a PHP programming exam paper that contains questions about PHP concepts and features. It tests the students' knowledge of topics like variables, data types, operators, conditional statements, loops, arrays, functions, classes, files and databases in PHP.

Uploaded by

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

SC2064 PDF

The document is a PHP programming exam paper that contains questions about PHP concepts and features. It tests the students' knowledge of topics like variables, data types, operators, conditional statements, loops, arrays, functions, classes, files and databases in PHP.

Uploaded by

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

20. a) Explain adding and modifying data in MySQL. S.

No: 23APRSC64 SC2064


(OR)
HOLY CROSS COLLEGE, NAGERCOIL
b) Describe XML and DOM extension in PHP. (An Autonomous Institution Affiliated to Manonmaniam Sundaranar University)

SUMMATIVE EXAMINATION – April 2023


Semester – VI
B.Sc. Computer Science
PHP PROGRAMMING
(For those who joined in 2020-2021)
Time: Three Hours Maximum: 70 Marks

PART A – (10 x 1 = 10 Marks)


Answer all the Questions
1. PHP stands for__________.
a) Hypertext Preprocessor b) Pretext Hypertext Preprocessor
c) Personal Home Processor d) None of the above
2. Variable name in PHP starts with_________.
a) ! (Exclamation) b) $ (Dollar) c) & (Ampersand) d) # (Hash)
3. What will be the output of the following PHP code?
<?php
$a = 5;
$b = 5;
echo ($a === $b);
?>1
4. abs() function returns the absolute value of a number. State
True or False.
5. An __________ stores multiple values in one single variable.
6. An array is a special variable, which can hold more than one
Holy Cross College, (Autonomous), Nagercoil-4 Page: 4
value at a time. State True or False.
7. A___________is a block of statements that can be used 14. a) Illustrate user defined functions with an example.
repeatedly in a program. (OR)
8. How do you define a function in PHP? b) Elucidate OOPs concepts in PHP.
a) function {function body}
b) data type functionName(parameters) {function body} 15. a) What do you mean by SQL? Explain.
c) functionName(parameters) {function body} (OR)
d) functionfunctionName(parameters) {function body} b) Analyze the methods and properties in handling errors.
9. The __________is a database system used on the web.
PART C – (5 x 8 = 40 Marks)
10. MySQL is very fast, reliable, and easy to use. State True
Answer all the Questions
or False.
PART B – (5 x 4 = 20 Marks) 16. a) Explain about operators in PHP with suitable examples.
(OR)
Answer all the Questions
b) How data stored in variable? Explain with a suitable
11. a) Discuss the basic development concepts in PHP.
example.
(OR)
b) Explain data types with suitable examples.
17. a) Elaborate complex conditional statements with an example.
12. a) Describe string functions with suitable examples.
(OR)
(OR)
b) Illustrate loop concepts with suitable examples.
b) Discuss simple conditional statements with a suitable
example.
18. a) Explain about processing array with loop and iterations.
13. a) Explain about the basic concepts of array with suitable
(OR)
examples.
b) Describe working with date and time functions with
(OR) suitable examples.
b) Elaborate using arrays with forms. Give a suitable
19. a) How do you create classes? Explain with an example.
example.
(OR)
b) How do you read and write a file in PHP?
Holy Cross College, (Autonomous), Nagercoil-4 Page: 2 Holy Cross College, (Autonomous), Nagercoil-4 Page: 3

You might also like