My Report

PHP Database Test – 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. If there is no error, then what will the error() method return?

2. Which one of the following statements can be used to select the database?

3. Which one of the following databases has PHP supported almost since the beginning?

4. Which one of the following methods can be used to diagnose and display information about a MySQL connection error?

5. The updated MySQL extension released with PHP 5 is typically referred to as _______________

6. Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?

7. Which one of the following statements instantiates the mysqli class?

8. Which method returns the error code generated from the execution of the last MySQL function?

9. In which version of PHP was MySQL Native Driver(also known as mysqlnd) introduced?

10. Which one of the following statements is used to create a table?


 

Start practicing “1000 MCQs on PHP”, and once you are ready, you can take tests on all topics by attempting our “PHP Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.