11th Computer Science EM Public Exam Model Question Paper English Medium PDF
11th Computer Science EM Public Exam Model Question Paper English Medium PDF
com
et
i.N
la
sa
da
Pa
w.
ww
et
i.N
la
sa
da
Pa
w.
ww
et
6. b) Invariant
7. a) size of
i.N
8. b) switch
9. b) int
10. c) 6
PART – II
la
II. ANSWR ANY SIX QUESTIONS. QUESTION No: 24 IS COMPULSORY: 6 X 2 = 12
sa
16. Distinguish Primary and Secondary Memory.
Ans:
Primary Memory Secondary Memory
da
Generally stores current files of OS and Generally stores data permanently.
applications that are in use.
It holds data or instructions temporarily. It stores data permanently.
Pa
2 87
2 43 –1
ww
2 21 –1
2 10 –1
2 5 –0
2 2 –1
1 –0
(87)10 – (1010111)2
et
20. What is meant by a token? Name the token available in C++.
i.N
Ans: The smallest individual unit in a program is known as a Token or a Lexical unit. C++ has the
following tokens:
1. Keywords 2. Identifiers 3. Literals 4. Operators 5. Punctuators
la
21. Correct the following code segment.
if(x = 1) sa Note:
P = 100; In this code segment, = is a wrong operator
else for a condition, as = is an assignment
P = 10; operator. In if case condition we should use =
da
Ans: = which is an equal to operator. The operator
Given Code Corrected Code ‘= =’ checks whether the two operands are
if(x = 1) if(x = = 1) identical or not. If so, it’s going to return true.
Pa
P = 100; P = 100;
Otherwise, it’s going to return false. Replace
else else
P = 10; P = 10; = with = = to make the code segment correct.
PART – III
III. ANSWER ANY SIX QUESTIONS. QUESTION No: 33 IS COMPULSORY: 6 X 3 = 18
et
1 1 1
i.N
Inputs Output
A B C=A+B
0 0 0
la
0 1 1
1 0 1
1sa 1 1
26. Write down the classification of microprocessor based on the instruction set.
Ans: The two types of microprocessors based on their instruction sets.
w.
28. There are 7 tumblers on a table, all standing upside down you are allowed to turn any 2 tumblers
simultaneously in one move. Is it possible to reach a situation when all the tumblers are right side
up?
Ans:
Let
u No. of tumblers right side up( )
v No. of tumblers upside down( )
et
All tumblers upside
down u=0 u=0 Even
v=7
i.N
Desired final state:
All tumblers are
la
right side up u=7 u=7 Odd
v=0
sa
Possible Iterations:
da
Iteration Diagramatic Representation u, v Parity of u
(No. of
tumblers
Pa
right side
up)
Case 1:
Turning both upside
w.
Case 2:
Turning both right
side up tumblers to u: = u – 2 u Even
upside down. v: = v + 2 (Even – 2 =
Even)
Case 3:
Turning one right u: = u + 1 – 1 : = u u Even
side up tumbler to (Unchanged)
upside down and v:=v+1–1:=v
other tumbler from
upside down to right
side up.
Observation: Initially u = 0, and continuous to be even in all the 3 cases. Therefore u is always even.
Invariant: u is always even (i.e. No. of right side up tumblers are always even)
Conclusion: It is not possible to reach a situation where all the tumblers are right side up ( u = 7 odd).
et
Ans:
isupper( ) toupper( )
i.N
isupper( ) function is used to check whether the toupper( ) function is used to convert the given
given character is Uppercase or not. character to tis Uppercase.
isupper( ) returns either true or False (1 or 0). toupper( ) returns a character.
la
Example: Example:
char x = ‘a’; char x = ‘a’;
cout<<isupper(x); sa cout<<toupper(x);
Output: Output:
0 A
da
31. List some of the features of modular programming?
Ans: - Emphasis on algorithm rather than data.
- Programs are divided into individual modules.
Pa
- Each modules are independent of each other and have their own local data.
- Modules can work with its own data as well as with the data passed to it.
Example: Pascal and C.
w.
- The default arguments of overloaded functions are not considered as part of the parameter list in
function overloading.
PART – IV
IV. ASWER ALL THE QUESTIONS: 5 X 5 = 25
et
- Consumed more power
- Malfunction due to over
i.N
heat
- Machine language was
used
First Generation Computers – ENIAC, EDVAC, UNIVAC I
la
ENIAC weighed about 27 tons, size 8 feet x 100 feet x 3 feet and consumed around 150 watts of
power.
2 Second sa 1956 – 1964 Transistors - Smaller compared to First
Generation Generation
- Generated less heat
- Consumed less power
compared to first generation
da
- Punched cards were used
- First operating system was
developed – Batch
Pa
processing and
Multiprogramming
Operating System
- Machine language as well
w.
et
- Development of robotics
- Natural Language
Processing
i.N
- Development of Voice
Recognition Software
[ OR ]
la
b) Explain the process management algorithms in Operating System.
Ans: Process management is function that includes creating and deleting processes (program) and
sa
providing mechanisms for processes to communicate and synchronize with each other.
Example: a system task of sending output to a printer.
Process management algorithms:
da
The following algorithms are mainly used to allocate the job (process) to the processor.
i. FIFO ii. SJF iii. Round Robin iv. Based on Priority
i. FIFO (First In First Out) Scheduling: This algorithm is based on queuing technique.
Technically, the process that enters the queue first is executed first by the CPU, followed by the
Pa
next and so on. The processes are executed in the order of the queue.
ii. SJF (Shortest Job First) Scheduling: This algorithm works based on the size of the job begin
executed by the CPU.
w.
for time sharing systems. Jobs (processes) are assigned and processor time in a circular method.
Example: Suppose there are three jobs A, B, C. First the job A is assigned to CPU then job B
and job C and then again A, B and C and so on.
iv. Based on Priority: The given job (process) is assigned based on a priority. The job which has
higher priority is more important than other jobs.
Example: Suppose there are two jobs,
Job A Priority = 5
Job B Priority = 7, then
Job B is assigned to the processor before job A.
et
system setting and customizing options.
i.N
Windows 1992 - Introduced the concept of multitasking.
3.x - Supported 256 Colours which brought a more
modern, colourful look to the interface.
la
Windows NT sa 1993 - Desingned to act as servers in network.
da
on
multitasking.
Explorer)
with the Operating System.
- DOS gaming began to disappear as Windows
ww
based
games improved.
- Plug and play feature was introduced.
et
Windows 7 2009 - Booting time was improved, introduced new user
interfaces like Aero peek, pinning programs to
i.N
taskbar, hand writing, recognition, etc., and
Internet
Explorer 8.
la
Windows.
sa - Start button was removed.
- Windows 8 takes better advantages of multi-core
processing, solid state drives (SSD), touch
screens
and other alternate input methods.
da
- Served as common platform for mobile and
computer.
Pa
and
quick actions.
- Cortana voice activated personal assistant.
ww
[ OR ]
b) Trace the step-by-step execution of the algorithm for factorial(4).
factorial (n)
- - inputs: n is an integers, n ≥ 0
- - outputs: f = n!
f, i: 1, 1
while i ≤ n
f, i : = f * i, i + 1
Ans:
(i) f = 1 i=1 f= f*i i=i+1
f= 1x1=1 i=2
et
(ii) f= 1x2 i=3
=2
(iii) f= 2x3 i=4
i.N
=6
(iv) f= 6x4 i = 5 ( loop terminates )
= 24
36. a) Write about Binary operations used in C++.
la
Ans:
- Binary operators require two operands.
sa
- Binary operators are grouped as
i. Arithmetic operators
ii. Relational operators
da
iii. Logical operator
iv. Assignment operator
v. Conditional operator ( Ternary operator)
Pa
i. Arithmetic Operators: - Arithmetic operators perform simple arithmetic operations like addition,
subtraction, multiplication, division etc.
w.
ii. Relational Operators: - Relational operators are used to determine the relationship between its
operands. When the relational operators are applied on two operands, the
result will be a Boolean value i.e., 1 or 0 to represents True or False
respectively. C++ provides 6 relational operators.
Example:
Operator Operation Example
< Less than 12 < 4 is FALSE
<= Less than or equal to 12 < = is TRUE
> Greater than 12 > 4 is TRUE
>= Greater than or equal to 12 > = 12 is TRUE
== Equal to 12 = = 4 is FALSE
et
!= Not equal to 12 ! = 4 is TRUE
i.N
iii. Logical operators: A logical operator is used to evaluate logical and relational expressions. The
logical act upon the operands that are themselves called as logical expressions.
C++ provides 3 logical operators.
Example:
la
Operator Operation Description Example
&& AND
sa
The logical AND combines two
different relational expressions into one.
(80 > 35) && (70 > 35)
will return TRUE
Both expressions are TRUE returns
TRUE, otherwise returns FALSE
da
|| OR The logical OR combines two different (80 > 35) || (70 > 35) will
relational expressions in to one. Any one return TRUE
expressions is TRUE returns TRUE
otherwise returns FALSE.
Pa
! NOT NOT works on a single expression / ! (80 > 35) will return
operand. Expression is TRUE returns FALSE
FALSE. Expression is FALSE returns
TRUE
w.
iv. Assignment Operator: Assignment operator is used to assign a value to a variable which is on the
left hand side of an assignment statement. = (equal to) is commonly used
ww
et
[ OR ]
b) What is an entry control loop? Explain any one of the entry – controlled loop with suitable example.
i.N
Ans: In an entry control loop, the test-expression is evaluated before the entering into a loop.
Example: 1. while loop 2. for loop
1. while loop:
Purpose: A while loop is a control flow statement that allows the loop statements to be executed as
la
long as the condition is true.
Type: Entry control loop
sa
Syntax:
while ( Test expression )
{
da
Body of the loop;
}
Statement-x;
Pa
Flowchart representation:
w.
ww
Workflow:
Step 1: Test-expression is evaluated to either True or False.
Step 2: If test-expression is True
a) The body of the loop is executed
b) Control is transferred to step1.
Step 3: If test-expression is False, the control exits the while loop.
Example:
#include<iostream>
using namespace std;
void main( )
{
int a = 2;
while (a <= 10)
{
cout<<a<<”\t”;
a+=2;
}
OUTPUT:
et
2 4 6 8 10
i.N
37. a) Write a note on the basic concepts that supports OOPS?
Ans: - Encapsulation: The mechanism by which the data and functions are bound together into a
single unit is known as Encapsulation. It implements abstraction.
- Data Abstraction: Abstraction refers to showing only the essential features without revealing
la
background details.
- Modularity: Modularity is designing a system that is divided into a set of functional units
sa (named modules) that can be composed into a large application.
- Inheritance: Inheritance is the technique of building new classes (derived class) from an
existing class (base class). The most important advantage of inheritance is code
da
reusability.
- Polymorphism: Polymorphism is the ability of a message or function to be displayed in more
than one form.
Pa
[ OR ]
b) Explain the difference types of Inheritance.
Ans: Inheritance is the process of creating new classes called derived classed, from the existing or
w.
base classes.
There are different types of inheritance, namely
i) Single inheritance
ww
i. Single Inheritance:
When a derived class inherits only from one base
class, it is known as single inheritance
et
i.N
iii. Hierarchical Inheritance:
When more than one derived classes are created
from a single base class , it is known as
la
Hierarchical inheritance
sa
iv. Multilevel Inheritance:
The transitive nature of inheritance is reflected
da
by this form of inheritance. When a class is
derived from a class which is a derived class –
then it is referred to as multilevel inheritance
Pa
Multilevel Inheritance
w.
v. Hybrid Inheritance:
When there is a combination of more than one
type of inheritance, it is known as hybrid
ww
et
i.N
la
sa
da
Pa
w.
cout<<“First Student”<<endl;
cout<<“rollno:”<<p1.rollno<<endl<<“name”<<p1.name<<endl;
cout<<“phone no:”<<p1.phone_number<<endl;
cout<<“Second Student”<<endl;
cout<<“rollno”<<p2.rollno<<endl<<“name”<<p2.name<<endl;
cout<<“phone no:”<<p2.phone_number<<endl;
return 0;
}
Ans:
OUTPUT:
et
First Student
rollno: 1
i.N
name: Brown
phone no: 123443
Second Student
rollno: 2
la
name: Sam
phone no: 1234567890
sa
da
Pa
w.
ww
– Prepared By
S.Vinoth Kumar,
B.Sc.(CS)., MCA., B.Ed.,
Mobile Number: (+91)9786845143,
PG.Asst.in Computer Science Dept.,
Mount Carmel Mission
Matriculation Higher Secondary
School,
Kallakurichi – 606 202.