Q. Property which allows to produce different executable for different platforms in C is called?

  • (A) File inclusion
  • (B) Selective inclusion
  • (C) Conditional compilation
  • (D) Recursive macros
πŸ’¬ Discuss
βœ… Correct Answer: (C) Conditional compilation

Q. What is #include ?

  • (A) Preprocessor directive
  • (B) Inclusion directive
  • (C) File inclusion directive
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Preprocessor directive

Q. C preprocessors can have compiler specific features.

  • (A) True
  • (B) False
  • (C) Depends on the standard
  • (D) Depends on the platform
πŸ’¬ Discuss
βœ… Correct Answer: (A) True

Q. Which of the following are C preprocessors?

  • (A) #ifdef
  • (B) #define
  • (C) #endif
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of the mentioned

Q. The C-preprocessors are specified with _________ symbol.

  • (A) #
  • (B) $
  • (C) ” ”
  • (D) &
πŸ’¬ Discuss
βœ… Correct Answer: (A) #

Q. Which among the following is never possible as an output for float?

  • (A) 4.123456
  • (B) 5.1234
  • (C) 6
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) none of these

Q. How many digits are present after decimal in float value?

  • (A) 6
  • (B) 1
  • (C) 3
  • (D) 16
πŸ’¬ Discuss
βœ… Correct Answer: (A) 6

Q. When do you need to use type-conversions?

  • (A) The value to be stored is in a form not supported by that data type
  • (B) To reduce the memory in use, relevant to the value
  • (C) The value to be stored is beyond the max limit
  • (D) All of above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of above

Q. Which of the following typecasting is accepted by C?

  • (A) conversions
  • (B) Widening conversions
  • (C) Narrowing conversions
  • (D) Widening & Narrowing conversions
πŸ’¬ Discuss
βœ… Correct Answer: (D) Widening & Narrowing conversions

Q. Which of the following type-casting have chances for wrap around?

  • (A) From char to int
  • (B) From char to short
  • (C) From int to float
  • (D) From int to char
πŸ’¬ Discuss
βœ… Correct Answer: (D) From int to char