Q. The β€˜SOCKET’ protocol is permitted on which operating systems?

  • (A) windows only
  • (B) unix only
  • (C) all
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (B) unix only

Q. The –protocol value β€˜TCP’ runs on which operating systems?

  • (A) windows only
  • (B) unix only
  • (C) all
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (C) all

Q. Connections to remote servers always use TCP/IP.

  • (A) False
  • (B) True
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (B) True

Q. Which option is supplied to ensure TCP/IP connection to local server?

  • (A) –connectlocal
  • (B) –hostlocal
  • (C) –localhost
  • (D) –host
πŸ’¬ Discuss
βœ… Correct Answer: (D) –host

Q. Which of the following can be used interchangeably with MYSQL_VERSION_ID?

  • (A) LIBMYSQL_VERSION_ID
  • (B) MYSQL_VERSION_ID
  • (C) MYSQL_ID
  • (D) LIBMYSQL_VERSION
πŸ’¬ Discuss
βœ… Correct Answer: (A) LIBMYSQL_VERSION_ID

Q. Which of these can be used in place of MYSQL_SERVER_VERSION?

  • (A) LIBMYSQL_VERSION_ID
  • (B) MYSQL_ID
  • (C) LIBMYSQL_VERSION
  • (D) MYSQL_VERSION_ID
πŸ’¬ Discuss
βœ… Correct Answer: (C) LIBMYSQL_VERSION

Q. When linking to a static MySQL C client library, the client library and the client application must use the same compiler option.

  • (A) False
  • (B) True
  • (C) NA
  • (D) NA
πŸ’¬ Discuss
βœ… Correct Answer: (B) True

Q. mysql_init() returns a _____________.

  • (A) float
  • (B) structure
  • (C) pointer to a structure
  • (D) integer
πŸ’¬ Discuss
βœ… Correct Answer: (C) pointer to a structure

Q. Which header should be included first?

  • (A) mysql.h
  • (B) my_global.h
  • (C) my_local.h
  • (D) my_sys.h
πŸ’¬ Discuss
βœ… Correct Answer: (B) my_global.h

Q. Which library file contains various portability macros and definitions?

  • (A) mysql.h
  • (B) my_local.h
  • (C) my_sys.h
  • (D) my_global.h
πŸ’¬ Discuss
βœ… Correct Answer: (C) my_sys.h