1
KARNATAKA SCHOOL EXAMINATION AND ASSESSMENT BOARD
II PUC EXAM- 2 APRIL/MAY- 2025
SUBJECT: 41 – COMPUTER SCIENCE SCHEME OF EVALUATION MAX MARKS: 70
Q. No. PART-A Marks
I. Select the correct answer from the choices given.
1 _________ is a large printed circuit board having many chips, ports, controllers 1M
and other electronic components mounted on it.
a) Integrated circuit b) Motherboard c) Chipset d) North bridge
Answer: b) Motherboard
2 Complementary law states that
a) X.X=X b) X.0=0 c) X+1=1 d) X. ̅
X =0
Answer: d) X. 𝐗̅ =0
3 Given the logic diagram, 1M
1
? the output is
1
a) 1 b) 0 c) 1,0 d) 1,1
Answer: b) 0
4 Assertion(A): A stack is a LIFO data structure. 1M
Reason(R): An ordered collection of items where insertion and deletion take
place at same end.
a) Both (A) and (R) are false b) (A) is true and (R) is false
c) (A) is true and (R) is true d) (A) is false and (R) is true
Answer: c) (A) is true and (R) is true
5 Examine the following C++ program segment and identify the error. 1M
class result
{
private: int a;
}
void main( )
{
result x;
}
a) Error due to incorrect object declaration
b) Error due to semicolon missing after class definition.
c) Error due to missing public access specifier.
d) Error due to invalid initialization of object.
Answer: b) Error due to semicolon missing after class definition.
6 Which of the following statements are correct with respect to function 1M
overloading?
I. Function names are same.
II. Number of arguments are same.
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
2
III. Number of arguments are different.
IV. Data types of arguments are different.
a) I,III and IV are correct b) I,II and III are correct
c) I,II and IV are correct d) II and IV are correct
Answer: a) I,III and IV are correct
7 The symbol used with destructor is 1M
a) # b) :: c) ~ d) *
Answer: c) ~
8 If a class is derive from more than one base class, then it is called as 1M
a) Multiple inheritance b) Single inheritance
c) Hierarchical inheritance d) Multilevel inheritance
Answer: a) Multiple inheritance
9 Given: int *ptr,X=50; which is the correct way to assign address of X variable 1M
to the pointer?
a) ptr=X; b) ptr=*X; c) ptr=&X; d) X=ptr;
Answer: c) ptr=&X;
10 Collection of data elements organized in terms of rows and columns is called 1M
a) Attribute b) Table c) Domain d) Field
Answer: b) Table
11 Which one of the following command belongs to DDL in SQL? 1M
a) Create b) Insert c) Grant d) Delete
Answer: a) Create
12 Correct expansion form of TCP is 1M
a) Transfer Control Program b) Transmission Control Protocol
c) Transmission Control Program d) Transfer Control Protocol
Answer: b) Transmission Control Protocol
13 An example for Half Duplex Communication mode is 1M
a) Walkie talkie b) Telephone c) Television d) Mobile
Answer: a) Walkie talkie
14 The trade of goods and services with the help of Telecommunication and 1M
Computer is
a) Telnet b) Web Browser c) Web Server d) e-Commerce
Answer: d) e-Commerce
15 Which of the following refers to the Web Content that changes each time it is 1M
viewed?
a) HTML b) DHTML c) XML d) FTP
Answer: b) DHTML
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
3
II. Fill in the blanks choosing the appropriate word/words from those given in the brackets.
(Network, Relational, ORACLE, Data mining, Oval, Data)
16 The collection of facts, figures, statistics is called Data. 1M
17 ORACLE is an example for DBMS Software. 1M
18 Relational Model organizes the data in table form. 1M
19 The symbol used to represent attribute in ER Diagram is Oval 1M
20 Data mining is concerned with the analysis and picking out relevant information. 1M
PART-B
III. Answer any FOUR questions. Each question carries TWO marks
21 Prove algebraically that X + XY = X 2M
X + XY= X(1 + Y) 1m
= X.1 (1+Y=1) 1m
= X= RHS (X.1=X)
22 Realize OR gate using NAND gate only. 2M
X ̅̅̅̅
𝑿𝑿
X+Y
Y ̅̅̅̅
𝒀𝒀
1m
1m
23 What is a constructor? Give an example. 2M
A special member function that is used in classes to initialize the objects of a
class automatically is called constructor. 1m
class demo
{
int x;
public: demo( ) 1m
{
x=10;
}
};
24 Differentiate between text file and binary file. 2M
Text file:It is a file that stores information in ASCII characters.
In text files, each line of text is terminated with a special character known as
EOL (End- of-line) character or delimiter character. When this EOL character
is read or written, certain internal translations take place.
Binary file:It is a file that contains information in the same format as it is held
in memory. In binary files, no delimiters are used for a line and no translations
occur here.
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
4
25 List any two applications of database. 2M
Banking Colleges
Water meter billing Rail & airlines
Finance Sales
Human resources paychecks Manufacturing
Any 2 suitable examples
26 Describe Relational(Comparison) operator in SQL. 2M
= Checks if the values of two operands are equal or not, if yes then If a=10,b=20
condition becomes true. (a = b) is not true.
!= Checks if the values of two operands are equal or not, if values (a != b) is true.
are not equal then condition becomes true.
< Checks if the value of left operand is less than the value of right (a < b) is true.
operand, if yes then condition becomes true.
> Checks if the value of left operand is greater than the value of (a > b) is not true.
right operand, if yes then condition becomes true.
<= Checks if the value of left operand is less than or equal to the (a <= b) is true.
value of right operand, if yes then condition becomes true.
Any 2 operators
27 Write syntax and example for SQL DELETE command. 2M
Syntax: delete from table name where condition; 1m
Ex: delete from student where side =5; 1m
PART-C
IV. Answer any FOUR questions, each question carries three marks
28 Explain the characteristics of motherboard. 3M
a) Form Factor: It refers to the motherboard’s geometry, dimensions,
arrangement and electrical requirements.
b) Chipset: It controls the majority of resources of the computer. The function
of chipset is to coordinate data transfer between the various components of
the computer.
c) Processor Socket: It may be a rectangular connector into which the processor
is mounted with many small connectors into which the processor is directly
inserted.
29 What is primitive data structure? Give any two examples. 3M
Data structures that are directly operated upon by machine-level instructions
are known as primitive data structure. 1m
Ex: Integer, float, character, pointers. Any 2 examples for 2m
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
5
30 Describe array of pointers with an example. 3M
Pointer array means collection of addresses of same data type. 1m
Ex: int *p[5]; 1m
int a=10, b=20, c=30, d=40, e=50;
p[0] = &a; *p[0] = 10;
p[1] = &b; *p[1] = 20;
p[2] = &c; *p[2] = 30; 1m
p[3] = &d; *p[3] = 40;
p[4] = &e; *p[4] = 50;
31 Explain any three file opening modes in data file handling. 3M
ios::in :This mode open file for reading only .It belongs to ifstream class.
ios::out :This mode open file for writing only. It belongs to ofstream class.
ios::app: This mode Append to end of file. It belongs to ofstream.
ios:binary: This mode Opening a binary file. It belongs to ifstream & ofstream.
ios::ate: This mode Open file for updation. It belongs to ifstream & ofstream.
Any 3 file opening modes
32 Differentiate between manual and Electronic Data Processing. 3M
Manual data processing Electronic(computerized) data processing
The volume of the data which can The volume of the data which can be
be processed is limited in a processed is very large.
desirable time.
This data processing requires This data processing requires
large quantity of paper. reasonable less amount of papers.
The speed & accuracy is limited. Processing is faster & accurate.
Labor cost is high. Labor cost is economical.
Storage medium is paper. Storage medium is secondary storage
medium.
Any 3 differences
33 Expand the following: a) WWW b) URL c) EFT 3M
a) World Wide Web
b) Uniform Resource Locator
c) Electronic Fund Transfer
34 Write HTML tags a) To insert image in a web page. 3M
b) To add background colour to web page.
c) To bold text on a web page.
<img>
<body>
<b>
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
6
PART-D
V. Answer any FOUR questions, each question carries Five marks
35 Write an algorithm for binary search. 5M
Step 1: set B = 0, E = n-1,LOC=-1
Step 2: while (B <= E)
M= int(B+E)/2
if(ELE = A[M]
loc = M
GOTO 3
else
if(ELE <A[M])
E = M-1
else
B = M+1
End of while
Step 3: if(LOC >= 0)
PRINT LOC
else
PRINT “Search is unsuccessful”
Step 4: Exit
36 What are the applications of QUEUE? 5M
• Simulation
• Various features of operating system.
• Multi-programming platform systems
• Different type of scheduling algorithm
• Round robin technique or Algorithm
• Printer server routines
• Various applications software is also based on queue data structure
Any 5 applications
37 Explain the advantages of OOP. 5M
1) The programs are modularized based on the principle of class & objects.
2) Linking code & objects allows related objects to share common code. This
reduce the code duplication & code reusability.
3) Easier to develop complex software.
4) Creation & implementation of OOP code is easy & reduces software
development time.
5) The concept of data abstraction separates object specification & object
implementation.
6) External non-member function cannot access or modify the data due to
data encapsulation.
Any 5 advantages
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
7
38 What is inline function? Explain with suitable example. 5M
Inline function is a short function in which compiler replaces a function call with
the body of the function. 1m
Example:
#include<iostream.h>
#include<conio.h>
inline int cube(int a)
{
return(a*a*a);
}
void main( )
{ 4m
int x,y;
cout<<”enter a number”;
cin>>x;
y=cube(x);
cout<<”Cube of x =”<<y;
getch();
}
Or any suitable example
39 Illustrate how to invoke parameterized constructor implicitly. 5M
An Implicit call means the declaration of the object is followed by argument list
enclosed in parentheses. 1m
Example:
#include<iostream.h>
class num
{
private:int a,b;
public:num(int x, int y)
{
a = x; 2m
b = y;
}
void display()
{
cout<<"a = "<<a<<" b = "<<b;
}
};
void main()
{ 2m
num n1(10,20);
num n2(30,40);
n1.display();
n2.display();
getch( );
}
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
8
40 What is inheritance? Explain single inheritance and hierarchical 5M
inheritance.
The capability of one class to inherit properties from another class is called
inheritance. 1m
Single level Inheritance: If a class is derived from a single base class, it is called
as single inheritance.
Base class Father
2m
Derived class Son
Hierarchical Inheritance: If a number of classes are derived from a single base
class, it is called as hierarchical inheritance.
2m
41 What is topology? Explain any two topologies. 5M
The actual appearance or layout of networking is called as topology. 1m
a)The Star Topology
b)The Bus or Linear Topology
c)The Ring or Circular topology Explanation of any 2 topologies 4m
d)The Tree Topology
e)Graph Topology
VI. Answer any TWO questions, each question carries Five marks
42 Given the Boolean function F(A,B,C,D)= ∑ (0,1,4,5,10,11,14). Reduce it 5M
using K-map.
CD
C̅ ̅
D C̅ D CD ̅
CD
AB
A̅ B
̅ 1 1 0 0
0 1 3 2
̅B
A 1 1 0 0 2m
4 5 7 6
AB 0 0 0 1
12 13 15 14
AB̅ 0 0 1 1
8 9 11 10
̅C
Pair1 = m10+m11= AB
Pair2 = m10+m14= 𝐴𝐶D̅ 2m
Quad = m0 +m1+ m4+m5=A̅ C̅
Reduced expression = A𝐁
̅ C + 𝑨𝑪𝐃 ̅ 𝐂̅
̅ +𝐀 1m
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2
9
43 Define a class SI with the following members and conditions. 5M
i) Data members: principle,rate,time
ii) Member functions: getdata( ) and output( )
iii) Define member functions outside the class to input and output
principle,rate,time
class SI
{
private: int principle,rate,time; 1m
public: void getdata( );
void output( );
};
void SI::getdata( )
{
cout<<”Enter the principle,rate,time.”<<endl; 2m
cin>>principle>>rate>>time;
}
void SI::output( )
{
cout<<”Principle=”<<principle<<endl; 2m
cout<<”Rate=”<<rate<<endl;
cout<<”Time=”<<time;
}
44 Write the SQL Query for the following question based on given employee 5M
table.
Table Name: Employee
Empid Name Age Salary
20001 PPP 40 60000
20002 QQQ 35 55000
20003 RRR 32 50000
20004 SSS 29 45000
I) Develop the table with above fields.
II) Display the structure of the table.
III) Find the total number of employees.
IV) Find the maximum salary.
V) Display all employee record with age>30.
I) create table Employee(Empid number(5),Name varchar(20),
Age number(3),Salary number(6));
II) Desc Employee;
III) Select count(*) from Employee;
IV) Select max (Salary) from Employee;
V) Select * from Employee where age>30;
PART-E (For Visually –Challenged Students only)
VII.3 What is the output of the two input AND Gate for the inputs X=1 and Y=1? 1M
a) 1 b) 0 c) 1,1 d) 0,0
Answer: a) 1
KSEAB MODEL ANSWERS 41 – COMPUTER SCIENCE 2025 II PUC EXAM - 2