0% found this document useful (0 votes)
25 views

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

This document contains a sample paper for a Computer Science exam with 3 questions. Question 1 contains short answer sub-questions about computer components and operating system functions. Question 2 contains sub-questions about data representation, memory, ports, and object-oriented programming. Question 3 contains programming problems including finding the output of a given program, modifying a string using conditions, determining loop execution counts, defining parameter types with an example, explaining jump statements, rewriting a for loop as a do-while loop, and identifying errors in a code fragment.

Uploaded by

Sanika Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

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

This document contains a sample paper for a Computer Science exam with 3 questions. Question 1 contains short answer sub-questions about computer components and operating system functions. Question 2 contains sub-questions about data representation, memory, ports, and object-oriented programming. Question 3 contains programming problems including finding the output of a given program, modifying a string using conditions, determining loop execution counts, defining parameter types with an example, explaining jump statements, rewriting a for loop as a do-while loop, and identifying errors in a code fragment.

Uploaded by

Sanika Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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