
Structures and Union

Quiz
•
Other
•
University
•
Medium
Kavinaya R
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quize on c language and html

Quiz
•
University
20 questions
Tech-Pictionary Round 1

Quiz
•
University
10 questions
Test Project 1B Mekatronika Genap 21/22

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
15 questions
Web Dev

Quiz
•
University
10 questions
Algoritma Struktur Data (1)

Quiz
•
University
16 questions
CO KHI ĐIỆN LỰC 1- CHƯƠNG 7( MÁY NÉN CÁNH DẪN)

Quiz
•
University
20 questions
QUIZERIA

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University