InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which command is used to make a script file ‘run_me.sh’ executable?(a) chmod +e run_me.sh(b) chmod +a run_me.sh(c) chmod +y run_me.sh(d) chmod +x run_me.shThe question was posed to me during an interview for a job.This intriguing question comes from Relocating Data Directory Contents in section MySQL Data Directory of MySQL |
|
Answer» The correct choice is (d) chmod +x run_me.sh |
|
| 2. |
Mysql cannot be used to execute script files.(a) True(b) FalseThe question was posed to me in an interview for internship.The question is from Relocating Data Directory Contents topic in section MySQL Data Directory of MySQL |
|
Answer» The correct option is (b) False |
|
| 3. |
In which file are the statements entered in ‘mysql’ saved?(a) .mysql_queries(b) .queries(c) .mysql_history(d) .historyI had been asked this question in an internship interview.I want to ask this question from Relocating Data Directory Contents in section MySQL Data Directory of MySQL |
|
Answer» Correct ANSWER is (C) .mysql_history |
|
| 4. |
What is the special database that always exists after setting up MySQL on a computer?(a) sampdb(b) mysql(c) information_schema(d) readme_dbI have been asked this question during an interview for a job.The question is from Relocating Data Directory Contents in division MySQL Data Directory of MySQL |
|
Answer» Right answer is (c) information_schema |
|
| 5. |
When relocating an individual table, the table to be relocated should be ______________(a) MyISAM(b) InnoDB(c) TRANSACTION(d) ENGINEThis question was addressed to me during an interview.My enquiry is from Relocating Data Directory Contents in division MySQL Data Directory of MySQL |
|
Answer» Right ANSWER is (a) MyISAM |
|
| 6. |
Before relocation of database, the server should be stopped if running.(a) True(b) FalseI have been asked this question during an online interview.My enquiry is from Relocating Data Directory Contents in division MySQL Data Directory of MySQL |
|
Answer» CORRECT answer is (a) True For explanation: The server ALWAYS looks for the database directories in the data directory. The only way to RELOCATE a database is by the symlink method. The server should be stopped if RUNNING. |
|
| 7. |
For which of these is the startup option best suited?(a) entire data directory(b) individual database tables(c) server PID file(d) individual database directoriesI have been asked this question in an online quiz.I'd like to ask this question from Relocating Data Directory Contents in portion MySQL Data Directory of MySQL |
|
Answer» RIGHT answer is (C) server PID file Best explanation: The startup option is BETTER suited relocation method for server PID file and the log FILES, while symlink is an applicable relocation method for the individual DATABASE tables. |
|
| 8. |
Symlink is an applicable relocation method for ______________(a) entire data directory(b) individual database tables(c) server PID file(d) log filesI had been asked this question in my homework.Enquiry is from Relocating Data Directory Contents topic in portion MySQL Data Directory of MySQL |
|
Answer» Correct answer is (b) individual database TABLES |
|
| 9. |
What is the statement used to select a default database?(a) USE(b) CREATE(c) DROP(d) SCHEMAThis question was posed to me in semester exam.My question comes from Structure of the Data Directory in portion MySQL Data Directory of MySQL |
|
Answer» Right answer is (a) USE |
|
| 10. |
What is the synonym for CHARACTER SET?(a) CSET(b) CHSET(c) CHARSET(d) CHCSETI got this question in class test.This interesting question is from Structure of the Data Directory in section MySQL Data Directory of MySQL |
|
Answer» Right option is (c) CHARSET |
|
| 11. |
The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________(a) –ensure(b) –force(c) –violent(d) –runThis question was addressed to me in final exam.Asked question is from Structure of the Data Directory in chapter MySQL Data Directory of MySQL |
|
Answer» Right choice is (b) –force |
|
| 12. |
mysql_next_result() does not return.(a) True(b) FalseI got this question in an online interview.My doubt is from Structure of the Data Directory in section MySQL Data Directory of MySQL |
|
Answer» Correct answer is (b) False |
|
| 13. |
The data directory subdirectory that corresponds to the nbdinfo database is ______________(a) mysql(b) performance_schema(c) sys(d) nbdinfoThis question was posed to me in semester exam.This is a very interesting question from Structure of the Data Directory topic in division MySQL Data Directory of MySQL |
|
Answer» CORRECT choice is (b) performance_schema The BEST explanation: The SYS directory corresponds to the sys SCHEMA. It provides a SET of objects to interpret Performance Schema information. The ‘performance_schema’ directory corresponds to the Performance Schema. |
|
| 14. |
What is the maximum number of characters allowed for a database name to have?(a) 16(b) 32(c) 64(d) 128The question was asked in an interview for job.I want to ask this question from Structure of the Data Directory in section MySQL Data Directory of MySQL |
|
Answer» Correct OPTION is (C) 64 |
|
| 15. |
In the database directory of the database each view and trigger object is associated with how many files?(a) 0(b) 1(c) 2(d) 3This question was posed to me at a job interview.My question comes from Structure of the Data Directory topic in chapter MySQL Data Directory of MySQL |
|
Answer» Right option is (b) 1 |
|
| 16. |
Each database has a data directory located under database directory.(a) True(b) FalseI had been asked this question by my school teacher while I was bunking the class.The above asked question is from Structure of the Data Directory topic in section MySQL Data Directory of MySQL |
|
Answer» The CORRECT option is (b) False |
|
| 17. |
An embedded application includes the server side and client side.(a) True(b) FalseI have been asked this question in an international level competition.I'm obligated to ask this question of Location of the Data Directory in chapter MySQL Data Directory of MySQL |
|
Answer» The correct option is (a) True |
|
| 18. |
Multiple statement execution is not enabled by default.(a) True(b) FalseI have been asked this question during an interview for a job.Origin of the question is Location of the Data Directory in portion MySQL Data Directory of MySQL |
|
Answer» The CORRECT choice is (a) True |
|
| 19. |
What is the embedded server library when building from source enabled by?(a) –with-embedded-server(b) –with-server-embedded(c) –with-embedded-library(d) –with-library-embeddedThis question was addressed to me in an internship interview.The query is from Location of the Data Directory topic in chapter MySQL Data Directory of MySQL |
|
Answer» Right answer is (a) –with-embedded-SERVER |
|
| 20. |
What is the embedded server library containing the MySQL server linkable into applications?(a) libmysqla(b) libmysqlb(c) libmysqlc(d) libmysqldI have been asked this question during an online exam.This key question is from Location of the Data Directory in chapter MySQL Data Directory of MySQL |
|
Answer» Right choice is (d) libmysqld |
|
| 21. |
What is exec_stmt_ssl written in?(a) C++(b) C(c) Python(d) PerlThe question was asked in class test.My query is from Location of the Data Directory topic in chapter MySQL Data Directory of MySQL |
|
Answer» The CORRECT choice is (b) C |
|
| 22. |
Encrypted connections can be established using ______________(a) exec_stmt_ssl(b) exec_ssl_stmt(c) exec_stmnt_ssl(d) exec_ssl_stmntI got this question during an interview for a job.My question is from Location of the Data Directory in chapter MySQL Data Directory of MySQL |
|
Answer» Correct answer is (a) exec_stmt_ssl |
|
| 23. |
Which data directory subdirectory corresponds to the nbdinfo database?(a) mysql(b) performance_schema(c) sys(d) nbdinfoThe question was posed to me during an interview.My enquiry is from Location of the Data Directory topic in chapter MySQL Data Directory of MySQL |
|
Answer» Correct ANSWER is (B) performance_schema |
|
| 24. |
Which data directory subdirectory provides the information used to inspect the internal execution of the server at runtime.(a) mysql(b) performance_schema(c) sys(d) nbdinfoThis question was posed to me during an interview for a job.This is a very interesting question from Location of the Data Directory in division MySQL Data Directory of MySQL |
|
Answer» RIGHT option is (b) performance_schema To elaborate: The ‘performance_schema’ directory corresponds to the Performance Schema. It provides information used to inspect the internal execution of the server at RUNTIME. The ‘SYS’ directory maps to ‘nbdinfo’. |
|
| 25. |
The datadir variable value can be seen using ______________(a) SHOW VARIABLES(b) DISP VARIABLES(c) CONNECT VARIABLES(d) SHOW VARIABLEThe question was asked in exam.I need to ask this question from Location of the Data Directory topic in chapter MySQL Data Directory of MySQL |
|
Answer» Right choice is (a) SHOW VARIABLES |
|
| 26. |
The option that specifies the data directory location at server startup is ______________(a) –data(b) –data_dir(c) –data-dir(d) –datadirI got this question in final exam.This interesting question is from Location of the Data Directory in division MySQL Data Directory of MySQL |
|
Answer» Right choice is (d) –datadir |
|