Sample Paper Computer Science Class: XI: Instructions
Sample Paper Computer Science Class: XI: Instructions
com/
I. 1. Name different types of digital computers based on their size and performance. [1]
2. What is system software? [1]
3. Explain first come first served (FCFS) scheduling. [2]
4. Explain multiprocessing operating system. [2]
(Total: 6M)
II. 1. Differentiate between syntax error and semantics error. Give example for each. [2]
2. What do you mean by robustness of a program? What is guard code? [2]
3. What is a base class? What is a derived class? How are these two interrelated? [3]
4. Explain:
a.) Encapsulation
b.) Transitive nature of inheritance
c.) portability [3]
(Total: 10M)
III. 1. Convert the following binary number to decimal:
a) 101.1001 b) 11101.111
int year;
cin>>year;
if ( year%100 = =0)
{
if ( year % 400 = =0)
cout<< “LEAP”;
}
else
cout<< “not century year”;
} [3]
2. Write a short program that subtracts two matrices A [4][4] and B [4][4]. [3]
3. Determine the output for the following code fragment if the input is: “new york”
void main( )
{
char city [35];
cout<< “enter city name \n”;
cin>>city;
cout<< “you entered” << city<<endl;
cout<<”\n Enter the same city name again \n”;
cin.getline(city, 35);
cout<< “this time you entered <<city<<endl;
} [2]
4. Name the header files to which the following built-in functions belong:
a) write( ) b) getch( ) c) gets( ) d) strlen( ) [2]
5. Write two benefits of header file. [2]
(Total: 12M)
-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/
} (2 X 5 = 10)
-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/
2. What are the outputs of the following two code fragments? Justify your answer.
//version 1 //version 2
(5X 2 = 10)
-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com