← Class 12 Board Exam (2nd PUC)
Karnataka State Board · Computer Science

KARNATAKA STATE BOARD CLASS 12 SECOND PUC COMPUTER SCIENCE 2025-2

2025 · 47 questions · First 10 Solutions Free
Questions 1–10 have full step-by-step solutions visible. Sign in to unlock all 47 →
Q1 mcq 1 mark
_______ is a large printed Circuit Board having many chips, ports, controllers and other electronic components mounted on it.
a.
Integrated Circuit
b.
Mother Board Correct Answer
c.
Chipset
d.
North Bridge.
Step-by-Step AI Explanation
Verified Method
The Motherboard is the main circuit board in a computer that holds and connects the CPU, memory, ports, and other essential electronic components.
Q2 mcq 1 mark
Complementary law states that
a.
$X \cdot X = X$
b.
$X \cdot 0 = 0$
c.
$X + 1 = 1$
d.
$X \cdot \bar{X} = 0$ Correct Answer
Step-by-Step AI Explanation
Verified Method
The complement law in Boolean algebra states that $X \cdot \bar{X} = 0$ and $X + \bar{X} = 1$. The other options represent the idempotent law ($X \cdot X = X$), null law ($X \cdot 0 = 0$), and annihilation/identity law ($X + 1 = 1$).
Q3 mcq 1 mark
Given the Logic Diagram, the output is
Question 3 image
a.
1
b.
0 Correct Answer
c.
1, 0
d.
1, 1
Step-by-Step AI Explanation
Verified Method
The diagram shows an AND gate followed by a NOT gate (a NAND gate). The inputs are 1 and 1. The output of the AND gate is $1 \cdot 1 = 1$. The NOT gate inverts this, resulting in an output of 0.
Q4 mcq 1 mark
Assertion (A) : A stack is a LIFO data structure. 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.
Both (A) and (R) are true Correct Answer
d.
(A) is false and (R) is true.
Step-by-Step AI Explanation
Verified Method
A stack is indeed a LIFO (Last-In-First-Out) data structure, and by definition, it is an ordered collection where all insertion and deletion operations happen at the same end, called the 'top'.
Q5 mcq 1 mark
Examine the following C++ program segment and identify the error. 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. Correct Answer
c.
Error due to missing public access specifier.
d.
Error due to invalid initialization of object.
Step-by-Step AI Explanation
Verified Method
In C++, a class definition must end with a semicolon after the closing brace. The provided code segment lacks this semicolon after the 'class result' block, which causes a syntax error.
Q6 mcq 1 mark
Which of the following statements are correct with respect to function overloading? I. Functions names are same. II. Number of arguments are same. III. Number of arguments are different. IV. Data types of arguments are different.
a.
I, III and IV are correct. Correct Answer
b.
I, II and III are correct.
c.
I, II and IV are correct.
d.
II and IV are correct.
Step-by-Step AI Explanation
Verified Method
Function overloading requires the same function name, but the signatures must differ in either the number of arguments (III) or the data types of the arguments (IV). I is correct, and II is incorrect because if the number of arguments were the same, the data types must differ.
Q7 mcq 1 mark
The symbol used with destructor is
a.
#
b.
::
c.
~ Correct Answer
d.
*
Step-by-Step AI Explanation
Verified Method
In C++, a destructor function is defined using the tilde symbol (~) followed by the class name.
Q8 mcq 1 mark
If a class is derived from more than one base class, then it is called as
a.
Multiple inheritance Correct Answer
b.
Single inheritance
c.
Hierarchical inheritance
d.
Multilevel inheritance.
Step-by-Step AI Explanation
Verified Method
Multiple inheritance is the correct choice because it describes a scenario where a class inherits features from more than one parent or base class. Single inheritance involves one base class; multilevel involves a chain of inheritance; hierarchical involves multiple classes inheriting from one single base class.
Q9 mcq 1 mark
Given int *ptr, X = 50; which is the correct way to assign address of X variable to the pointer?
a.
ptr = X;
b.
ptr = *X;
c.
ptr = &X; Correct Answer
d.
X = ptr;
Step-by-Step AI Explanation
Verified Method
The address-of operator '&' is used to retrieve the memory address of a variable. Therefore, ptr = &X correctly assigns the address of variable X to the pointer variable ptr. The other options are syntactically incorrect or perform improper type assignments.
Q10 mcq 1 mark
Collection of data elements organised in terms of rows and columns is called as ________.
a.
Attribute
b.
Table Correct Answer
c.
Domain
d.
Field
Step-by-Step AI Explanation
Verified Method
A table (also known as a relation) is defined as a collection of data elements organized into rows (tuples) and columns (attributes). Attributes and fields refer to individual columns, and a domain is the set of permissible values for an attribute.
🎉 10 Free Sample Solutions Completed

Unlock All 47 Questions & Solutions

Sign up free in seconds to unlock step-by-step AI answers for the remaining 37 questions.

Q11 mcq 1 mark
Which one of the following command belongs to DDL in SQL?
a.
Create
b.
Insert
c.
Grant
d.
Delete
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q12 mcq 1 mark
TCP    .
a.
Transfer Control Program
b.
Transmission Control Protocol
c.
Transmission Control Program
d.
Transfer Control Protocol
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q12 mcq
Correct expansion form of TCP is
a.
Transfer Control Program
b.
Transmission Control Protocol
c.
Transmission Control Program
d.
Transfer Control Protocol
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q13 mcq
An example for Half Duplex Communication mode is
a.
Walkie talkie
b.
Telephone
c.
Television
d.
Mobile
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q14 mcq
The trade of goods and services with the help of Telecommunication and Computer is
a.
Telnet
b.
Web Browser
c.
Web Server
d.
e-Commerce
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q15 mcq
Which of the following refers to the Web Content that changes each time, when it is viewed?
a.
HTML
b.
DHTML
c.
XML
d.
FTP
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q16 short answer
The collection of facts, figures, statistics is called _______.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q17 short answer
_____ is an example for DBMS Software.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q18 short answer
________ Model organises the data in table form.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q19 short answer
The symbol used to represent attribute in ER Diagram is _______.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q20 short answer
_________ is concerned with the analysis and picking out relevant information.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q21 short answer 2 marks
Prove algebraically that $X + XY = X$.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q22 short answer 2 marks
Realize OR using NAND gate only.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q23 short answer 2 marks
What is constructor? Give an example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q24 short answer 2 marks
Differentiate between text file and binary file.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q25 short answer 2 marks
List any two applications of database.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q26 short answer 2 marks
Describe Relational (Comparison) operator in SQL.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q27 short answer 2 marks
Write syntax and example for SQL DELETE command.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q28 short answer 3 marks
Explain the characteristics of a mother board.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q29 short answer 3 marks
What is primitive data structure? Give any two examples.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q30 short answer 3 marks
Describe array of pointers with an example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q31 short answer 3 marks
Explain any three file opening modes in data file handling.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q32 short answer 3 marks
Differentiate between manual and Electronic Data Processing.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q33 short answer 3 marks
Expand the following: a) WWW b) URL c) EFT
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q34 short answer 3 marks
Write HTML tags a) To insert image in a web page. b) To add background colour to web page. c) To bold text on a web page.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q35 long answer 5 marks
Write an algorithm for binary search.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q36 long answer 5 marks
What are the applications of QUEUE?
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q37 long answer 5 marks
Explain the advantages of OOP.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q38 long answer 5 marks
What is inline function? Explain with suitable example.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q39 long answer 5 marks
Illustrate how to invoke parameterized constructor implicitly.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q40 long answer 5 marks
What is inheritance? Explain single inheritance and hierarchical inheritance.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q41 long answer 5 marks
What is Topology? Explain any two topologies.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q42 long answer 5 marks
Given the Boolean function F (A, B, C, D) = Σ (0, 1, 4, 5, 10, 11, 14). Reduce it using k-map.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q43 long answer 5 marks
Define class SI with the following members and conditions. 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.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q44 long answer 5 marks
Write the SQL Query for the following question based on given employee table. Table Name : Employee 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.
Question 45 image
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q44 long answer 5 marks
Write the SQL Query for the following question based on given employee table. Table Name : Employee Empid Name Age Salary 20001 PPP 40 60,000 20002 QQQ 35 55,000 20003 RRR 32 50,000 20004 SSS 29 45,000 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.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q47 mcq
What is the output of the two input AND Gate for the inputs X = 1 and Y = 1?
a.
1
b.
0
c.
1, 1
d.
0, 0
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.