0% found this document useful (0 votes)
8 views4 pages

Sample Paper Computer Science Class: XI: Instructions

This document is a sample paper for Class XI Computer Science, consisting of various sections with questions covering topics such as digital computers, system software, programming concepts, and data conversions. The paper includes multiple-choice questions, short answer questions, and programming tasks, totaling 70 marks. The instructions indicate that all questions are compulsory and provide a time duration of 3 hours for completion.

Uploaded by

ekta shroff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Sample Paper Computer Science Class: XI: Instructions

This document is a sample paper for Class XI Computer Science, consisting of various sections with questions covering topics such as digital computers, system software, programming concepts, and data conversions. The paper includes multiple-choice questions, short answer questions, and programming tasks, totaling 70 marks. The instructions indicate that all questions are compulsory and provide a time duration of 3 hours for completion.

Uploaded by

ekta shroff
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

http://www.cbseguess.

com/

Sample Paper Computer science


Class: XI
------------------------------------------------------------------------------------------------------------
Time Duration: 3 Hours Maximum Marks: 70
------------------------------------------------------------------------------------------------------------
Instructions:
All Questions are Compulsory.

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

2. Convert the following octal values to decimal


a) 1204.3 b) 743
3. Convert the following decimal values to hexadecimal:
a) 314.21 b) 2048
4. Convert the following decimal values to binary:
a) 57.31 b) 29.2
5. Convert the following binary number to hexadecimal:
a) 1010110110111 b) 10110111011011 (1M X 5 =5M)
6. Differentiate between:
a) RAM and ROM b) impact printer and non impact printer. [4]
7. What is a port? [1]
(Total: 10M)

IV. 1. Determine then output if the input is:


( a ) 2000 ( b ) 1900 ( c ) 1971
void main( )
{
-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/

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)

V. 1. Determine the total bytes required to store the following array:


a) int marks[5][3] b) char name[20]
2. Write a short program to print the following series:
3 6 9 12………….33.
3. Write a flowchart to find smallest of three numbers.
4. Write the function prototypes for the following:
a) Average ( ) take two arguments of type integer and return a float value.
b) Sum ( ) takes an int array and an int value and returns a long result.

5. What is an array and how many types of arrays are there?


6. Explain event driven programming. (2M X 6=12M)

-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com
http://www.cbseguess.com/

VI. 1. Explain characteristics of auto and register storage class specifiers.


2. What is scope of a variable? Write the names of all scopes present in c++?
3. Differentiate between call by value and call by reference mechanism.
4. What is the effect of absence of ‘break’ in a switch statement? Can the case labels
in a switch have identical values?
5. Rewrite the following code fragment using switch:
void main ( )
{
if (ch = = ‘E’)
cout<< “Eastern Zone”;
else if ( ch = = ‘W’)
cout << “Western Zone”;
else if (ch = = ‘N’)
cout<< “ North Zone”;
else if (ch = =’S’)
cout << “ South Zone”;
else
cout<< “Invalid Zone”;

} (2 X 5 = 10)

VII 1. Determine the output:


#include<iostream.h>
void func(int num, b=5)
{
auto int total=0;
static int sum=0;
for ( int i=num; i>0 ; i--)
total+=i;
sum+=total;
cout<<total<< “ ” <<sum<<b<<endl;
}
void main( )
{
int x=8;
for(int j=1; j<3; j++)
func(i);
}

-------------------------------------------------------------------------------------------------------
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

int f =1, i = 2; int f =1, i = 2;


while(++i <5) do{
f * = i; f * = i;
cout<<f ; }while(++i<5);
cout<<f ;

(5X 2 = 10)

-------------------------------------------------------------------------------------------------------
www.cbseguess.com
Other Educational Portals
www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com

You might also like