
array_address calculation

Quiz
•
Computers
•
University
•
Hard

KRATI GUPTA
Used 22+ 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
Basic java

Quiz
•
University
13 questions
Week 2 Before Class

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
8 questions
HashTables

Quiz
•
University
10 questions
DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

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

Quiz
•
University - Professi...
10 questions
C Programming Lab Quiz

Quiz
•
University
12 questions
Arrays C++

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University