Multiple Choice Questions In C With Answers

1) The Conditional Compilation  ?
  1. It is taken care of by the compiler
  2. It is setting the compiler options conditionally
  3. It is compiling a program based on condition
  4. None of Above
Show/Hide Answer
Answer = C 

2) Originally C was developed as ?
  1. System Programming Language
  2. General Purpose Language
  3. Data Processing Language
  4. None of Above
Show/Hide Answer
Answer = A
3) Minimum number of temporary variable needed to swap the contents of 2 variable is ?
  1. 1
  2. 2
  3. 3
  4. 0
Show/Hide Answer
Answer =D

4)*ptr++ is equivalent to ?
  1. ptr++
  2. *ptr
  3. ++*ptr
  4. None of Above
Show/Hide Answer
Answer =  D
5) Expression C=i++ Causes ?

  1. Value of i is assigned to C and then I is incremented by 1
  2. i to be incremented by 1, and then value of i assigned to C
  3. Value of i assigned to C
  4. i to be incremented by 1
Show/Hide Answer
Answer = A

6) Declaration int *(*p) int(*a)(i) is ?
  1. A pointer to function that accepts an integer argument and returns an integer
  2. A pointer to a, which returns an integer
  3. A pointer to subroutine, which returns result of evaluation
  4. None of Above
Show/Hide Answer
Answer = A
7) Null pointer and UN-initialized pointers are same ?
  1. True
  2. False
  3. Varies from program to program
  4. None of Above
Show/Hide Answer
Answer = B
8) In which header file Null macro is defined ?
  1. stdio.h and stddeth
  2. Iostream.h
  3. string.h
  4. preprocessor
Show/Hide Answer
Answer = A 
9) Null pointer is ?
  1. A pointer which does not point anywhere
  2. Pointer defined with name Null
  3. A pointer that returns 0 values
  4. None of Above
Show/Hide Answer
Answer = A
10) Null macro is ?
  1. A macro with name Null
  2. A macro which represents Null pointer
  3. A macro defined with no name
  4. None of Above
Show/Hide Answer
Answer = B


Do You Like This? Please take 5 seconds to share with your firends.

0 comments:

Post a Comment