
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
AUTOMOBILE TEST
Quiz
•
University
15 questions
PAMT311 Midterm (Practice Activity)
Quiz
•
University
10 questions
JGD Quiz
Quiz
•
University
13 questions
Trivia Tuesday - MUSIC!
Quiz
•
University
10 questions
quiz-1 corp gov
Quiz
•
University
10 questions
ITEM ANALYSIS AND VALIDATION
Quiz
•
University
10 questions
Latest Technology in Modern Hotel
Quiz
•
University
20 questions
Electoral Literacy Club, GFGC Bhatkal
Quiz
•
University
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
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
