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

Structures And Unions C Programming Interview Questions- Basics Viva Tutorials

1.A bit field is
a) A pointer variable in a structure.
b) One bit or a set of adjacent bits within a word
c) A pointer variable in a union
d) Not used in C
ANSWER: B

2.Union differs from structure in the following way
a) All members are used at a time
b) Only one member can be used at a time
c) Union cannot have more members
d) Union initialized all members as structure
ANSWER: B

3.What type of structure is created by the following definition?
struct first { . . . ; struct second *s};
struct second { . . . ; struct first *f};
a) Nested structure
b) Self-referential structure
c) Invalid structure
d) Structured structure
ANSWER: B

4.Identify the wrong syntax
a) typedef struct { member declaration; } NAME; NAME V1, V2; 
b) typedef struct tag{ member declaration; } NAME; NAME V1, V2; 
c) typedef struct { member declaration; } NAME; NAME V1, V2; 
d) typedef struct tag { member declaration; } NAME; NAME V1, V2; 
ANSWER: D

5.The changes made in the members of a structure are available in the calling function if
a) pointer to structure is passed as argument
b) structure variable is passed
c) the member other then pointer type are passed as argument
d) both option a and c
ANSWER: A
CONTINUE READING »


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

Share the post

Structures And Unions C Programming Interview Questions- Basics Viva Tutorials

×

Subscribe to Ingenuitydias

Get updates delivered right to your inbox!

Thank you for your subscription

×