Structures in C

Quiz
•
Computers
•
10th Grade
•
Easy
Karen Tan
Used 15+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What is a struct in the C programming language?
A type of loop
A composite data type declaration
A function in C
A type of variable
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Create a structure called "Student" with members name, age, and total marks.
What is the purpose of the 'Student' structure in the given C program?
To store student ages and total marks
To store student names and ages
To store student names, ages, and total marks
To store student names only
3.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Create structure named Time with members hours, minutes, and seconds. What does the 'Time' structure in the given C program store?
Hours, minutes, and seconds
Minutes and seconds
Seconds only
Hours and minutes
4.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Create a structure named Book to store book details like title, author, and price. What does the 'Book' structure in the given C program store?
Book authors and prices
Book titles, authors, and prices
Book titles and authors
Book titles only
5.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Create a structure named Circle to represent a circle with a radius. What does the 'Circle' structure in the given C program represent?
A rectangle
A circle with a radius
A triangle
A square
6.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Create a structure named "Employee" to store employee details such as employee ID, name, and salary. What does the 'Employee' structure in the given C program store?
Employee names only
Employee names and IDs
Employee salaries only
Employee IDs, names, and salaries
7.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
Define a structure named "Date" with members day, month, and year. What does the 'Date' structure in the given C program store?
Years only
Days, months, and years
Months and years
Days and months
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Контрольный тест по программированию в Unity

Quiz
•
9th - 12th Grade
25 questions
Understanding Strings and Functions Quiz

Quiz
•
8th Grade - University
25 questions
Google Sheets- Summative Block C

Quiz
•
9th - 12th Grade
21 questions
Pearson GCSE Computer Science - 1.2.2 Folllow & Write Algorithms

Quiz
•
10th Grade
26 questions
Digital marketer - Revision Quiz 5

Quiz
•
9th - 12th Grade
28 questions
Testing & Evaluation

Quiz
•
10th Grade
22 questions
HTML Quiz

Quiz
•
9th - 12th Grade
30 questions
AP CSP Programming Basics

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade