Structures in C

Structures in C

10th Grade

26 Qs

quiz-placeholder

Similar activities

data base management system

data base management system

2nd Grade - University

23 Qs

Java Programming 1

Java Programming 1

10th - 12th Grade

25 Qs

JavaScript Variables

JavaScript Variables

10th - 12th Grade

26 Qs

Flow Charts

Flow Charts

9th - 12th Grade

22 Qs

Ohio's Computer Science Standards Glossary of Terms

Ohio's Computer Science Standards Glossary of Terms

7th - 10th Grade

21 Qs

N5 Traversing a 1D Array Algorithm

N5 Traversing a 1D Array Algorithm

9th - 10th Grade

26 Qs

Object and Coding Concepts Quiz

Object and Coding Concepts Quiz

7th Grade - University

21 Qs

AP CSP Groups & Lists

AP CSP Groups & Lists

9th - 11th Grade

21 Qs

Structures in C

Structures in C

Assessment

Quiz

Computers

10th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?