MySQL Connectors and APIs
- The MySQL clients are linked with _____________.
-
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.
- 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.
- 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.
- 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 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().