Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

C Question Bank

We have started series of C programming Question bank for job interview candidates.Engineering Professionals and students alike will be benefited.We encourage our readers to provide feedback and ask question if required. We have tried our best to avoid any errors/ misprints,but if found by our readers please let us know.We recommend our user to go through previous post to enhance their knowledge and increase their work productivity and skill ratings at their Job.

C Programming
What is Storage class?
Dangling and Wild Pointers
Unions-Why And When To Use

1.  Difference between Structure and union is

  1.     We can Define Functions within structures but not within a union
  2.     We can define functions within union but not within a structure
  3.     The way memory is allocated
  4.     There is no difference

Answer: Option C

2. What among following is true about stack

  1.     stack cannot reuse its memory
  2.     all elements are of different datatypes
  3.     all operation done at one end
  4.     none of above

Answer: Option C

3. To access the members of structure which symbol is used

  1.     *
  2.     -
  3.     ,
  4.     .

Answer: Option D

4. A member is a

  1.     Variable in a structure
  2.     Datatype of structure
  3.     Structure pointer
  4.     None of above

Answer: Option A

5. Structures can be used

  1.     to hold different datatypes
  2.     have pointers to structures
  3.     to assign to one another
  4.     all of above

Answer: Option D

6. UML meaning is

  1.     Unique modeling language
  2.     Unified modeling language
  3.     Unified modern language
  4.     Unified master language

Answer: Option B

7. printf() belongs to which library of c

  1.     stdlib.h
  2.     stdio.h
  3.     stdout.h
  4.     stdoutput.h

Answer: Option B



8. A variable in c

  1.     must have a valid datatype
  2.     can't have a name same as keyword
  3.     must have a name starting with a character
  4.     All of above

Answer: Option D

9. What is correct order of precedence in C

  1.     Addition, Division, Modulus
  2.     Addition, Modulus, Division
  3.     Multiplication, Substration, Modulus
  4.     Modulus, Multiplication, Substation

Answer: Option D

10. What is true about fputs function

  1.     write to a file
  2.     takes two parameters
  3.     requires a file pointer
  4.     all of above

Answer: Option D
CONTINUE READING »


This post first appeared on IngenuityDias, please read the originial post: here

Share the post

C Question Bank

×

Subscribe to Ingenuitydias

Get updates delivered right to your inbox!

Thank you for your subscription

×