CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII OUTSIDE DELHI 2006 Q.1. Write function in C++ which accepts an integer array and size as arguments and assign
values into a 2D array of integers in the following format : Solution: Q.2. An array MAT[20][10] is stored in the memory along the row with each element occupying 4 bytes of the memory. Find out the Base address and the address of element MAT[10][5] , if the location MAT[3][7] is stored at the address 1000. Solution: Children, Try this answer as an assignment. DELHI 2005 Q.1. )Write a function in C++ which accepts an integer array and its size as arguments and exchanges the values of first half side elements with the second half side elements of the array. Example : Solution: Q.2. An array Arr[15][35] is stored in the memory along the row with each of its element occupying 4 bytes . Find out the Base address and the address of element Arr[2][5] , if the location Arr[5][10] is stored at the address 4000. Solution: Children, Try this answer as an assignment. Q.3. )Write a function in C++ to print sum of all values which either are divisible by 2 or divisible by 3 present in a 2D array passed as the argument of the function. Solution: Paper By Mr. Ravi Kiran |