
Structures and Union
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
Kavinaya R
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a structure in C?
A data type used to store integers only
A user-defined data type that groups related variables
loop structure
pre-defined C function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a structure in C?
struct
define
typedef
union
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a structure named Student with name and age?
struct Student { char name[50]; int age; };
structure Student { char name[50]; int age; };
define Student { name[50], age };
Student { char name[50]; int age; };
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the member age of a structure variable s1?
s1 -> age
s1.age
s1:age
s1(age)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable s1 of type struct Student?
Student s1;
struct s1 Student;
struct Student s1;
Student: s1;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can structures hold different data types?
No, all members must be same type
Yes, only integers and floats
Yes, any combination of data types
Only characters
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a structure dependent on?
Number of members
Type and size of members
Order of declaration
All of the above
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
Infancy
Quiz
•
4th Grade - Professio...
10 questions
Introduction to Chemical Process Safety
Quiz
•
University
20 questions
Aircraft Components
Quiz
•
University
12 questions
The Merrell Twins Quiz
Quiz
•
KG - Professional Dev...
12 questions
waxing revision
Quiz
•
University
20 questions
Assessment 2 Quiz
Quiz
•
University
20 questions
Principal of marketing chapter 2
Quiz
•
University
20 questions
Orientation Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Other
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
