Computer Science MCQs · MySQL How can we get the number of records or rows in a table? A Using COUNT Correct answer B Using NUM C Using NUMBER D Both a and c above MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What is a candidate key? A Used to uniquely identify a row Correct answer B Alias for primary key C Used to identify a column D Alias for foreign key MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL On executing the DELETE command, if you get an error “foreign key constraint” – what does it imply? A Foreign key not defined B Table is empty C Connectivity issue D Data is present in the other table Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL i-am-a-dummy flag is used Make the MySQL engine refuse UPDATE and which other command? A WHERE B INSERT C DELETE Correct answer D TRUNCATE MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which of the following file extension is valid MyISAM file extension? A .ism B .myd Correct answer C .my D .mys MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL How much storage space does DATETIME require? A 4 bytes B 2 bytes C 8 bytes Correct answer D 1 bytes MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL . User() function return the current user name and ___________ A password B host name Correct answer C both a and b above D database name associated with the user MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL A SELECT command without a WHERE clause returns? A All the records from a table that match the previous WHERE clause B All the records from a table, or information about all the records Correct answer C SELECT is invalid without a WHERE clause D Nothing MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL The main MySQL program that does all the data handling is called? A mysql.exe B mysql C mysqld Correct answer D httpd MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which of the following commands should be used to create a database named “student”? A CREATE ?I student B CREATE DATABASE student Correct answer C DATABASE /student D DATABSE student MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL How much character are allowed to create database name? A 55 B 72 C 64 Correct answer D 125 MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which of the following is used to delete an entire MYSQL database? A mysql_drop_database B mysql_drop_entiredb C mysql_drop_db Correct answer D mysql_drop_dbase MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL What SQL clause is used to restrict the rows returned by a query? A AND B WHERE Correct answer C HAVING D FROM MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which of the following is not a valid aggregate function? A COUNT B MIN C MAX D COMPUTE Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which function used to get the current time in mysql? A getTime() B Time() C NOW() Correct answer D Date() MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL In a LIKE clause, you can ask for any 6 letter value by writing? A LIKE ?????? B LIKE .{6} Answer 5: LIKE ^.{6}$ C LIKE …… (that’s six dots) D LIKE ______ (that’s six underscore characters) Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL MySQL is A A Programming language B A Programming language C A technique for writing reliable programs D A Relational Database Management System Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL In a LIKE clause, you can could ask for any value ending in “qpt” by writing A LIKE %qpt Correct answer B LIKE *ton C LIKE ton$ D LIKE ^.*ton$ MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which SQL statement is used to insert a new data in a database? A INSERT INTO Correct answer B UPDATE C ADD D INSERT NEW MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL To use MySQL on your computer, you’ll need? A FTP and Telnet B Some sort of client program to access the databases Correct answer C A Browser D Perl, PHP or Java MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL Which of the following can add a row to a table? A Add B Insert Correct answer C Update D Alter MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL To remove duplicate rows from the result set of a SELECT use the following keyword: A NO DUPLICATE B UNIQUE C DISTINCT Correct answer D None of the above MCQSEXAM Show answer Read explanation
Computer Science MCQs · MySQL MySQL runs on which operating systems? A Linux and Mac OS-X only B Any operating system at all C Unix, Linux, Windows and others Correct answer D Unix and Linux only MCQSEXAM Show answer Read explanation