You are on page 1of 1

CENTRAL UNIVERSITY HARYANA

Department of Computer Science and Information Technology: MCA 2020-22

Declared Test-1 Data Structures: Unit-1 February 2021-Duration: 30 Min.

Declared Test-1 (DTDS-1): Basics of Array and Pointers

Notes-
Attempt all questions and give brief explanation in 2-3 sentences, to support your answer.
Draw necessary diagram by yourself if required.
Upload your answer script at via google group or mail to naresh.csiitr@gmail.com in trailing of the previous.
New students can submit via fresh mail keeping the title DTDS-1 MCA2020.
Submit the doc file of test by naming DTDS-1_YOURNAME. Please make sure delay in submission may
discourage the evaluation of the answer script.

1. Give the difference between data structures, pseudocode, algorithms and programming
languages.

2. Explain the importance of Data Structures in terms of high computational issues.

3. Define ADT with examples. Explain declaration and Initialization of 3D array.

4. Describe row-major and column-major orders of 1D and 2D arrays. Compute the address of an
element MCA[10][15] stored in column-major order in array double CUH[0,1,....100][0,1,...150]
for given usual meaning &(CUH)= 1280.

5. Answer the following very short explanation


a) If int A[n] is array, justify that printf (“......”, a); and scanf (“......”, a);.
b) Interpret in 5. (a) &A, &A[0] and &A[1]. Also justify your answer to explain *A, &A, A and
A [0].
c) For the variables m, n and t such that int m=10, &m= 1750, int n= 1750, &n =2575 and int t
= 2575, give the coding relationship for m, n and t.
d) In the following array int F [10], 10 Fibonacci numbers are stored, &(F[0]) =3250 then find
&(F+5) and *F[9]. Consoder F[0]=0.

&(F+5) *F[9].

You might also like