SRI RAMANA VIDYALAYA Mont. Matric. Hr. Sec.
SCHOOL, RAJAPALAYAM
PRE - SECOND REVISION EXAMINATION, 2019 - 2020
Std XI Computer Science Time: 3.00 hrs.
Date: 10.02.2020 Max. Mark : 70
I. Choose the correct answer : 15 X 1 = 15
1. Which gate circuit is an OR gate followed by an inverted?
a. NOR b. XNOR c. AND d. OR
2. Which is used to connect a monitor or any display like LCD projector to a computer?
a. SCSI port b. VGA connector c. USB port d. PS/2 port
3. How many memory locations are identified by a processor with 8 bit address bus at a time?
a. 28 b. 1024 c. 256 d. 8000
4. Which is specified by the properties of the given input and the relation between the input and the desired
output?
a. algorithm b. definition c. specification d. statement
5. If 0<i before the assignment i:=i-1 after the assignment, the value of i is ___________.
a. 0 < i b. 0 ≤ i c. i = 0 d. 0 = i
6. A loop invariant need not be true :
a. at the end of each iteration b. at the start of the algorithm
c. at the start of the loop d. at the start of each iteration
7. Assume a = 5, b = 6; what will be the result of a & b?
a. 1 b. 0 c. 4 d. 5
8. for(int i = 0; i <=10; i++), How many times will the loop be executed?
a. 9 b. 11 c. 0 d. 10
9. Which function is used to check whether a character is alphanumeric or not?
a. isalnum() b. islower() c. isalpha() d. isdigit()
10. Which of the following is the scope resolution operator?
a. % b. :: c. > d. &
11. cout<<strcmp(“ABC”,”abc”); Identify the output of the given statement.
a. 0 b. 1 c. -1 d. NULL
12. Default return type of a function is _____________.
a. float b. int c. void d. char
13.Member functions defined within a class behave like _______________.
a. inline b. non – inline c. nesting of function d. default
14. Struture is ___________ data type.
a. builtin b. derived c. fundamental d. user defined
-2-
15. ___________ are based on asymmetric cryptography.
a. Digital signature b. Cookies c. Worms d. Trojans
II. Answer any SIX of the following Question No. 24 is compulsory : 6 X 2 = 12
16. Write a short note on non impact printers.
17. Draw the truth table for XOR gate.
18. What is a program counter?
19. What are the security features in operating system?
20. Write the specification for exchanging the contents of glass A and glass B and write a sequence of
assignments to satisfy the specification. (Assume glass a has apple drink, glass B has grape drink)
21. Define : Anonymous Structure, Array.
22. Initially j is 20 and p is 4, then what will be the value of p = p * ++j;?
23. List the operators that cannot be overloaded.
24. Write a C++ program to find area of a rectangle.
25. What is harvesting?
III. Answer any SIX of the following. Question No. 32 is compulsory : 6 X 3 = 18
26. Add: i) 11010102 + 1011012 ii) -2210 + 1510
27. Write short notes for the following : a) Network Indicator b) Session indicator
28. Write the syntax for any one entry controlled loop.
29. What is called nested structure? Give example.
30. What do you mean by overriding.
31. Differentiate public and private visibility mode.
32. Read the following C++ snippet and answer the questions given below :
class student
{
int m, n;
public:
void add();
float calc();
}x1, x2;
i) Identify the members of the class.
ii) What is size of the objects x1, x2 in memory?
33. What is digital signature?
3--
-3-
IV. Answer all the questions : 5 X 5 = 25
34. Explain the different types of mouse? OR
Assume a = 15, b = 20; What will be the result of the following operations?
i) a&b ii) a|b iii) a^b iv) a>>3 v) ~b
35. ‘The truth tables of Bubbled OR and NAND gates are identical’. Briefly explain the above truth.
OR
Write the specification of an algorithm hypotenuse whose inputs are the lengths of the two shorter
sides of a right angled triangle, and the output is the length of the third side.
36. What are tokens? How are they classified? OR
Explain the string manipulations in C++ with example.
37. What are function overloading? Explain it with suitable example.
OR
Write the output for the following C++ program :
#include <iostream>
using namespace std;
class simple
{
private:
int a,b;
public:
simple(int x, int y)
{
a=x;
b=y;
cout<<”\n Parametrised constructor of class simple”<<endl;
}
~simple()
{
cout<<”Destructor”;
}
void putdata()
{
cout<<”Two integers are: A=”<<a<<”\tB=”<<b;
}
};
void main()
{
simple s(5,6);
s.putdata();
getch();
}
4--
-4-
38. What are the different types of encryption? OR
Debug the following C++ program :
Output
----------------
Feet : 12 Inches : 11
Feet : 24 Inches : 10
Feet : 36 Inches : 21
Program:
#include <iostream>
Using namespace std
class distance
{
int feet,
inches;
PUBLIC:
void distance_assign(int f, int i)
{
feet=F;
inches=i;
}
void display()
{
cout<<”\n Feet:”>>feet;
cout<<”\n Inches:”>>inches;
}
void display()
{
cout<<”\n Feet:”>>feet;cout<<”\n Inches:”>>inches;
}
distance operator+[distance d2]
{
distance d3
d3.feet=feet+d2.feet; d3.feet=inches+d2.inches;
return d3;
]
};
void main()
{
distance dist1,dist2;
dist1.distance_assign(12,11);
dist2.distance_assign(24,10);
distance dist3=dist1+dist2;
dist1.display();
dist2.display();
dist3.display()
getch();
}