1. The “father” of MySQL is ______.

A. Michael Widenius

B. Bill Joy

C. Bill Gates

D. Stephanie Wall

E. Sigmund Velin

Ans:  A

 

2. The main MySQL program that does all the data handling is called

A. mysql

B. mysqld

C. mysql.exe

D. httpd

Ans:  B

 

3. To use MySQL on your computer, you’ll need

A. Perl, PHP or Java

B. Some sort of client program to access the databases

C. A Browser

D. FTP and Telnet

Ans:  B

 

4. MySQL comes with as standard with client libraries for:

A. C only

B. Java only

C. Java and C

D. Perl, PHP and C

E. C, C# and the .NET environment, Java and Python

Ans: A

 

5. What kind of replication is supported by the MySQL server?

A. Multiple-master replication

B. Master to slave replication

C. Single file based clustering

D. MySQL doesn’t support replication

Ans:  B

 

6. Internally information is held in tables. Which of these is NOT a valid format:

A. BDB

B. Isam99

C. MyIsam

D. Hash

E. Isam

F. InnoDb

Ans:  B

 

7. Commands passed to the MySQL daemon are written in

A. Your choice from Perl, PHP, Java or some other languages

B. English

C. the Structured Query Language

D. Swedish

Ans: C

 

8. MySQL supports the complete SQL99 standard

A. true

B. false

Ans: B

 

9. Which of these is not a valid name for a column

A. Far

B. Near

C. To

D. From

Ans: B

 

10. In a LIKE clause, you can could ask for any value ending in “ton” by writing

A. LIKE ton$

B. LIKE ^.*ton$

C. LIKE %ton

D. LIKE *ton

E. LIKE .*ton

Ans:  C

 

11. Which of the following can add a row to a table?

A. Alter

B. Add

C. Insert

D. Create

E. Update

F. Commit

Ans:  C

 

12. Which of these commands will delete a table called XXX if you have appropriate authority:

A. DROP XXX

B. DELETE XXX WHERE confirm = “YES”

C. DROP XXX WHERE confirm = “YES”

D. DROP TABLE XXX

E. DELETE XXX

F. DELETE TABLE XXX

Ans:  D

 

13. The USE command

A. Is a pseudonym for the SELECT command

B. Has been deprecated and should be avoided for security reasons

C. Should be used to choose the database you want to use once you’ve connected to MySQL

D. Is used to load code from another file

Ans:  C

 

14. In a LIKE clause, you can ask for any 6 letter value by writing:

A. LIKE ??????

B. LIKE .{6}

C. LIKE ^.{6}$

D. LIKE …… (that’s six dots)

E. LIKE ______ (that’s six underscore characters)

Ans:  E

 

15. MySQL runs on which operating systems?

A. Unix and Linux only

B. Linux and Mac OS-X only

C. Unix, Linux, Windows and others

D. Any operating system at all

Ans:  C

 

16. MySQL Access security is controlled through

A. MySQL login accounts, and priveliges set for each account

B. The ID that the user logged into the server through, and priveliges set up for that account.

C. A table of valid IP addresses, and priveliges set up for each IP address

D. The normal login security is sufficient for MySQL, and it does not have any extra controls of its own.

Ans:  A

 

17. Which of the following is NOT supported by MySQL

A. Temporary (Hash) Tables

B. Table Joining

C. Stored Procedures

D. Regular Expression Matching

Ans:  C

 

18. One of the early proponents of relational database who laid down many of the principles we use to this day was:

A. Xigang Koi

B. Mahatma Coate

C. Edgar Codd

D. William Crawford

E. Robert Langton

Ans:  C

 

19. You are required to buy a license for MySQL if

A. If you use it for longer than 30 days

B. You use MySQL in a live application and not just for evaluation

C. You incorporate it into a product that you sell

D. You use it on a publicly accessible site

E. You are never required to buy a license

Ans:  C

 

20. Which of these is a valid call to a function (watch the spaces carefully!)

A. CONCAT(  A  ,  B  )

B. CONCAT  (  A  ,  B  )

C. CONCAT(  “A”  ,  “B”  )

D. CONCAT  (  “A”  ,  “B”  )

E. CONCAT  (A,  B)

F. CONCAT  (“A”,  “B”)

Ans:  C

 

21. If you want to undo a GRANT, you should use

A. REVOKE

B. UNDO

C. UNGRANT

D. DELETE

E. WITHDRAW

F. ROLLBACK

Ans:  A

 

22. How many distinct, different values can you hold in an enum field?

A. 255

B. 7

C. 65535

D. 2 (True and False)

Ans:  C

 

23. Which of the following is NOT available in MySQL:

A. REVOKE

B. FETCH

C. LIKE

D. JOIN

E. SELECT

Ans:  B

 

24. Which of these field types would be best to hold a film title?

A. longblob

B. tinytext

C. mediumtext

D. longtext

E. tinyblob

Ans:  B

 

25. The program called mysql is

A. There isn’t a program just called mysql

B. A wrapper through which Java clients must connect to the databases

C. A client program that lets you send SQL commands to the database engine

D. The database engine

E. A program that starts up and shuts down the database engine

Ans:  C

 

26. In a LIKE clause, you can ask for any 6 letter value by writing:

A. LIKE ______ (that’s six underscore characters)

B. LIKE .{6}

C. LIKE ??????

D. LIKE ^.{6}$

E. LIKE …… (that’s six dots)

Ans:  A

 

27. Which of the following is available in MySQL:

A. CREATE VIEW

B. CREATE SCHEMA

C. CREATE TRIGGER

D. CREATE DATABASE

E. CREATE FAIRYLIGHTS

Ans:  D

 

28. Which of these field types would be best to hold a .jpg image?

A. char binary

B. nchar binary

C. text

D. blob

Ans:  D

 

29. If you’re writing a client using the C language API, your source code should include the following line at the top:

A. use mysql;

B. include (“mysql.h”);

C. #include <mysql.h>

D. import com.mysql.*;

Ans:  C

 

30. A user with RELOAD priveliges can

A. Can reset passwords for any mysql user account

B. Perform certain “admin type” operations such as flush table and logs from memory to disc, but can’t normally do anything “dangerous”

C. Can repopulate the databases and tables from a backup

D. Can restart the MySQL daemon in addition to any other priveliges he might also have

Ans:  B

 

31. What’s the difference between the DESCRIBE and SHOW FIELDS FROM commands?

A. Only SHOW FIELDS FROM can take a LIKE clause

B. Nothing – they’re the same thing

C. Only DESCRIBE can take a LIKE clause

Ans:  B

 

32. Which of these is not a valid name for a column

A. To

B. From

C. Far

D. Near

Ans:  B

 

33. Commands passed to the MySQL daemon are written in

A. English

B. Your choice from Perl, PHP, Java or some other languages

C. the Structured Query Language

D. Swedish

Ans:  C

 

34. Which of the following is available in MySQL:

A. CREATE TRIGGER

B. CREATE SCHEMA

C. CREATE FAIRYLIGHTS

D. CREATE DATABASE

E. CREATE VIEW

Ans:  D

 

35. One of the early proponents of relational database who laid down many of the principles we use to this day was:

A. Edgar Codd

B. Xigang Koi

C. Robert Langton

D. Mahatma Coate

E. William Crawford

Ans:  A