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


11. Adding to a pointer that points to an array will

  1.     Cause an error
  2.     Increase the value of the element that the pointer is pointing to
  3.     Cause the pointer to point to the next element in the array
  4.     None of above

Answer: Option C

12. Which is invalid name of identifier

  1.     world
  2.     addition23
  3.     test_name
  4.     factorial

Answer: Option C

13. What is dangling pointer in c

  1.     if pointer is pointing to a memory location from where variable has been deleted
  2.     if pointer is assigned to more than one variable
  3.     if pointer is not defined properly
  4.     none of above

Answer: Option A

14. Wild pointer in C

  1.     if pointer is pointing to a memory location from where variable has been deleted
  2.     if pointer has not been initialized
  3.     if pointer has not defined properly
  4.     if pointer pointing to more than one variable

Answer: Option B

15. Disadvantage of array in C is

  1.     We can easily access each element
  2.     It is necessary to declare too many variables
  3.     It can store only one similar type of data
  4.     None of above

Answer: Option C

16. What is prototype of a function in C

  1.     It is the return type of a function
  2.     It is the return data of the function
  3.     It is declaration of a function
  4.     It is a datatype

Answer: Option C

17. Any type of modification on the parameter inside the function will reflect in actual variable value can be related to

  1.     call by value
  2.     call by reference
  3.     both of above
  4.     none of above

Answer: Option B

18. Size of void pointer is

  1.     1 byte
  2.     2 byte
  3.     4 byte
  4.     8 byte

Answer: Option B

19. What is wild pointer in c

  1.     a pointer which we need to write in future
  2.     a pointer which has bad naming convention
  3.     a pointer which has no limit
  4.     a point which has not initialised

Answer: Option D

20. Continue statement used for

  1.         To continue to the next line of code
  2.         To stop the current iteration and begin the next iteration from the beginning
  3.         To handle run time error
  4.         None of above

Answer: Option B

21. What will be output of
    #include
    void main()
    {
    char test =`S`;
    printf("\n%c",test);
    }

  1.         S
  2.         Error
  3.         Garbage value
  4.         None of above

Answer: Option A

Related

Programming - C Viva Questions for Engineering Freshers Basics Tutorials

1.) Which among the following is odd one out? a.) printf b.) fprintf c.) putchar d.) scanf ANSWER: d.) scanf 2.) For a typical program, the input is taken using. a.) scanf b.) Files c.) Comma...

Embedded C Programming Twenty Interview Questions Basics Viva Tutorials

1.) Trace the output of the code #include  void foo(int*); int main() { int i = 10; foo((&i)++); } void foo(int *p) { printf(""%d\n"", *p); }  a.) 10 b.) Some garbage val...

C Programming Interview Questions Basics Viva Tutorials

1.) If every node u in G is adjacent to every other node v in G, A graph is said to be a.) isolated b.) complete c.) finite d.) strongly connected ANSWER: b.) complete 2.) In a Heap tree a.) V...

Post a Comment

SPAMMING will not be Appreciated.

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

Hot in weekRecentComments

Hot in week

Recent

C Programming - Data Structure Interview Questions Answer

We have started series of C programming Q&A for job interview for freshers.Computer / IT Engineering Professionals and Students alike will be benefited.We recommend our user to go through pre...

C Programming Question Answer

We have started series of C programming Q&A for job interview candidates.Engineering Professionals and students alike will be benefited.We recommend our user to go through previous post to enha...

Java Objective Multiple Answer Questions Bank

We have chosen Java Oracle J2EE, J2SE, Net-beans, JVM ( Java Virtual Machine ) as our readers choice.We have created Objective Type Multiple Answer Question Collection that are frequent in job inte...

Java Question Bank Objective Q&A

Here we have collected frequently asked question in job interviews.We have chosen Java as our readers choice.You will find these helpful.We encourage our Readers to send in their suggestion. If re...

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 as...

Comments

Anonymous:

Technology is always being the vital part of evolution either mobile phones or computer all are the part of it. Electronics have made things so easy and reliable for human being s. very few schools in...

Anonymous:

A detailed and complete knowledge guide for fresher's to crack their interviews in Embedded Programming. Looking for a job contact <a href="http:/celebratejobs.com/>celebratejobs</a&...

YouLoseBellyFat:

visual basic example codes

App Development Mumbai:

It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.

Anonymous:

Thanks for Appreciations.We love to hear again from you.

Our Channel

Contact Us

Name

Email *

Message *

item