Structures and union

Flashcard
•
Computers
•
University
•
Hard
Quizizz 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
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
PSUEDOCODE 2 CAPGEMINI

Flashcard
•
Professional Development
24 questions
PSUEDOCODE 2 CAPGEMINI

Flashcard
•
Professional Development
25 questions
Java temas 1-4

Flashcard
•
University
31 questions
Java

Flashcard
•
University
26 questions
Unidad 2 progra

Flashcard
•
University
27 questions
Repaso Fundamentos con C++

Flashcard
•
Professional Development
25 questions
Debugging Round 1

Flashcard
•
University
30 questions
Golang 1

Flashcard
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade