array_address calculation

array_address calculation

University

9 Qs

quiz-placeholder

Similar activities

Chapter 2-1: Array Part 1

Chapter 2-1: Array Part 1

University

12 Qs

Revision 2 MCA

Revision 2 MCA

University

13 Qs

Quiz-1_Computer Graphics

Quiz-1_Computer Graphics

University

10 Qs

pointers and structures

pointers and structures

University

10 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Exploring Addressing Modes

Exploring Addressing Modes

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

Data Structure Quiz 1

Data Structure Quiz 1

University

9 Qs

array_address calculation

array_address calculation

Assessment

Quiz

Computers

University

Hard

Created by

KRATI GUPTA

Used 21+ times

FREE Resource

9 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Consider a two dimensional array A[20][10]. Assume 4 words per memory cell, the base address of array A is 100, elements are stored in row-major order and first element is A[0][0]. What is the address of A[11][5] ?

2.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

. Consider a two dimensional array A[20][10]. Assume 4 words per memory cell, the base address of array A is 100, elements are stored in column-major order and first element is A[0][0]. What is the address of A[11][5] ?

A

3.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

. Consider a two dimensional array A[20][10]. Assume 4 words per memory cell, the base address of array A is 100, elements are stored in row-major order and first element is A[1][1]. What is the address of A[11][5] ?

A

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

. Consider a two dimensional array A[20][10]. Assume 4 words per memory cell, the base address of array A is 100, elements are stored in column-major order and first element is A[1][1]. What is the address of A[11][5] ?

A

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Given the base address of an array B[1300…..1900] as 1020 and size of each element is 2 bytes in the memory. Find the address of B[1700].

6.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

An array X [-15……….10, 15……………40] requires one byte of storage. If beginning location is 1500 determine the location of X [15][20].If X stored in CMO.

7.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

An array X [-15……….10, 15……………40] requires one byte of storage. If beginning location is 1500 determine the location of X [15][20]. If X stored in RMO.

8.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Consider the following declaration of a ‘two-dimensional array in C:

char a[100][100];

Assuming that the main memory is byte-addressable and that the array is stored starting from memory address 0, the address of a[40][50] is:

9.

MULTIPLE SELECT QUESTION

2 mins • 1 pt

Let A be a two-dimensional array declared as follows:

A: array [1 …. 10] [1 …… 15] of integer;

Assuming that each integer takes one memory location, the array is stored in row-major order and the first element of the array is stored at location 100, what is the address of the element A[i][j]?

15i + j + 84

15j + i + 84

10i + j + 89

10j + i + 89