Structures and union

Flashcard
•
Computers
•
University
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
31 questions
Podstawowe definicje w C++

Flashcard
•
12th Grade
20 questions
Linked List

Flashcard
•
Professional Development
21 questions
SAINS KOMPUTER TINGKATAN 4 (BAB1)

Flashcard
•
KG - University
26 questions
Python Functions Overview

Flashcard
•
12th Grade
21 questions
Java Flashcard-1

Flashcard
•
KG - University
24 questions
Static Method

Flashcard
•
University
28 questions
UDP Socket Programming

Flashcard
•
University
28 questions
UDP Socket Programming

Flashcard
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

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

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University