Question: by java LECTURE FORMATIVE ASSESSMENT-1 STUDENT NAMED.NO 1. A 2-D array defined as A[7][ 3] requires 2 words of storage space for each element. If
LECTURE FORMATIVE ASSESSMENT-1 STUDENT NAMED.NO 1. A 2-D array defined as A[7][ 3] requires 2 words of storage space for each element. If the array is stored in Row-major form, calculate the address of A[5][2] given the base address as 100. 2. Each element of an array A[20][35] requires one byte of storage. If the array is stored in column major order beginning location 500, determine the location of A[0][30]. 3. Consider an array grade[8],w=2, base=100. Look for the address of grade[5] and NE. 4. An array has an index of (2..5) at the starting address of 200. it has 3 words per memory cell, determine loc[3],loc[4],NE. 5. Each element of an array A[10 x 5] requires one byte of storage. If the array is stored in column major order beginning location 100, determine the location of A[2,3]. 6. A 2-D array defined as A[4 x 7] requires 2 words of storage space for each element. If the array is stored in Row-major form, calculate the address of A[2,2] given the base address as 200
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
