
Workshop quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Mohammed Nawaz
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a structure in C?
A way to create a new data type that can hold multiple variables of different types.
A built-in data type.
A function that performs calculations.
A control flow statement.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a structure in C?
B) define
struct
union
type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the maximum number of members a structure can have in C?
B) 100
No fixed limit
50
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a structure and a union?
Unions cannot contain functions.
Structures can hold only integers.
Structures are always larger than unions.
A structure allocates memory for all its members, while a union allocates memory for only the largest member.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a structure named Person with members name (string) and age (integer)?
struct Person { char name[50]; int age; };
struct Person { int age; char name; };
struct { char name; int age; } Person;
Person { char name[50]; int age; };
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used to access a member of a structure through a pointer?
.
*
->
::
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can a structure contain a union as a member?
Yes
No
Only if the structure is empty.
Only if the union has no members.
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
12 questions
Java History Characteristics Environment
Quiz
•
University
15 questions
8051-MCQ
Quiz
•
University
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
10 questions
QUIZ #1 INTRO TO COMPUTING
Quiz
•
University
12 questions
Session 2 - Hardware and Peripherals
Quiz
•
10th Grade - University
10 questions
FOP - CHAPTER 6
Quiz
•
University
10 questions
Quiz Komponen Komputer
Quiz
•
1st Grade - University
10 questions
Virtual Memory
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
