MySQL Connectors and APIs


  1. Which API provides the lowest level interface to the server?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The C Application Programming Interface provides the lowest level interface to the server. It enforces the least policy. Therefore it provides the least amount of safety net.


  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().



  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 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. 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.