#### Half yearly model question paper 1 - Computer Science

11th Standard

Reg.No. :
•
•
•
•
•
•

Computer Science

Do not write anything on question paper.

Time : 02:30:00 Hrs
Total Marks : 70

Part A

15 x 1 = 15
1. In ATM machines, which one of the following is used to ____

(a)

Touch Screen

(b)

Speaker

(c)

Monitor

(d)

Printer

2. How many characters can be handled in Binary Coded Decimal System?

(a)

64

(b)

255

(c)

256

(d)

128

3. NOR is a combination of?

(a)

NOT(OR)

(b)

NOT(AND)

(c)

NOT(NOT)

(d)

NOT(NOR)

4. A number system can be derived from a..............

(a)

bit

(b)

byte

(c)

(d)

nibble or word

5. Which is an elementary building block of the digital circuit?

(a)

Gate

(b)

Digital gate

(c)

Logic gate

(d)

Physical gate

6. What is the smallest size of data represented in a CD?

(a)

blocks

(b)

sectors

(c)

pits

(d)

tracks

7. Interactive Operating System provides______

(a)

Graphics User Interface (GUI)

(b)

Data Distribution

(c)

Security Management

(d)

Real Time Processing

8. In which operating system, given task done within a fixed timeline?

(a)

Real time

(b)

(c)

Multiprocessor

(d)

Online

9. Which is the default application for spreadsheets in Ubuntu? This is available in the software launcher?

(a)

Libre Office Writer

(b)

Libre Office Calc

(c)

Libre Office Impress

(d)

10. Which of the following activities is not algorithmic in nature?

(a)

Multiply two numbers

(b)

Draw a kolam.

(c)

Walk in the park

(d)

Braid the hair

11. In which control flow, the statements are repeated until the condition becomes false?

(a)

sequential

(b)

alternative control flow

(c)

iterative

(d)

all of these

12. Which of the following properties is true after the assignment (at line 3)?
1 -- i+j = 0
2 i, j := i1+, j1-
3 -- ?

(a)

i + j > 0

(b)

i+j < 0

(c)

i+j=0

(d)

i = j

13. If C is true, S1 is executed in both the flowcharts, but S2 is executed in

(a)

(1) only

(b)

(2) only

(c)

both (1) and (2)

(d)

neither (1) nor (2)

14. Which of the following is not an invariant of the assignment? m, n := m2+, n3+

(a)

m mod2

(b)

n mod3

(c)

3 X m - 2 X n

(d)

2 X m - 3 X n

15. The unchanged variables of the loop body is called loop

(a)

condition

(b)

loop statement

(c)

loop variable

(d)

loop invariant

16. Part B

Answer any six in which question no. 24 is compulsory.

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

18. What Is Boolean Algebra?

19. What is HDMI?

20. Write any four RISC processors.

21. Mention the different server distributions in Linux OS.

22. Write the options appears which shutting down Ubuntu.

23. When will the loop variant be true?

24. The following constants are of which type?
(i) 39
(ii) 032
(iii) 0XCAFE
(iv) 04.14

25. If $\sqrt{2}$ = 1.414, and the square -root() function returns -1.414, does it violate the following specification?
-- square -root (x)
-- inputs: x is a real number, x > 0
-- outputs: y is a real number such that y2=x

26. Part C

Answer any six in which question no. 33 is compulsory.

6 x 3 = 18
27. Write the De Morgan's law.

28. Perform the following expressions. (COFFEE)16 = (?)2

29. Differentiate PROM and EPROM

30. What is the difference between assignment operator and equality operator?

31. Write the following in real constants.
(i) 15.223
(ii) 211.05
(iii) 0.00025.

32. The following code sums up the total of all students name starting with ‘S’ and display it.Fill in the blanks with required statements.
struct student {int exam no,lang,eng,phy,che,mat,csc,total;char name[15];};
int main()
{
student s[20];
for(int i = 0; i < 20; i ++)
{
…………………….. //accept student details
}
for(int i = 0; i < 20; i ++)
{
…………………….. //check for name starts with letter “S”
……………………. // display the detail of the checked name
}
return 0;
}

33. Write the output of the following C++ program code :
#include
using namespace std;
class Calci
{
int Bonus;
public:
Calci() {Grade='E'; Bonus=0;} //ascii value of A=65
void Down(int G)
{
}
void Up(int G)
{
Bonus++;
}
void Show()
{
cout<< Grade << "#" << Bonus << endl; }
};
int main()
{
Calci c;
c.Down(3);
c.Show();
c.Up(7);
c.Show();
c.Down(2);
c.Show( );
return 0;
}

34. What is Nano-technology?

35. What are the differences between “Logical error” and “Syntax error”?

36. Part D

5 x 5 = 25
1. Explain the fundamental gates of expression and truth table

2. Suppose a number system has been designed with radix 10 with symbols (ordered from small to large) A, B, C, D, G, H, I, L, M, N. Convert the following number to equivalent hexadecimal number; (lNDIAN)10

(a) Which Class of software the OS belongs?
(b) What is the need of OS?
(c) Why OS is important?
(d) Name any three types of Operating systems.
(e) Name any three functions of OS.

2. Write the procedure to create, rename, delete and save a file in Ubuntu OS. Compare it with Windows OS.

1. Suppose you want to solve the quadratic equation ax2 + bx + C = 0 by an algorithm. quadratic_solve (a, b, c)
-- inputs: ?
-- outputs: ?
You intend to use the formula and you are prepared to handle only real number roots. Write a suitable specification.
$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$

2. Explain Algorithm Design Techniques.

1. Circulate the contents: Write the specification and construct an algorithm to circulate the contents of the variables A, B and C as shown below: The arrows indicate that B gets the value of A, C gets the value of B and A gets the value of C.

2. Write programs to find the sum of the following series:
(a) $x-\frac { { x }^{ 2 } }{ 2! } +\frac { { x }^{ 3 } }{ 3! } -\frac { { x }^{ 4 } }{ 4! } +\frac { { x }^{ 5 } }{ 5! } -\frac { { x }^{ 6 } }{ 6! }$
(b) $x+\frac { { x }^{ 2 } }{ 2 } +\frac { { x }^{ 3 } }{ 3 } +...+\frac { { x }^{ n } }{ n }$

1. Write a C++ program to add two distances using the following structure definition
struct Distance{
int feet;
float inch;
}d1 , d2, sum;

2. Define a class RESORT with the following description in C++ :
Private members:
Rno // Data member to store room number
Name //Data member to store user name
Charges //Data member to store per day charge
Days //Data member to store the number of days
Compute ( ) // A function to calculate total amount as Days * Charges and if the
//total amount exceeds 11000 then total amount is 1.02 * Days *Charges
Public member:
getinfo( ) // Function to Read the information like name , room no, charges and days
dispinfo ( ) // Function to display all entered details and total amount calculated
//using COMPUTE function