MySQL Connectors and APIs


  1. The MySQL clients are linked with _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    MySQL clients should be linked using the ‘-lmysqlclient’ option in the link command. A ‘-L’ option is also need to be specified to tell the linker where to find the library for it.


  1. Which flag is used to compile client programs that use MySQL header files?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    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.



  1. Which file can be used to execute multiple compile statements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    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.


  1. The option for specifying the executable name while compiling with gcc is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    When a C program is compiled with gcc, the option -o is issued in order to specify the name of the executable that is created after compilation. The default name given is ‘a.out’.



  1. Which option is necessary to compile a C program havin math functions?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    To compile a program written in the C language, it is compiled by issuing the option ‘-lm’. The examples of some math functions found in ‘math.h’ are floor(), sqrt(), pow(), log().