
array_address calculation

Quiz
•
Computers
•
University
•
Hard

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
Similar Resources on Wayground
10 questions
DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

Quiz
•
University
10 questions
Exploring Addressing Modes

Quiz
•
University
12 questions
Chapter 2-1: Array Part 1

Quiz
•
University
13 questions
Revision 2 MCA

Quiz
•
University
12 questions
Arrays C++

Quiz
•
University
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8

Quiz
•
University - Professi...
10 questions
GCSE Knowledge Check CPU Components

Quiz
•
7th Grade - University
10 questions
BCSC0006 - Quiz 1 - Arrays

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade