Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Struct - S1_Array & Pointer

Total questions: 12

Worksheet time: 9mins

Name
Class
Date
1.

Data elements which have the same data type, is called?

a)

Array

b)

Pointer

c)

Struct

d)

Memory

2.

Which assigns element 0 with the value 250?

a)

arr[1] = 250

b)

arr[250] = 0

c)

arr[0] = 250

d)

arr = 250

3.

If the array's last index was 299, how many elements does the array have?

a)

298

b)

299

c)

300

d)

301

4.

Given: int maxScores[4] = {20, 200, 100, 50};. What is maxScores[3]?

a)

20

b)

200

c)

100

d)

50

5.

Pointer has techniques also known as pass by reference?

a)

True

b)

False

6.

What does the code output?

a)

A

b)

B

c)

C

d)

No Output

7.

Class and Struct are the concept in implementing Abstract Data Type?

a)

True

b)

False

8.

Here are the examples of data structures, except?

a)

Iterative

b)

Arrays

c)

Queues

d)

Stacks

9.

First in First out is the concept from Stack? True / False

a)

True

b)

False

10.

A data structure which is defined as a collection of elements with the node, except?

a)

Array

b)

Linked List

c)

Hash Table

d)

Binary Trees

11.

Which return type cannot return any value to the calling function?

a)

int

b)

void

c)

float

d)

double

12.

The execution of a C program begins at (a)