adplus-dvertising

Welcome to the Structures and Unions MCQs Page

Dive deep into the fascinating world of Structures and Unions with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Structures and Unions, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Structures and Unions, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Structures and Unions. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Structures and Unions. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Structures and Unions MCQs | Page 20 of 27

Q191.
A short integer occupies 2 bytes an, ordinary integer 4 bytes and a long integer occupies 8 bytes of memory. If a structure is defined as follows, the the total memory requirement for TABLE is
struct TAB{
 short a;
 int b;
 long c;
 }TABLE[10];
Discuss
Answer: (b).140
Q192.
The expression a<<6 shifts all bits of a six places to the left. If a 0x6db7, then what is the value of a<<6?
Discuss
Answer: (c).0x6dc0
Discuss
Answer: (b).Each can represent either a 12-character color or an integer size at a time
Discuss
Answer: (b).Union contain members of different data types which share the same storage area in memory
Q195.
If initialization is a part of a structure, then storage class can be
Discuss
Answer: (d).Anything
Discuss
Answer: (d).All of these
Discuss
Answer: (c).The scope of a member name is confined to the particular structure, within which it is defined
Q198.
Consider the following declaration.  sex can be accessed by
struct addr
 {
 char city [10];
 char street [20];
 int pincode;
 };
struct
 {
 char name[20];
 int sex;
 struct addr locate;
 } criminal, *kd * &criminal;
Discuss
Answer: (d).All of these
Q199.
Consider the following declaration.  pincode can be accessed by
struct addr 
 {
 char city [10];
 char street [20]; 
 int pincode; 
 };
struct 
 {
 char name[20];
 int sex; 
 struct addr locate;
 } criminal, *kd * &criminal;
Discuss
Answer: (c).kd--->locate . pincode
Q200.
Consider the following declaration.  The third character in the criminal name can be accessed by
struct addr 
{
char city [10];
char street [20]; 
int pincode; 
};
struct 
{
char name[20];
int sex; 
struct addr locate;
} criminal, *kd * &criminal;
Discuss
Answer: (d).All of these

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!