Trending ▼   ResFinder  

CBSE Class 11 Pre Board 2019 : Computer Science (St Xavier's Sr. Sec. School, Delhi)

3 pages, 35 questions, 0 questions with responses, 0 total responses,    0    0
Cbse 11
  
+Fave Message
 Home > cbse11 >   F Also featured on: School Page

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

Annual Examination in COMPUTER SCIENCE Std. 11 28-2-2019 Time : 3 hrs. Max. Marks : 70 1. Write any two differences between each of the following [10] a) char array and array of strings b) Normal array and unsized arrays c) Arrays and structures d) strcmp( ) and strcpy( ) f) cout and puts( ) 2. a) Write two limitations of 2D unisized array. [1] b) Write declarations for the following:[1] I. Array to store all houses names (eg. Tagore, Gandhi etc..) II. Array to store first five elements of Fibonacci series. c) Write headers files for built in function given below:[3] i) cos( ) ii) toupper( ) iii) strcpy( ) iv) exit(0) v) randomize( ) vi) setprescision( ) d) How does c++ view string as? Which character marks end of the string? [1] e) Write one drawback of random( ) function? How you will remove this drawback? [1] f) Find total no of bytes required to store each of the following array. [1] i) char S[3+5][40]; ii) float f[10][30-5]; g) Write maximum number of elements 1D array and 2D array can hold. [1] h) What will be the value of the components of given arrays. [3] i) float sal[2]={7899.00}; ii) char S[2] ={ D }; iii) int D[ ][2]={88.5}; i) What is the size of the array: int data[] = { 12, 34, 9, 0, -62, 88 }; [1] j) How many rows are there in the given array: float S[ ][2] ={ 2,3,5,6,78.5}; [1] 3 Underline and correct the errors in the given program segements. a) void main( ) { clrscr( ); float a[10.0]; char s[4][ ]= Hi ; int a{c}; for(i=0; i=5; i++) cin>>a; get(s); } b) void main() { struct student( ) { char name[25]; int age=17; int roll=4; } Student stud; Strcpy(stud.name, Haris ); age=17; cout<<name; cout << age.stud; } 4. Write the output of the following. a) void main( ) {char x[ ] = InFOrMAtIOn ; int i=0; while( x[i] != \0 ) {if (i%2 = = 1) x[i] = tolower(x[i]); else x[i]= * ; i++; } cout<<x; } Std. 11 -2- [3] [3] [2] COMPUTER SCIENCE b) void main () { char serial[] = {'E', 'X', 'A', 'M'}; int number[] = { 69, 66, 67, 68}; randomize(); cout << number[random(3)]; for (int i = 0; i < 4; i++) cout << serial[2+ random(2) - 1 ]; } outputs: (i) 66AAXA (ii) 67AAAM (iii) 67XXAX (iv) 69AXXA c) Write output : int ar[3], x=1,y=2,z=3; for( i=0; i<3; i++) { if( (x++ *y>z--)&&!(x+z==10)||(z%2+5<x/5) ) ar[i]= x++ *y; else ar[i]= z%2+5; cout<<ar[i]; } d) Write output #include <iostream.h> struct Game { char Magic[20]; int Score; }; void main() { Game M={ Tiger , 500}; M.Magic[4]= P ; M.Magic [2]= L ; M.Score+=50; cout<<M.Magic<<M.Score<<endl; Game N=M; N.Magic[0]= A ; N.Magic[3]= J ; N.Score-=120; cout<<N.Magic<<N.Score<<endl; } [2] [2] [2] 5. a) A double non-C++ type array A [-10 to 20[15] is stored in the memory along with Row. Find out the base address and address of the element Array[2][3] if the element Array[4][5] is stored at the address 1000. [3] b) An array M[-3 .. 18][-8 .. 37] is stored in the memory along the column with each of its element occupying 8 bytes. Find the address of element M[2][5] if the element M[5][10] is stored at the address 4000. [3] 6. a) Write program to find sum of squares of elements in both non-diagonals of square matrix having 3 rows and 3 columns. [3] e.g. 22 + 42 +82 + 102 = 184 b) Write a program in C++ which inputs an integer array of n numbers and prints the output (using nested loops) in following format: [3] Example : if the array is having 12459 Std. 11 -3- COMPUTER SCIENCE Then the output should be 1 22 4444 55555 999999999 c) Write a program to input a string, starting position and number of characters from the user. Print the substring from the inputted string. [2] d) Write a program to create a structure named employee with following details [4] - code of integer type - Name of string type - Salary of float type input the details of 5 employees in an array and print the details of only those employees whose salary is greater than 45000. e) Write a program that defines and inputs a floating point array with total 10 elements. Search for an element using Binary search technique. [4] f) Write a program in C++ which inputs a 2D array of integers having 4 rows and 4 columns and display the elements whose last digit is 4. [4] If 2D array is 129 3 9 14 2 25 146 1431 1924 32 45 327 11 455 28 18 Output is : - 14 1924 g) Write a program to input an integer number and check whether it is a palindrome or not. For example the number 121 is a palindrome as it reads the same from left to right and from right to left. [3] h) Write a program to input names of 10 students in a 2D array and their marks also in 1D array. Print the details of only those students whose names starts with S and marks are greater than 90. [3] -x-x-x-x-x-x-x-

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : cbse class xi, cbse 11, cbse 11th standard, cbse mock papers, cbse sample papers, cbse books, portal for cbse india, cbse question bank, central board of secondary education, past cbse question papers with answers, prelims preliminary exams, pre board exam papers, cbse model test papers, solved board question papers of cbse last year, previous years solved question papers, free online cbse solved question paper, cbse syllabus, india cbse board sample questions papers, last 10 years cbse final exam papers, cbse question papers, cbse guess sample questions papers, cbse important questions, specimen / mock papers.  

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

cbse11 chat