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.
| 51. |
Which option is supplied to ensure TCP/IP connection to local server?(a) –localhost(b) –host(c) –hostlocal(d) –connectlocalThe question was posed to me in an international level competition.This question is from Connecting to the Server topic in division MySQL Programs Using C of MySQL |
|
Answer» Correct option is (b) –host |
|
| 52. |
Which of the following can be used interchangeably with MYSQL_VERSION_ID?(a) LIBMYSQL_VERSION(b) LIBMYSQL_VERSION_ID(c) MYSQL_VERSION_ID(d) MYSQL_IDThe question was asked in exam.Query is from Connecting to the Server topic in portion MySQL Programs Using C of MySQL |
|
Answer» CORRECT choice is (b) LIBMYSQL_VERSION_ID The best explanation: The ‘LIBMYSQL_VERSION’ and ‘LIBMYSQL_VERSION_ID’ macros have the same values as ‘MYSQL_SERVER_VERSION’ and ‘MYSQL_VERSION_ID’ and the two SETS of macros can be USED INTERCHANGEABLY. |
|
| 53. |
Which of these can be used in place of MYSQL_SERVER_VERSION?(a) LIBMYSQL_VERSION(b) LIBMYSQL_VERSION_ID(c) MYSQL_VERSION_ID(d) MYSQL_IDI have been asked this question during a job interview.This intriguing question comes from Connecting to the Server topic in chapter MySQL Programs Using C of MySQL |
|
Answer» The CORRECT ANSWER is (a) LIBMYSQL_VERSION |
|
| 54. |
When linking to a static MySQL C client library, the client library and the client application must use the same compiler option.(a) True(b) FalseI got this question by my school teacher while I was bunking the class.Enquiry is from Connecting to the Server in division MySQL Programs Using C of MySQL |
|
Answer» Right answer is (a) True |
|
| 55. |
mysql_init() returns a _____________(a) integer(b) float(c) structure(d) pointer to a structureThe question was asked in exam.The doubt is from Connecting to the Server topic in portion MySQL Programs Using C of MySQL |
|
Answer» The correct choice is (d) pointer to a structure |
|
| 56. |
Which header should be included first?(a) my_global.h(b) my_sys.h(c) mysql.h(d) my_local.hI have been asked this question in exam.The query is from Connecting to the Server in section MySQL Programs Using C of MySQL |
|
Answer» Right choice is (a) my_global.h |
|
| 57. |
Which library file contains various portability macros and definitions?(a) my_global.h(b) my_sys.h(c) mysql.h(d) my_local.hI had been asked this question in an international level competition.Asked question is from Connecting to the Server in portion MySQL Programs Using C of MySQL |
|
Answer» The correct OPTION is (b) my_sys.h |
|
| 58. |
Which of the following is used on Solaris?(a) gcc(b) clang(c) Sun Studio(d) FreeBSDThe question was posed to me in exam.Asked question is from Compiling and Linking Client Programs in division MySQL Programs Using C of MySQL |
|
Answer» The correct CHOICE is (c) Sun STUDIO |
|
| 59. |
The static C library client in Windows is _____________(a) mysqlclient.lib(b) mysqlclient.lb(c) mysqlclient.lm(d) myclient.libThis question was posed to me in an online interview.The above asked question is from Compiling and Linking Client Programs topic in section MySQL Programs Using C of MySQL |
|
Answer» Right option is (a) mysqlclient.lib |
|
| 60. |
What can be used as an alternative to mysqlconfig?(a) pkg-config(b) dkg-config(c) rkg-config(d) qkg-configI have been asked this question in exam.Query is from Compiling and Linking Client Programs in chapter MySQL Programs Using C of MySQL |
|
Answer» The correct CHOICE is (a) pkg-config |
|
| 61. |
On Unix, linking uses dynamic libraries by default.(a) True(b) FalseI have been asked this question during an online interview.Enquiry is from Compiling and Linking Client Programs in chapter MySQL Programs Using C of MySQL |
|
Answer» Correct choice is (a) True |
|
| 62. |
The MySQL clients are linked with _____________(a) -lmysqlclient(b) -cmysqlclient(c) -dmysqlclient(d) -vmysqlclientI have been asked this question in homework.I want to ask this question from Compiling and Linking Client Programs in portion MySQL Programs Using C of MySQL |
|
Answer» Correct answer is (a) -lmysqlclient |
|
| 63. |
Which flag is used to compile client programs that use MySQL header files?(a) -O(b) -I(c) -U(d) -AThis question was posed to me in an online interview.The doubt is from Compiling and Linking Client Programs in portion MySQL Programs Using C of MySQL |
|
Answer» CORRECT answer is (b) -I To explain I would say: The ‘-I’ OPTION is specified when the client PROGRAMS are compiled that use the MySQL header FILES. The compiler can easily FIND these header files when the ‘-I’ option is used. |
|
| 64. |
Which file can be used to execute multiple compile statements?(a) makefile(b) dofile(c) putfile(d) pushfileThe question was asked in a national level competition.I would like to ask this question from Compiling and Linking Client Programs in chapter MySQL Programs Using C of MySQL |
|
Answer» CORRECT choice is (a) makefile The BEST explanation: The Makefile is used to write multiple commands in there. The file is executed by PREFIXING the command ‘make’ with the command to run the file script CONTAINING the STATEMENTS. |
|
| 65. |
The option for specifying the executable name while compiling with gcc is _____________(a) -e(b) -o(c) -a(d) -bThe question was asked by my school principal while I was bunking the class.My question is from Compiling and Linking Client Programs in chapter MySQL Programs Using C of MySQL |
|
Answer» Right choice is (B) -o |
|
| 66. |
Which option is necessary to compile a C program havin math functions?(a) -lm(b) -ln(c) -lp(d) -lqThis question was posed to me in a job interview.Enquiry is from Compiling and Linking Client Programs topic in portion MySQL Programs Using C of MySQL |
|
Answer» Right option is (a) -lm |
|