
Union in c 10
Authored by Abhishek Pandey
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are collection of different data types
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);
}
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
C Programming Quiz-5
Quiz
•
University
10 questions
Advanced SQL
Quiz
•
KG - University
10 questions
Session 2
Quiz
•
University
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions
Quiz
•
12th Grade - University
10 questions
DISTRIBUTED OS UNIT 1 QUIZ
Quiz
•
University
10 questions
Demo
Quiz
•
University
10 questions
IoT Lecture 8 - Data and Analytics for IoT
Quiz
•
University
10 questions
Data Analytics using Python - Quiz 1
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University