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
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);
}
5
3
50
Compile time error
Similar Resources on Wayground
6 questions
CP03-01 ชนิดข้อมูลและการประกาศตัวแปร

Quiz
•
University
8 questions
Sistemas Operativos - Capítulo 6 - File I/O - baixo nível

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
10 questions
UJIAN SARINGAN PENGATURCARAAN

Quiz
•
University
10 questions
Ujian Tengah Semester Struktur Data

Quiz
•
University
10 questions
Structure in C

Quiz
•
University
8 questions
Kuizi 4.2

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University