ExamVeda
Login
Home
1
Which one of the following databases has PHP supported almost since the beginning?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
The updated MySQL extension released with PHP 5 is typically referred to as.
Discuss
Answer & Solution
Answer: Option C
Solution:
The updated MySQL extension with PHP 5 is known as MySQL and typically referred to as mysqli.
3
Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?
Discuss
Answer & Solution
Answer: Option A
Solution:
Also make sure that extension_dir directive points to the appropriate directory.
4
In which version of PHP was MySQL Native Driver(also known as mysqlnd) introduced?
Discuss
Answer & Solution
Answer: Option D
Solution:
PHP required that MySQL client library be installed on the server from which PHP was communicating with MySQL, whether the MySQL server also happened to reside locally or elsewhere. PHP 5.3 removes this problem by introducing MySQL Native Driver.
5
Which one of the following statements is used to create a table?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
6
Which one of the following statements instantiates the mysqli class?
Discuss
Answer & Solution
Answer: Option B
Solution:
If you choose to interact with MySQL server using the object-oriented interface, you need to first instantiate the mysqli class via its constructor.
7
Which one of the following statements can be used to select the database?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
8
Which one of the following methods can be used to diagnose and display information about a MySQL connection error?
Discuss
Answer & Solution
Answer: Option C
Solution:
The mysqli extension includes a few features that can be used to capture error messages or alternatively you can use exceptions.
9
Which method returns the error code generated from the execution of the last MySQL function?
Discuss
Answer & Solution
Answer: Option A
Solution:
Error numbers are often used in lieu of natural-language message to ease software internationalization efforts and allow for customization of error messages.
10
If there is no error, then what will the error() method return?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board