MCQ 1 Which one of the following methods is responsible for sending the query to the database?

Correct Answer Choice A query()
See Answer

MCQ 2 Which one of the following methods recuperates any memory consumed by a result set?

Correct Answer Choice D free()
See Answer

MCQ 3 Which one of the following statements is used to create a table?

Correct Answer Choice A CREATE TABLE table_name (column_name column_type);
See Answer

MCQ 4 Which of the following can add a row to a table?

Correct Answer Choice B Insert
See Answer


MCQ 5 Which of the following is NOT available in MySQL

Correct Answer Choice A FETCH
See Answer

MCQ 6 How many distinct, different values can you hold in an enum field?

Correct Answer Choice D 65535
See Answer

MCQ 7 When do we use a HAVING clause?

Correct Answer Choice C When GROUP by is used
See Answer

MCQ 8 Insert into instructor values (1001, 'Rajiv Sharma', 'PHP Language', 101); What type of statement is this?

Correct Answer Choice B DML
See Answer


MCQ 9 Which one of the following provides the ability to query information from the database and to insert tuples into, delete tuples from, and modify tuples in the database ?

Correct Answer Choice D DML(Data Manipulation Language)
See Answer

MCQ 10 SQL Select statement to retrieve unique record from a table is

Correct Answer Choice A SELECT DISTINCT
See Answer

MCQ 11 Which one is the correct declaration for choosing the character set other than default?

Correct Answer Choice D Varchar(20) character set utf8;
See Answer

MCQ 12 The value of primary key

Correct Answer Choice C cannot be null
See Answer


MCQ 13 The primary key is selected from the __________________.

Correct Answer Choice C candidate keys
See Answer

MCQ 14 Drop table structure is

Correct Answer Choice C DDL Statement
See Answer

MCQ 15 Correct SQL query to delete a column from a table in SQL Server database

Correct Answer Choice A ALTER TABLE tablename, DROP COLUMN columnName
See Answer

MCQ 16 Which of the following is not a User defined function?

Correct Answer Choice A Max()
See Answer


MCQ 17 Which SQL statement is used to extract data from a database?

Correct Answer Choice A SELECT
See Answer

MCQ 18 Which SQL statement is used to insert new data in a database?

Correct Answer Choice B INSERT INTO
See Answer

MCQ 19 Which one of the following statements instantiates the mysqli class?

Correct Answer Choice B $mysqli = new mysqli()
See Answer

MCQ 20 Which one of the following statements can be used to select the database? Use database name is 'knowledge'.

Correct Answer Choice C $mysqli -> select_db('knowledge');
See Answer


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

Correct Answer Choice D mysqli_connect_errno()
See Answer

MCQ 22 MySQL Access security is controlled through

Correct Answer Choice D MySQL login accounts, and priveliges set for each account
See Answer

MCQ 23 MySQL runs on which operating systems?

Correct Answer Choice C Unix and Linux only
See Answer

MCQ 24 The number of attributes in relation is called as its

Correct Answer Choice C Degree
See Answer


MCQ 25 Which among the following have the maximum bytes?

Correct Answer Choice C Text type
See Answer

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories