MySQL Connectors and APIs
- Which API provides the lowest level interface to the server?
-
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.
- Which option is necessary to compile a C program havin math functions?
-
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().
- The option for specifying the executable name while compiling with gcc is _____________.
-
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’.
- Which file can be used to execute multiple compile statements?
-
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.
- Which flag is used to compile client programs that use MySQL header files?
-
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.