Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : c - STRUCTURE AND UNION
STRUCTURE AND UNION
00:00:00
English
Hindi
Question No# :
01
out of 13
Difference between structure and union is
Difference between structure and union is
A.
We can define functions within structures but not within a union
We can define functions within structures but not within a union
B.
We can define functions within union but not within a structure
We can define functions within union but not within a structure
C.
The way memory is allocated
The way memory is allocated
D.
There is no difference
There is no difference
Question No# :
02
out of 13
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
Question No# :
03
out of 13
Which operator connects the structure name to its member name?
कौन सा ऑपरेटर संरचना के नाम को उसके सदस्य के नाम से जोड़ता है?
A.
- (Minus)
B.
<- (Left Arrow)
C.
. (Dot)
D.
Both <- and .
Question No# :
04
out of 13
What is the similarity between a structure, union and enumeration?
What is the similarity between a structure, union and enumeration?
A.
All of them let you define new values
All of them let you define new values
B.
All of them let you define new data types
All of them let you define new data types
C.
All of them let you define new pointers
All of them let you define new pointers
D.
All of them let you define new structures
All of them let you define new structures
Question No# :
05
out of 13
Which of the following accesses a variable in structure b?
Which of the following accesses a variable in structure b?
A.
b->var;
B.
b.var;
C.
b-var;
D.
b>var;
Question No# :
06
out of 13
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
Question No# :
07
out of 13
Which properly declares a variable of struct Student?
Which properly declares a variable of struct Student?
A.
struct stu;
B.
struct Student stu;
C.
stu;
D.
int stu
Question No# :
08
out of 13
What will be the output of the following code?
struct { int si;
double d;
float *cp; } s ;
void main() {
printf(“%d, %d, %d”, sizeof(s.d), sizeof(s.cp), sizeof(s)); }
What will be the output of the following code?
struct { int si;
double d;
float *cp; } s ;
void main() {
printf(“%d, %d, %d”, sizeof(s.d), sizeof(s.cp), sizeof(s)); }
A.
4, 4, 12
4, 4, 12
B.
8, 2, 12
8, 2, 12
C.
10, 4, 16
10, 4, 16
D.
8, 4, 14
8, 4, 14
Question No# :
09
out of 13
enum types are processed by _________
enum types are processed by _________
A.
Compiler
Compiler
B.
Preprocessor
Preprocessor
C.
Linker
Linker
D.
Assembler
Assembler
Question No# :
10
out of 13
User-defined data type can be derived by
उपयोगकर्ता द्वारा परिभाषित डेटा प्रकार द्वारा प्राप्त किया जा सकता है
A.
struct
B.
enum
C.
typedef
D.
all of the mentioned
Question No# :
11
out of 13
Which of the following is a properly defined struct?
Which of the following is a properly defined struct?
A.
struct {int a;}
B.
struct a_struct {int a;}
C.
struct a_struct int a;
D.
struct a_struct {int a;};
Question No# :
12
out of 13
Which of the following cannot be a structure member?
निम्नलिखित में से कौन एक संरचना सदस्य नहीं हो सकता है?
A.
Another structure
B.
Function
C.
Array
D.
None of the mentioned
Question No# :
13
out of 13
Which of the following are themselves a collection of different data types?
निम्नलिखित में से कौन स्वयं विभिन्न डेटा प्रकारों का एक संग्रह है?
A.
string
B.
structures
C.
char
D.
all of the mentioned
Latest Current Affairs 2024
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2024
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz