C Programming MCQ - Structure & Union

6:   If initialization is a part of a structure, then storage class can be
A. Automatic
B. Register
C. Static
D. Anything
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



7:  

Which of the following comments about union are true?

A.

Union is a structure whose members share the same storage area

B.

Size allocated for union is the size of its member needing the maximum storage

C.

Only one of the members of union can be assigned a value at a particular time

D.

All of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



8:  

Which of the following comments about the usage of structure is true?

A.

Storage class can be assigned to an individual member

B.

Individual members can be initialized within a structure type declaration

C.

The scope of a member name is confined to the particular structure, within which it is defined

D.

None of the above

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



9:  

Consider the following declaration. 
struct addr
{
char city [10];
char street [20];
int pincode;
};

struct
{
char name[20];
int sex;
struct addr locate;
} criminal, *kd * &criminal;

sex can be accessed by

A.

criminal .sex 

B.

( * kd) . sex 

C.

kd —> sex

D.

All of these

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

swamy said: (12:23am on Saturday 30th March 2013)
option a and c and b also correct.

Write your comments here:



10:  

Consider the following declaration. 

struct addr 
{
char city [10];
char street [20]; 
int pincode; 
};

struct 
{
char name[20];
int sex; 
struct addr locate;
} criminal, *kd * &criminal;

pincode can be accessed by

A.

criminal . locate . pincode

B.

criminal .pincode

C.

kd--->locate . pincode

D.

kd. locate —> pincode

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:




Syllabus Covered in this section is

  • Elements of C-Tokens
  • Identifiers
  • data types in C
  • Control structures in, C
  •  Sequence, selection and iteration(s).
  • Structured data types in C
  • Arrays, Structures, union, String, and pointers
  • Functions, Recursion
  • Parameter passing, Scope
  •  Binding, Abstract data types

This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.

Who can benefit - 

  • Any undergraduate or postgraduate student who is seeking C Programming objective type questions answers can use this section.
  • C programming Multiple Choice questions Answers can help you in interview preparation.
  • C Programming Objective type Questions Answers are also used at SSC and HSc level for Exam preparation.
  • C Programming MCQ Questions Answers are also used by engineering students in the preparation of their Exams.
  • Any candidate who has to appear for DOEACC A, B or C level Exam can also learn C Programming Questions Answers.
  • All the teachers who are appearing for Kendriya Vidyalya Sangathan Entrance Exam can also use C Programming Multiple Choice Questions Answers.
  • C Programming MCQs can also be used by the students who are pursuing B.Sc or Msc Computer Science.
  • C Programming Questions Answers can also be used by BCA students for the preparation of their exams.
  • Any student who is pursuing B.Sc. in Information Technology can also use this C Programming mcq Questions Answers.
  •  MCA students can also prepare for their exams using  C Programming Objective Type Questions Answers.
  • You can get free access to C Programming mcq pdf.
  • You can also have online access to C Programming Questions Answers EBook.

Various Search Terms used for this section are

  • C Programming quiz questions with answers

  • C Programming exam questions answers

  • C Programming MCQ questions Answers

  • C Programming MCQ

  • C Programming Questions Answers