#### +1 Public Model Exam March 2019

11th Standard

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 02:30:00 Hrs
Total Marks : 70
15 x 1 = 15
1. Expansion of MSB is......

(a)

Most Sign Bit

(b)

Most Significant Bit

(c)

Medium Signal Bit

(d)

Most Significant Byte

2. Which is the fastest memory?

(a)

Hard disk

(b)

Main memory

(c)

Cache memory

(d)

Blue-Ray disc

3. Which of the following refers to Android operating system's version?

(a)

JELLYBEAN

(b)

UBUNTU

(c)

OS/2

(d)

MITTIKA

(e)

None of the above

4. _______________is a special folder to keep the files or folders deleted by the user, which means you still have an opportunity to recover them.

(a)

My computer

(b)

Documents

(c)

Recycle bin

(d)

Pictures

5. Stating the input property and the as output relation a problem is known

(a)

specification

(b)

statement

(c)

algorithm

(d)

definition

6. If Fibonacci number is defined recursively as$f(n)=\begin{cases} 0n=0 \\ 1n=1 \\ f(n-1)+f(n-2)otherwise \end{cases}$to evaluate F(4), how many times F() is applied?

(a)

3

(b)

4

(c)

8

(d)

9

7. How many types of integer literals in C++?

(a)

3

(b)

5

(c)

7

(d)

6

8. The set of statements that are executed again and again in iteration is called as:

(a)

condition

(b)

loop

(c)

statement

(d)

body of loop

9. How many arguments are there in pow() function?

(a)

2

(b)

3

(c)

1

(d)

4

10. Array subscripts is always starts with which number?

(a)

-1

(b)

0

(c)

2

(d)

3

11. Which of the following is the most important advantage of inheritance?

(a)

data hiding

(b)

code reusability

(c)

code modification

(d)

accessibility

12. Which of the following statement is true or false?
(i) Attributes represent the features of a class
(ii) Methods are not used to perform specific tasks in the class

(a)

i-false, ii-true

(b)

i-false, ii-false

(c)

i-true, ii-true

(d)

i-true, ii-false

13. Which of the following means a name having two or more distinct meanings?

(a)

Abstraction

(b)

Overridding

(c)

(d)

data binding

14. The type of inheritance that reftects the transitive nature is_________

(a)

Single Inheritance

(b)

Multiple Inheritance

(c)

Multilevel Inheritance

(d)

Hybrid Inheritance

15. The first programming language "Ezhil" is designed by

(a)

C++

(b)

Java

(c)

Python

(d)

Visual Basic

16. 6 x 2 = 12
17. Differentiate Input unit and Output unit.

18. What is Bus?

19. What are the security management features available in Operating System?

20. Both conditional statement and iterative statement have a condition and a statement. How do they differ?

21. Define factorial of a natural number recursively

22. Match the following

A   B
(a) Modulus    (1) Tokens
(b) Separators      (2) Remainder of a division
(c) Stream extraction     (3) Punctuators
(d) Lexical Units  (4) get from
23. Write the output of the following program.
using namespace std;
#include< iostream >
#inc1ude< ctype.h >
int maint)
{
char ch = '3';
cout<< "\n The Return Value of isdigit(ch) is :" <<
isdigit( ch) ;
}

24. Differentiate structure and class though both are user defined data type.

25. Which determines the functional output of cryptographic algorithm?

26. 6 x 3 = 18
27. Reason out why the NAND an NOR are called universal gates?

28. What is the function of file management?

29. What is the format of the specification of an algorithm?

30. Draw a flowchart that depicts iterative control flow.

31. Write a C++ program to print multiplication table of a given number.

32. With note an Array of strings.

33. Define information hiding.

35. Explain the uses of private, protected and public inheritance.

36. 5 x 5 = 25
1. What are Registers? Explain the five Registers that are essential for instruction execution.

2. Explain the characteristics of a microprocessor.

1. Explain how will you copy files and folders in windows.

2. Decanting problem. You are given three bottles of capacities 5 ,8 and 3 litres. The 8L bottle is filled with oil, while the other two are empty. Divide the oil in 8L bottle into two equal quantities. Represent the state of the process by appropriate variables. What are the initial and final states of the process? Model the decanting of oil from one bottle to another by assignment. Write a sequence of assignments to achieve the final state.

1. Write a program to find the LCM and GDC of two numbers.

2. What is Recursion? Write a program to find GCD using recursion.

1. Write a C++ Program to declare a structure book containing name and author as character array of 20 elements each and price as integer. Declare an array of book. Accept the name, author, price detail for each book. Define a user defined function to display the book details and calculate the total price. Return total price to the calling function.

2. Write the output of the following program
#include < iostream >
using namespcae std;
class simple
{
private:
int a,b;
public:
simple(int m, int n=100) //default argument
{
a=m;
b=n;
cout << "\n Parameterized Constnictor with default argument" << endl;
}
void putdata( )
{
cout << "\nThe two integers are " << a <<'\t' << b << endl;
cout << "\nThe sum of the variables" << a << "+" << b << " = " << a+b;
}
};
int main( )
{
simple s1(10,20), s2(50);
cout << "\n\t\tObject 1 with both values \n";
s1.putdata( );
cout << "\n\t\tObject 2 with both values \n";
s2.putdata( );
return 0;
}

1. Answer the question (i) to (v) after going through the following class.
classBook
{
intBookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{
fees=1000;
BookCode=1;
strcpy (Bookname,"C++");
}
void display(float C) //Function 2
{
cout< }
~Book( ) //Function 3
{
cout << "End of Book Object"< }
Book (intSC,char S[ ],float F) ; //Function 4
};
(i) In the above program, what are Function 1 and Function 4 combined together referred as?
(ii) Which concept is illustrated by Function3? When is this function called/ invoked?
(iii) What is the use of Function3?
(iv) Write the statements in main to invoke function1 and function2
(v) Write the definition for Function4.

2. Given the following set of definitions. What data
members and functions are directly accessible by
the functions mentioned here?
void inform(void):
class x {
inta;
float b;
void init(void);
public:
char ch; void gett(void);
protected:
doubleamt;
void getamt (void) ;
friend void A (void);
};
class y : public X
{
intx;
public;
intj;