Structures and union
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

36 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following are themselves a collection of different data types? String, Structure, Integer, None of these
Back
Structure
2.
FLASHCARD QUESTION
Front
Which of the following cannot be a structure member? Another structure, Array, Function, None of these
Back
Function
3.
FLASHCARD QUESTION
Front
What is the output of this C code?
#include <stdio.h>
struct student
{
int no; char name[20];
};
void main()
{
student s;
s.no = 8;
printf("hello");
}
Back
Compilation error
4.
FLASHCARD QUESTION
Front
Which of the following share a similarity in syntax? 1. Union, 2. Structure, 3. Arrays and 4. Pointers
Back
2 & 3
5.
FLASHCARD QUESTION
Front
For what minimum value of x in a 32-bit Linux OS would make the size of s equal to 8 bytes? struct temp { int a : 13; int b : 8; int c : x; } s;
Back
12
6.
FLASHCARD QUESTION
Front
Which operator connects the structure name to its member name?
Back
.
7.
FLASHCARD QUESTION
Front
Size of the following union (assume size of int=2, size of float=4 and size of char=1); union ABC { int a; float b; char c; };
Back
4
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
27 questions
Vocabulary Flashcards
Flashcard
•
KG - University
30 questions
Brasil Colônia: História e Economia
Flashcard
•
12th Grade
32 questions
CUS-C4-Médicaments pour l'angine et l'arythmie
Flashcard
•
12th Grade - University
24 questions
Unit 1: Growing Up (Noun)
Flashcard
•
Professional Development
31 questions
LUČNI MOSTOVI
Flashcard
•
KG
30 questions
Musical Scales and Keys
Flashcard
•
KG
32 questions
Operations Management U3/AOS3
Flashcard
•
KG
32 questions
Creole Alphabet Flashcards
Flashcard
•
KG
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade