ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE - STRUCTURE AND UNION MCQ Questions
English
Hindi
Question No. -
01
Report Bug
All the members of a union should be of same type.
All the members of a union should be of same type.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
02
Report Bug
The memory required in structure is less than union.
The memory required in structure is less than union.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
03
Report Bug
Which of the following is a User-defined data type?
Which of the following is a User-defined data type?
A.
typedef int Boolean;
typedef int Boolean;
B.
typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
C.
struct {char name[10], int age};
struct {char name[10], int age};
D.
all of the mentioned
all of the mentioned
Explanation
typedef and struct are used to define user-defined data types.
Question No. -
04
Report Bug
Which of the data types has the size that is variable?
Which of the data types has the size that is variable?
A.
int
int
B.
struct
struct
C.
float
float
D.
double
double
Explanation
Since the size of the structure depends on its fields, it has a variable size.
Question No. -
05
Report Bug
enum types are processed by _________
enum types are processed by _________
A.
Compiler
Compiler
B.
Preprocessor
Preprocessor
C.
Linker
Linker
D.
Assembler
Assembler
Question No. -
06
Report Bug
A structure can contain similar or dissimilar elements
A structure can contain similar or dissimilar elements
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
07
Report Bug
A structure can contain pointer to itself.
A structure can contain pointer to itself.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
08
Report Bug
Size of all elements in a union should be same.
Size of all elements in a union should be same.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
09
Report Bug
The memory required in structure is less than union.
The memory required in structure is less than union.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
10
Report Bug
A structure can contain similar or dissimilar elements.
A structure can contain similar or dissimilar elements.
A.
TRUE
सही
B.
FALSE
गलत
1
2
3
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad