wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Structures Quiz

Total questions: 14

Worksheet time: 11mins

Name
Class
Date
1.

What is a data structure?

a)

A program for sorting data

b)

A visual representation of code

c)

An organised collection of related data

d)

A type of computer virus

2.

Which of the following is a one-dimensional data structure?

a)

Table

b)

Record

c)

Array

d)

File

3.

What does a two-dimensional array resemble?

a)

A flowchart

b)

A table or spreadsheet

c)

A paragraph

d)

A single line of data

4.

In a one-dimensional array, how is data accessed?

a)

Using keys

b)

Using rows and columns

c)

Using a single index

d)

Randomly

5.

How many indices are needed to access an element in a two-dimensional array?

a)

One

b)

Two

c)

Three

d)

None

6.

Which data structure is best for storing multiple values of the same data type?

a)

Record

b)

Function

c)

Array

d)

Variable

7.

What is a record in computer science?

a)

A collection of functions

b)

A table of all variables

c)

A collection of related fields

d)

A backup of data

8.

Each piece of data in a record is called a:

a)

Cell

b)

Field

c)

Column

d)

Value

9.

Which of the following is an example of a record?

a)

A list of numbers

b)

A string

c)

A student profile with name, age, and grade

d)

A single character

10.

What is the key difference between arrays and records?

a)

Arrays store unrelated data; records store similar data

b)

Arrays store same-type data; records store mixed-type data

c)

Arrays are slower than records

d)

Records are only used in databases

11.

What kind of data types can a record hold?

a)

Only integers

b)

Only text

c)

Only the same data type

d)

Different data types

12.

In a two-dimensional array, what does the first index usually represent?

a)

Column

b)

Field

c)

Row

d)

Character

13.

What data structure would be most suitable for storing a list of student names?

a)

Record

b)

Array

c)

Class

d)

File

14.

How are records and arrays similar?

a)

Both store unrelated data

b)

Both use only one index

c)

Both are used to store collections of data

d)

Both require keys