Unit 5 - Database Operations (22619 WBP)
Unit 5 - Database Operations (22619 WBP)
Online Quiz to help you in preparing for Online Exams, It covers Multiple Choice Questions
(MCQs) for 20 Marks
imp Links:
All Theory tutorials: https://bit.ly/3ihW2zX
contact us on [email protected]
1. Which one of the following databases has PHP supported almost since 1/1
the beginning? *
a) Oracle Database
b) SQL
c) SQL+
d) MySQL
2. The updated MySQL extension released with PHP 5 is typically referred 1/1
to as _______________ *
a) MySQL
b) mysql
c) mysqli
d) mysqly
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 1/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
(a) BIGINT
(b) MEDUMINT
(c) INT
d) SMALLINT
a) BIGINT
(b) INT
(c) MEDUMINT
(d) SMALLINT
(a) semi-double
(b) float
(c) single
(d) double
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 2/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
(a) LONGBLOB
(b) LONGTEXT
(c) MEDIUMBLOB
(d) MEDIUMTEXT
a) extension=php_mysqli.dll
b) extension=mysql.dll
c) extension=php_mysqli.dl
d) extension=mysqli.d
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 3/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
9. Which one of the following statements instantiates the mysqli class? * 1/1
c) $mysqli->new.mysqli()
d) mysqli->new.mysqli()
10. Which one of the following statements can be used to select the 1/1
database? *
a) $mysqli=select_db('databasename');
b) mysqli=select_db('databasename');
c) mysqli->select_db('databasename');
d) $mysqli->select_db('databasename');
11. Which one of the following methods can be used to diagnose and 1/1
display information about a MySQL connection error? *
a) connect_errno()
b) connect_error()
c) mysqli_connect_errno()
d) mysqli_connect_error()
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 4/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
12. Which method returns the error code generated from the execution 1/1
of the last MySQL function? *
a) errno()
b) errnumber()
c) errorno()
d) errornumber()
13. In PHP in order to access the MySQL database you will use: * 1/1
A) mysqlconnect() function
B) mysql-connect() function
C) mysql_connect() function
D) sql_connect() function
14. SQL is not case sensitive. SELECT is the same as select. * 1/1
True
False
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 5/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
A) fetch()
B) mysqli_fetch_object()
C) mysql_fetch_arrays()
D) mysqli_fetch_array()
CREATE –I cwipedia
DATABASE / cwipedia
mysql –s cwipedia
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 6/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
18. What happens if you run a DELETE command that does not contain a 1/1
WHERE clause? *
19. Which of the following method can be used to close a MySql 1/1
database using PHP? *
A - mysql_connect()
B - mysql_query()
C - mysql_close()
20. Which query is suitable if I want to delete rollno cw302 from the 1/1
database *
D. Both B and C
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 7/8
13/09/2020 Unit 5: Database Operations (22619 WBP)
Feedback *
ANSWER KEY
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy
Forms
https://docs.google.com/forms/d/e/1FAIpQLScBmZAvIqTbLzgQbtGoH1rrp3-Wb8ZEpffCYtle3o3gFgu-vQ/viewscore?viewscore=AE… 8/8