MODEL PAPER
XI :
COMPUTER SCIENCE (083)
Time : 3 Hours Max
Marks : 70
Instructions:
(ii)
Use
C++ language.
1.
|
(a)
|
Expand
the following acronym
(i)
RISC
(ii)
MbPS
(iii)
CD
(iv)
CPU
|
2
|
||||||||||||||||||
|
(b)
|
What
is the use of ROM in computer?
|
1
|
||||||||||||||||||
|
(c)
|
What
is the use of RAM and Cache memory in computer? Identify their difference.
|
2
|
||||||||||||||||||
|
(d)
|
Perform
the following conversion:
(i)
(5EA)16 to Decimal
(ii)
(1784)10 to Octal
|
2
|
||||||||||||||||||
|
(e)
|
What
is the use of spreadsheet software? Explain it important features.
|
1
|
||||||||||||||||||
|
(f)
|
What
is the use of Disk Cleanup utility?
|
1
|
||||||||||||||||||
|
(g)
|
What
is Time Sharing operating system?
|
1
|
||||||||||||||||||
2.
|
(a)
|
What
is the difference between while and do while loop? Explain with suitable
example.
|
2
|
||||||||||||||||||
|
(b)
|
Write
the following program after removing the errors and underline the corrections:
#include
<iostream.h>
structure
MEMBER{
int
Mno;
}
void
reg(){
cout<<M1.Mno<<endl;
}
void
main()
{
MEMBER
M ;
M.reg();
}
|
|
||||||||||||||||||
|
(c)
|
Find the output of the following program:
#include
<iostream.h>
struct
GAME
{
int Score, Bonus;};
void
Play(GAME &g, int N=10)
{
g.Score++;g.Bonus+=N;
}
void
main()
{
GAME
G={110,50};
Play(G);
cout<<G.Score<<":"<<G.Bonus<<endl;
Play(G,15);
cout<<G.Score<<":"<<G.Bonus<<endl;
}
|
2
|
||||||||||||||||||
|
(d)
|
Write
a program which take one integer number from user and display whether it is
even or odd.
|
2
|
||||||||||||||||||
|
(e)
|
Write
a program which get sales amount from user and display its 12% discount
amount.
|
2
|
||||||||||||||||||
3.
|
(a)
|
Find
the output of the following program:
#include<iostream.h>
void
withdef(inthn = 20){
for(inti=20;i<=hn;i+=5)
cout<<i<<",";
cout<<endl;
}
void
control(int&mn){
mn+=10;
withdef(mn);
}
void
main(){
intyn=30;
control(yn);
cout<<"Number="<<yn<<endl;
}
|
2
|
||||||||||||||||||
|
(b)
|
Write
the following program after removing the errors and underline the
corrections:
#include[iostream.h]
void
main(){
int i;
for(i=1,i<=10,i++){
cout>>endl<<i;
}
}
|
2
|
||||||||||||||||||
|
(c)
|
What
is the significance of “\n” and “\t” character constants in C++? Give
examples.
|
2
|
||||||||||||||||||
|
(d)
|
What
will be the value of k :
#include<iostream.h>
void
main(){
int
k;
k=5<7?500:700;
cout<<endl<<k;
}
|
2
|
||||||||||||||||||
4.
|
(a)
|
Write
a program which has one structure book and two functions getdata() and
showdata() whose details are given below :
1.
Structure Book : it have following data members- bno,author,pub,pages,price.
2.
Getdata() : receive values in book object from
user.
3.
Showdata() displays values of book object.
|
4
|
||||||||||||||||||
|
(b)
|
Write
a program which have
1.
Name structure to store name of a person which
have f_name, m_name and l_name members.
2.
Employee structure to store the information of
employee which have eno, empname (object of name Structure), deptno, basic,
da, hra, netsal.
3.
AddSal()function with Employee type parameter to
calculate the netsal by adding basic, da and hra.
|
4
|
||||||||||||||||||
|
(c)
|
Write
a program to find smallest number in an array.
|
3
|
||||||||||||||||||
5.
|
(a)
|
What
are the rules for naming the identifiers?
|
2
|
||||||||||||||||||
|
(b)
|
Write
the steps of Program Solving methodology and techniques.
|
2
|
||||||||||||||||||
|
(c)
|
Describe
any 4 characteristics of Good Program.
|
2
|
||||||||||||||||||
|
(d)
|
What
is a comment? How many types of comments are possible in C++?
|
2
|
||||||||||||||||||
|
(e)
|
What
is an error? Describe types of errors.
|
2
|
||||||||||||||||||
6.
|
(a)
|
What
is an explicit type conversion? Explain it with suitable example.
|
2
|
||||||||||||||||||
|
(b)
|
What
do you mean by dynamic initialization of a variable? Give examples.
|
2
|
||||||||||||||||||
|
(c)
|
What
is the use of conditional operator? Explain with suitable example.
|
2
|
||||||||||||||||||
|
(d)
|
Write
a program to print the following output from a two dimensional array whose
size is 3X3.
For
example array contain following data
Then output will be :
|
3
|
||||||||||||||||||
7.
|
(a)
|
Write
a program which has one function Search() with two parameters(string and
character) to search character in string and return its position if character
is not find out then return -1.
|
4
|
||||||||||||||||||
|
(b)
|
Write
a function IsPrime() which has one integer parameter n and return true if n
is a prime number otherwise return false.
|
4
|
||||||||||||||||||
|
(c)
|
Write a function that takes three
arguments: the name of a float array, the array size, and a float value. Have
the function set each element of the array to float value.
|
4
|
||||||||||||||||||
|
|
|
|
No comments:
Post a Comment