CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII DELHI 2003 Q.1. Assume a array E containing elements of structure Employee is required to be arranged in
descending order of Salary. Write a C++ function to arrange same with the help of bubble sort,
the array and its size is required to be passed as parameters to the function. Definition of
structrure Employee is as follows: Solution: Q.2. An array X[30][10] is stored in the memory with each element requiring 4 bytes storage. Find out the Base address of X is 4500, find out memory locations of X[12][8] and X[2][14], if the content is stored along the row. Solution: Children, Try this answer as an assignment. Q.3. Write a user-defined function in C++ to display those elements of 2D array T[4][4] which
are divisible by 100. Assume the content of the array is already present and the function
prototype is as follows: void showhundred( int T[4][4]); DELHI 2002 Q.1. Define array and pointer. Solution: An array refer to a named list of a finite number n of similar data elements. Each of the data elements can be referenced respectively by a set of consecutive numbers. Q.2.The array A[20][10] is stored in the memory with each element requiring one byte of storage if the base address of a is 0, determine the location of A[10][5] when the array A is stored by column major. Solution: Children, Try this answer as an assignment. Q.3. Considering the following key set: 42,29,74,11,65,58, use insertion sort to sort the data in ascending order and indicate the sequences of steps required. Solution: Paper By Mr. Ravi Kiran |