Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views4 pages

PHP & Mysql Pyq

Uploaded by

xokimim416
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

PHP & Mysql Pyq

Uploaded by

xokimim416
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

BCA 6h Semester Examin:ation(CBCS) 2018

Department of Informatiol TechnoloB


Advanced Website Designing (PHP and MySQL)
INFTO601E
Full Marks: 70 Time: 3hours
[The figure in the margin indicate lull marks for the question]
Answer Question No l(compulseorv) and Any Five from the rest
1. Answer the following questions:
«PHP is an open-source scripting language"’ Justity.
b. What is meant by a PHP Session2
C. Compare between static and dynamic web page.
d. What is the utilization of SQL in MySQL?
e. Difterentiate between DDL and DML commands
2x5=10

2.
What are the components of PHP? Discuss.
b. Write down the characteristics of PHP.
c. Distinguish between 'echo' and 'print' statements in PHP with syntax.
d. How can you define PHP constants? 3+3+3+3=12

3.
What are the four types of scope variables in PHP? Discuss.
b. Explain the rules of PHP variables with examples.
c. Distinguish between Smsg and S$msg.
d. What are the magic constants of PHP?
3+4+2+3=12

4.
a. Discuss different types of PHP data types category wise.
0. Describe the Assignment Operators ofPHP with examples.
C. Compare Unary Operators and Binary operators regarding PHP.
d. What is XAMP?
5+3+2+2-12

5.
What is the role of database server in database management system? Write down key features of
a.
MySQL. Discuss.
b. What are the different types of tables in MySQL?
C. What is the basic difference between primary key and candidate key?
MySQL?
d. List the different types of strings that are used for database columns in 4+4+2+2-12

6.
a. What do you understand by client side scripting and server side scripting?
b. What are the column comparisons operators ofMySQL?
C What are meant by joins in MySQL? Discuss different types of Joins exist in MYSQL.
d. What is query string? 2+2+6+2=12

7
a. Explain PHP Do-While' loop in with syntax. flowchart and example.
b. What is PHP array? Write a PHP script to create amultidimensional array.
c. Discuss the following MySQL commands
i. DELETE
ii. DROP
4+(1+3)+4=12

Page I of2
8.
a. Write aPHP script to create a database such that the database contains a student table with the fields
like student_id, student_name, student age. Do the following
i. To insert another field like student_class
ii. To display the description of the student table
iii. To select allrecords of student table.
b. Write connectivity and selecting database statement(s)to connect PHPwith MYSQL.
c. Write down the appropriate MySQL functions to get the following
i. For returning current date and time as single value.
ii. For returning the current date or time
i. To determine difference two dates
6+3+3=12
9. Write short notes on the following
a. MySQL data directory
b. TCL
c. MySQL data types
d. PHP comparison Operators
3x4=12
BCA6" Semester Examinotion (CBCS) July 2022
Advanced Website Desionino (PHP and MysQ)
INFT0601E
Full Marks: 70 Time: 3 hours
(The figure in the margin indicate full marks for the question]
Answer Qucstion No l(compulsory) and Any Five fromthe rest
1. Answer the following questions:
"PHP is an open-source scripting language" ’ Justify.
b. Write down the ways of creating a Database using MySQL.
C. Distinguish between Clob and Blob in MySQL.
d. How to validate a number in PHP?
e.
What do you mean by PHP multidimensional array? 2x5=10
2.
What is PHP Parser?
b. Differentiate between 'PHP eco' and 'PHP print' statements with examples.
C Write down the characteristics of PHP.
d. State PHP variable rules.
2+4+3+3-12
3.
a How can you define constants in PHP? Explain with syntax and example(s).
b. Distinguish between PHP constants and PHP variables.
C Discuss following PHP data types:
i. Scalar types
ii. Compound types
5+2+5=12
4.
What do you mear by Ternary operators? Give one example of it.
b What is the necessity of PHP comments?
C
How can you express 'Single line' and 'Multiline' comments in PHP? Explain with examples.
d. What are the ways to define PHP indexed array? Explain with examples.
2+2+4+4=12
5.
a. Why preference may be given to MySQL over SQL?
b. Discuss the major differences between a database and a table.
C. Writedown the MySQL commands to do the following:
i. To change the column name
ii. Todelete a row
iii. To modify data into a table
iv. To change the database name
2+2+(2x4)=12
6.
in PHP? Explain with
a. What are the different ways to conneet to the MySQL database
example/program.
b. Explain the following Dala lypes regarding MySQL:
i. String Types
i. Date and Time Types
MySQL joins with syntax
C. Which statement is used for MySQL Joins? Brieflv explain the following
and examples:
i. Simple Join
ii. Left Outer Join
3+4+(1+4)=12
7.
Discuss the following MySQL Clauses with Syntax and examples:
i. Group by Clause
ii. Having Clause
b. Explain MySQLAND condition with syntax and an example.
c. What is MysQL Aggregate Function? With the help of examples explain the following Aggregate
Functions:
i. COUNT ()
ii.MAX ().
4+3+(1+4)-12
8.
a. Discuss PHP Break statement with syntax, flowchart and example.
b. Explain PHP Nested For loop' with an example.
C. How do you define a function in PHP? Explain with syntax.
d. What will be the output of the following PHP code?
<?php
function a)
function b)

echo 'MySQL';
echo 'PHP';

a);
a);
?>
5+3+2+2=12
9.
a How do you make a database connection to MySQLi in PHP?
b. Explain the establishment of a database connection to PHP Data Object in PHP?
C Write short notes on the following:
i. PHP Form Handling
ii. MySQL Union clause
ii. PHP MySQL Insert Record
3+3+(2x3)=12

You might also like