MODEL PAPER II
XI : COMPUTER SCIENCE (083)
Time : 3 Hours Max
Marks : 70
Instructions:
(i)
All
questions are compulsory.
(ii)
Use
C++ language.
1.
|
a.
|
Which set is from Third
generation computer?
i) IBM 360 ii) ICL 2900
iii)ICL 1600 iv)IBM 1401
|
1
|
|
b.
|
Expand :
i) ASCII ii)
ALU
|
1
|
|
c.
|
Fine the 2’s complement of
, (101011101)2
|
1
|
|
d.
|
Perform the following conversion
(5643)8=(?)16
|
1
|
|
e.
|
What is Job Scheduling?
Explain Preemptive Scheduling.
|
2
|
|
f.
|
Briefly state the Neumann’s architecture of computer
system with diagram.
|
2
|
|
g.
|
What is wild card? Write their type with example.
|
2
|
2.
|
a.
|
What is prologue? Justify its use.
|
2
|
|
b.
|
What do
you mean by robustness of a program?
|
2
|
|
c.
|
Write down
the stages of software development process.
|
2
|
|
d.
|
Name two
types of compile time errors? Give one example of each.
|
2
|
|
e.
|
What is difference between
compiler and interpreter?
|
2
|
3.
|
a.
|
What is data type conversion? Briefly explain implicit
type with example.
|
2
|
|
b.
|
What is difference between pre and post increment?
|
2
|
|
c.
|
What is the use of
“const”? How it is different
from “#define”.
|
2
|
|
d.
|
Write corresponding C++ expression for following
mathematical expression:
|
2
|
|
e.
|
Write the output of following code:
i) void main()
{
char ch=’a’;
ch=(ch= =’b’)?ch:’b’;
cout<<ch;
}
|
2
|
|
f.
|
Solve the following expression when a=2,b=4
cout<<a++<<”:”<<--b<<”:”<<++a;
|
2
|
|
g.
|
Underline the error in the following code:
#include[iostream.h]
void main()
{
intx,y;
cin<<y;
x=+y;
cout<<x+y,y;
}
|
2
|
4.
|
a.
|
Write similarities and differences between “?” and
“if”?
|
2
|
|
b.
|
What is difference between “do..while” and “for” loop?
|
2
|
|
c.
|
Find the output of the
following program
i) #include<iostream.h>
void
main( )
{
long
NUM = 1234543;
int
F = 0, S = 0;
do
{
int
Rem = NUM%10;
if
(Rem % 2 !=0)
F+
=Rem;
else
S+
= Rem;
NUM/=10;
}
while(NUM>0);
cout<<F-S;
}
|
2
|
|
d.
|
WAP to create for loop to print different format
(pyramid)
000000
11111
2222
333
44
5
|
3
|
5.
|
a.
|
What is an array? What is
the use of index in an array?
|
2
|
|
b.
|
Give output of following code fragment:
char msg[ ] = {“WelCome”};
for (inti = 0; i<strlen
(msg); i++)
{
if (islower(msg[i]))
msg[i] = toupper (msg[i]);
else
msg[i] = tolower (msg[i]);
}
cout<<msg<<endl;
|
2
|
|
c.
|
Write a program to enter
two dimensional array matrix[5][5] and find the sum of all even elements in
that matrix.
|
4
|
|
d.
|
Write a program to enter
an array of length ‘m’ and arrange the elements in such a way that adjacent
elements changes it place
Input 1,2,3,4,5,6
Output 2,1,4,3,6,5
|
3
|
6.
|
a.
|
What differencebetween call
by reference & call by value in C++ program?
|
2
|
|
b.
|
Give the output of
following Program:
#include<iostream.h>
void pattern(char m, int
b=2)
{
for(int cnt=0;cnt<b;cnt++)
cout<<m;
cout<<endl;
}
void main()
{
pattern(‘*’);
pattern(‘@’,5);
}
|
2
|
|
c.
|
Write a function COUNT()
to take string type argument to count and return the number of alphabets
present in a string.
eg. “this is India”
result = 11
|
4
|
7.
|
a.
|
What is difference between
array and structure?
|
2
|
|
b.
|
Rewrite the following
program after removing the syntactical error(s), if any Underline each
correction:
#include
<iostream.h>
void
main( )
{
structtv
{
char
manu_name[20];
char
tv_type;
int
price = 17000;
}
newtv;
cin>>manu_name;
cin>>tv_type;
}
|
2
|
|
c.
|
Write a program to create
following structure And perform given operation
Structure “angle” having integer type “degrees” and
“minutes”
Function
: - Addition which take two angle type parameters and add to get perfect
angle in degrees and minutes. ( 60 minutes= 1 degree) so that return also is
of angle type which will not have minutes equal to or greater than 60
|
4
|
|
|
|
|
No comments:
Post a Comment