Which of the following are collection of different data types
Union in c 10

Quiz
•
Computers
•
University
•
Easy
Abhishek Pandey
Used 4+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
string
char
float
union
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
size of union is size of the longest data member in the union
True
false
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The size of the following union, where an int occupies 4 bytes of memory is
union demo
{
float x;
int y;
char z[10];
};
10
8
7
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Size of a structure is determined by size of the.
First member in the structure
Last member in the structure
Sum of the sizes of all members
sizes of largest members
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Union differs from structure in the following way
Only one member can be used at a time
Union cannot have more members
Union initialized all members as structure
all members are used at a time
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Int main()
{ union var { int a, b; };
union var v;
v.a=10;
v.b=20;
printf("%d\n", v.a);
return 0; }
10
30
20
all
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main(){
struct number
{
int no;
char name[20];
};
struct number s;
s.no = 50;
printf("%d", s.no);
}
5
3
50
Compile time error
Similar Resources on Quizizz
10 questions
C++ Functions

Quiz
•
University
10 questions
Rapid Round 1

Quiz
•
University
12 questions
Operators in C

Quiz
•
University
10 questions
Pointeurs et références 2

Quiz
•
University
10 questions
Workshop quiz

Quiz
•
University
12 questions
Conversões de tipo Java

Quiz
•
University
10 questions
PROGRAMACION

Quiz
•
9th Grade - University
10 questions
IT Quiz Round 3

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade