Home
10th Grade
11th And 12th
11th Grade
12th Grade
3rd Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
Advance Accountancy
Auditing
Computer Aptitude
Direct And Indirect Taxation
Exams
General Hindi
Indian Finance System
Information Technology And Application In Business
Macro Economics
Town Planning
Aerospace And Aeronautical
Analytical Instrumentation
Banking Awareness
Banking Exam
Biochemistry
Bioinformatics
Biology
Biotechnology
Business Statistics
C Program
C Programming
C++ Programming
Career Aptitude Test
Cell Biology
Central Superior Service (css)
Chemical Engineering
Chemistry
Civil Engineering
Commerce
Computer
Computer Fundamentals
Computer Science
Cost Accounting
Css
Database
Drug And Pharmaceutical Biotechnology
Ecat And Mcat Entry Test
Economics
Electrical Engineering
Electrical Engineering Questions
Electrical Measurement And Instrumentation
Engineering
English
English Literature
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Knowledge
Graduate Assessment Test (gat)
Health And Physical
Heat Transfer
Html
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Ias
Indian Economy
Indian Economy
Indian General Awareness
Indian Geography
Indian Geography
Indian History
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Java Program
Javascript
Judiciary And Law
Life Sciences
Management
Marketing And Marketing Management
Mass Transfer
Mechanical Engineering
Mechanics Of Materials
Medical Subjects
Microbiology
Networking
Php
Placement Tests
Professional Communication
Quantitative Aptitude
Reasoning Aptitude
Renewable Energy
Science
Sociology
Sql
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
Notificatin
Exam
Blog
Contact Us
Php Databases Handling(Engineering > Computer Science And Engineering > Php ) Questions and Answers
Home
Topic
Engineering
Computer Science And Engineering
Php
Php Databases Handling
Question 1.
The updated MySQL extension released with PHP 5 is typically referred to as.
MySQL
mysqly
mysql
mysqli
Explanation:-
Answer: Option D. ->
mysqli
Question 2.
In which version of PHP was MySQL Native Driver(also known as mysqlnd) introduced?
PHP 5.1
PHP 5.2
PHP 5.3
PHP 5.0
Explanation:-
Answer: Option C. ->
PHP 5.3
Question 3.
Which one of the following statements is used to create a table?
CREATE table_name (column_type column_name);
CREATE TABLE table_name (column_name column_type);
CREATE table_name (column_name column_type);
CREATE TABLE table_name (column_type column_name);
Explanation:-
Answer: Option B. ->
CREATE TABLE table_name (column_name column_type);
Question 4.
Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?
extension=mysql.dll
extension=php_mysqli.dl
extension=mysqli.dl
extension=php_mysqli.dll
Explanation:-
Answer: Option D. ->
extension=php_mysqli.dll
Question 5.
Which one of the following databases has PHP supported almost since the beginning?
MySQL
SQL+
SQL
Oracle Database
Explanation:-
Answer: Option A. ->
MySQL
Question 6.
Which one of the following statements instantiates the mysqli class?
mysqli = new mysqli()
$mysqli->new.mysqli()
mysqli->new.mysqli()
$mysqli = new mysqli()
Explanation:-
Answer: Option D. ->
$mysqli = new mysqli()
Question 7.
If there is no error, then what will the error() method return?
0
FALSE
TRUE
Empty String
Explanation:-
Answer: Option D. ->
Empty String
Question 8.
Which one of the following methods can be used to diagnose and display information about a MySQL connection error?
mysqli_connect_error()
mysqli_connect_errno()
connect_errno()
connect_error()
Explanation:-
Answer: Option B. ->
mysqli_connect_errno()
Question 9.
Which one of the following statements can be used to select the database?
$mysqli=select_db(‘databasename’);
mysqli=select_db(‘databasename’);
$mysqli->select_db(‘databasename’);
mysqli->select_db(‘databasename’);
Explanation:-
Answer: Option C. ->
$mysqli->select_db(‘databasename’);
Question 10.
Which method returns the error code generated from the execution of the last MySQL function?
errorno()
errnumber()
errno()
errornumber()
Explanation:-
Answer: Option C. ->
errno()
1
2
3
4
Next →
One click Login
Login With Google
Old way of Login
Login With Email