Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Time: 3hours Maximum Marks: 70: Sample Paper - III Subject - Computer Science

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Sample Paper - III

Subject – Computer Science

Time: 3Hours
Maximum Marks: 70
Note. (i) All questions are compulsory.

Q.No.1
a. Define Analog an Digital Computer
b. why analytical engine often called the pioneer computer.
c. what are the different types of printer. Explain in brief
d. What is the difference between copying and moving files and folders
e. What functions are performed by an operating system as a resource manager
Q.No.2
a. Define the term ASCII and ISCII.
b. What are the different Data representation schemes
c. Explain different types of RAM
d. What do you mean by ports. Explain in brief all types of ports 4
e. Why primary memory is termed as ‘destructive write’ memory but ‘non-destructive read’
memory
f. Explain the different features of OOP. 3

Q.No.3
a) Find the output of the following program. 3

#include<iostream.h>
void Withdef(int HisNum=30)
{
for(int I=20;I<=HisNum;I+=5)
cout<<I<<”,”;
cout<<endl;
}
void Control(int &MyNum)
{
MyNum+=10;
Withdef(MyNum);
}
void main()
{
int YourNum=20;
Control(YourNum);
Withdef();
cout<<”Number=”<<YourNum<<endl;
}

b. void main()
{
char *NAME=”a ProFiLe!”;
for(int x=0;x<strlen(NAME);x++)
if(islower(NAME[x]))
NAME[x]=toupper(NAME[x]);
else
127
if(isupper(NAME[x]))
if(x%2!=0)
NAME[x]=tolower(NAME[x-1]);
else
NAME[x]--;
cout<<NAME<<endl;
}

c. How Many time the following code will be executed


int i = 1 ;
i= i - 1 ;
while(i)
{
cout<<”it’s a while loop”;
i++ ;
}
d. What is difference between Actual parameter and Formal parameter? Give an example in C++ to
illustrate both type of parameters.

e. Explain different jump statements with suitable example.


f. rewrite the following code using do-while loop
int i ;
for(i=0;i<10;i++)
{
cout<<i; i++ cout<<i;
}
g. identify the error(s) in the following code fragment
char ch; int v=0,o=0;
cout<<”enter character”;
while ((ch>=’A’ && ch<=’Z’)||( ch>=’a’ && ch<=’z))
{
switch(ch) {
case ‘a’:
case ‘e’:
case ‘i’:
case ‘o’:
case ‘u’:
case ‘U’: ++v; break; default : ++o;
}cout<<v;<<” ”<<o;
}

128

You might also like