wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Array Addr Calculation (Row Major Order)

Total questions: 9

Worksheet time: 9mins

Name
Class
Date
1.

For array a[100] calculate address of a[10]. Base address is 200 and the word size is 4 byte.

(a)  

2.

For array a[-150:120] calculate address of a[100]. Word size is 2 byte and base address is 100.

(a)  

3.

For array a[10][20] calculate address of a[8][5]. Word size is 2 byte and base address is 100.

(a)  

4.

For array a[10][20] calculate address of a[2][1], Word size is 2 byte and base address is 100.

(a)  

5.

For array a[10:20][-5:5] calculate address of a[15][0]. Word size is 2 byte and base address is 100.

(a)  

6.

For array a[-5:4][-5:4] calculate address of a[1][3], Word size is 4 byte and base address is 150.

(a)  

7.

For array a[10][20] calculate address of a[2][10]. Word size is 4 byte and base address is 0.

(a)  

8.

For array a[10][20] calculate address of a[5][3]. Word size is 4 byte and base address is 200.

(a)  

9.

For array a[-100:100][-50:45] calculate address of a[50][40]. Word size is 2 byte and base address is 100.

(a)