Professional Documents
Culture Documents
CLASS : XI
SUBJECT : COMPUTER SCIENCE
MARKS: 70
SET : B
MAX.
General Instructions:
1. All questions are compulsory
2. Programming Language : C++
1.
a. Give the full form of ISCII and EDVAC.
1
b. Write any two functions that are performed by an operating
system as a resource manager?
1
c. What are the characteristics of USB port?
2
d. Write down any 2 major characteristics of CISC processor.
2
e. Convert
2
i) (3A5)16
ii) (111.101)2
X10
X8
Page 1 of 6
for(int i=1;i<10;i*=2)
{x++;
cout<<x ;
}
cout<<\n<<x;}
d. What is the output of following
3
(i) #include<iostream.h>
struct Three_D
{int x,y,z;};
void Movein(Three_D &T, int step=1)
{T.x+=step;
T.y-=step;
T.z+=step;}
void Moveout(Three_D &T, int step=1)
{T.x -=step;
T.y +=step;
T.z -=step;}
void main()
{Three_D T1={20,25,15},T2={20,15,30};
Movein(T1);
Moveout(T2,5);
cout<<T1.x<<,<<T1.y<<,<<T1.z<<endl;
cout<<T2.x<<,<<T2.y<<,<<T2.z<<endl;
Movein(T2,10);
cout<<T2.x<<,<<T2.y<<,<<T2.z<<endl;
}
(ii)
void main()
2
{ char a[]="Good-Luck";
Page 4 of 6
int i;
for(i=0;i<strlen(a);i++)
if (a[i]>=97 && a[i]<=122)
a[i]=a[i+1];
else if(a[i]>=65 && a[i]<=90)
a[i] +=32;
else a[i]='#';
puts(a);
}
e. Find the Possible output from the options(i) to (iv) for the given C+
+ code.
1
#include<iostream.h>
#include<stdlib.h>
void main()
{
randomize();
int guess, high=4;
guess=random(high)+50;
for(int c=guess;c<=55;c++)
cout<<c<<#;
}
(i) 50#51#52#53#54#55# ii) 52#53#54#55#
(iii) 53#54#
iv) 51#52#53#54#55#
5. a. Explain function overloading with an example
2
b. Write C++ statement(s) for the following:
3
i. A loop is to be repeated 200 times,but the loop is to be
terminated if the
value of the variable X becomes 175.
ii. If Z has a value greater than 20 then increment the value
of J by 1
otherwise decrement it by 2.
iii. Print the transverse of a matrix T[10][10].
Page 5 of 6
Page 6 of 6