0% found this document useful (0 votes)
14 views

41

The document outlines the scheme of valuation for the II PUC Computer Science examination scheduled for March 1, 2025, detailing the structure of the question paper divided into four parts: A, B, C, and D. It includes instructions for evaluation, types of questions, and specific topics covered, such as data models, SQL operations, object-oriented programming concepts, and various data structures. Each section specifies the marks allocated for different questions and provides examples of expected answers.

Uploaded by

afshan.affu05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

41

The document outlines the scheme of valuation for the II PUC Computer Science examination scheduled for March 1, 2025, detailing the structure of the question paper divided into four parts: A, B, C, and D. It includes instructions for evaluation, types of questions, and specific topics covered, such as data models, SQL operations, object-oriented programming concepts, and various data structures. Each section specifies the marks allocated for different questions and provides examples of expected answers.

Uploaded by

afshan.affu05
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

GOVERNMENT OF KARNATAKA

KARNATAKA SCHOOL EXAMINATION AND ASSESSMENT BOARD


II PUC EXAMINATION - 1 MARCH - 2025

SCHEME OF VALUATION

SUBJECT : COMPUTER SCIENCE SUBJECT CODE: 41


Instructions :
1. The question paper has four parts namely A, B, C, D
2. For Part – A questions, only the first written answers will be considered for evaluation.
QNo. PART – A MARKS
I Select the correct answer from the choices given
1. b) Motherboard 1m
2. c) Involution law 1m
3. d) Both a) and b) 1m
4. c) A is false, R is true 1m
5. a) regno, name, marks 1m
6. b) friend function 1m
7. c) no return type 1m
8. a) Base class 1m
9. b) ptr = &n; 1m
10. c) Domain 1m
11. b) Drop. 1m
12. a) Hyper Text Transfer Protocol 1m
13. d) Gateway 1m
14. a) FSF 1m
15. b) Dedicated hosting 1m
II Fill in the blanks choosing the appropriate word/words from those given
in the bracket.

( Data independence, Data integrity, Sequential, Foreign,


Datawarehouse, Serial )

16. Data integrity 1m


17. Data independence 1m
18. Sequential 1m
19. Foreign 1m
20. Data warehouse 1m

1
III PART – B
21. Write the dual form of :
a) 1 + 0 = 1  0.1=0 1m
b) X . 1 = X  X+0=X 1m

22. Realize OR gate using only NAND gate

2m

23. Write any two features of parameterized constructor.


 The parameterized constructors can be overloaded.
 For an object created with one argument, constructor with only one
2m
argument is invoked and executed.
 The parameterized constructor can have default arguments and default
values.
 It is possible to initialize different objects with different initial values.

( Any two features )


24. List the member functions of "ofstream".

put( ), write( ), seekp( ), tellp( ) 2m

( Any two functions )


25. Define data model. Mention any one data model.
A Data Model is an abstract model that describes how the data is
represented and used. 1m

Types: Relational model, Network model, Hierarchical model. ( Any one ) 1m

26. Mention any two logical operators in SQL.


ALL, AND, ANY, BETWEEN, EXISTS, IN, LIKE, NOT, OR, IS NULL, UNIQUE 2m

( Any two operators )

27. What is "order by" clause in SQL? Write its syntax.


ORDER BY clause is used to sort the data in ascending or descending order, 1m
based on one or more columns.
Syntax :
1m
SELECT column_list FROM table_name [ WHERE condition ]
ORDER BY column_list [ASC / DESC];
2
IV PART - C
28. Write a note on UPS and it types.
Uninterrupted Power Supply . It is a power supply that includes a battery to
maintain power in the event of power failure. 1m

Types of UPS :
Online UPS : It supplies power from its own inverter even when the power
line is functioning properly. 1m

Offline or standby UPS : It monitors the power line and switches to battery
power as soon as it detects a problem 1m

Or any suitable definition/points. Each carries 1 mark.


29. Explain the different types of linked list.
i) Singly linked list : Singly linked list contains two parts - data part and link
part. Data part contains data and link part contains address of next node. 1m
ii) Circular linked list : In circular linked list, the link field of the last node
1m
contains the address of the first node.
iii) Doubly linked list : Doubly linked list contains three parts – 1m
forward, backward, and data. Each node contains both next and previous
node address.

Or any suitable definition or diagram. Each carries 1 mark.


30. Define:
a) Free store: Free store is a pool of unallocated memory heap used by the 1m
program for dynamic allocation.
b) this pointer: Every object has access to its own address through an
1m
important pointer called this pointer.
c) Self referential structure: The self-referential structure are structures
that include an element that is a pointer to another structure of same 1m
type.

Or any suitable definition. Each carries 1 mark.


31. What is a file? Compare text file and binary file.
The information/data stored under a specific name on a storage device is called
file. 1m
Text File : It stores information in ASCII characters and each line of text is
terminated with special character known as EOL and requires internal
translation. 1m
Binary File : It stores information in the same format as it is held in the
memory. No delimiters are used and no translation occurs. 1m
Or any suitable definition. Each carries 1 mark.

3
32. Describe the different levels of RDBMS.
Internal level:
It is the lowest level of data abstraction that deals with the physical
1m
representation of the database. It is also known as physical level.
Conceptual Level:
It is the next higher level of abstraction that deals with the logical structure of
1m
the entire database. It is also known as logical level.
External level:
It is the highest level of abstraction that deals with the user's view of the
database. It is also known as view level. 1m

Or any suitable definition. Each carries 1 mark.


33. Identify the type of e-commerce in the following cases:

a) Buying of used cars from the owner : C2C 3m


b) Buying of goods by distributor from manufacturer : B2B

c) Buying of goods from Amazon website : B2C

34. Briefly explain the basic structure of HTML.


<HTML>
<HEAD>
<TITLE> ----------------</TITLE>
</HEAD>
<BODY>
----------
</BODY> 1m
</HTML>

<HTML> tag m arks the beginning of the HTML and </HTML> tag marks the
end of HTML document.
<HEAD> tag begins the head section of the HTML document and </HEAD>
tag defines the end of the heading.
<TITLE> tag gives title to HTML document that appears on browser title bar.
<BODY> tag defines the body of HTML document. 2m

4
V PART – D
35. What is primitive data structure? Explain the different operations
performed on primitive data structure.
Data structures that are directly operated upon by machine level instructions are 1m
known as primitive data structure.
i) Create: Create operations is used to create a new data structure. Ex: int x;
ii) Destroy: Destroy operation is used to destroy or remove the data structure
from the memory space.
iii) Select: Select operation is used by programmers to access the data within
the data structure.
iv) Update: Update operation is used to change the data of data structures. 4m

36. Write an algorithm to insert an element into the Queue.


Step 1: IF REAR = N-1 then
PRINT “QUEUE IS FULL”
EXIT 1m
[End of if ]
Step 2: IF FRONT = NULL then
FRONT = 0
REAR = 0 3m
ELSE
REAR = REAR + 1
[End of if]
Step 3: QUEUE[REAR] = ITEM 1m
Step 4: RETURN 5m

37. Explain any five characteristics of OOP.


Object: An object is a collection of data members and associated member functions.
Class: A class is a way of grouping objects having similar characteristics. A class is a
template from which objects are created.
Data Abstraction: Abstraction is the process of representing essential features
without including background details.
Data Encapsulation: Wrapping up of data and functions into a single unit (class) is
data encapsulation.
Inheritance: The objects of one class acquires the properties of another class through
inheritance.
Overloading: Overloading allows objects to have different meaning depending upon
context. Operator overloading and Function overloading.
Polymorphism: The ability of an operator and function to take multiple forms is
known as polymorphism.
Dynamic Binding: Dynamic binding is a process of linking procedure call to function
at runtime.
Message passing: In OOP, Object may communicate with each other through message
passing 5m
Or any suitable definition. Each carries 1 mark - Any five characteristics
5
38. Define inline function. Write the situations where inline function may not
work.
The inline function is a short function. Compiler replaces a function call with 1m
the body of the function. It uses the keyword called ‘inline’.
The situations where inline function may not work :
1. The inline function definition is too long or too complicated.
2. The inline function is recursive.
3. The inline function has looping constructs.
4. The inline function has a switch or goto. 4m

39. Explain default constructor with syntax and suitable programming


example.
A constructor which does not take any argument is called a default
constructor. 1m
Syntax:
class classname
{
public:
classname( )
{
body of the constructor 1m
}
};
Example :
#include<iostream.h>
#include<conio.h>
class X
{
private : int a,b;
public :
X ( ) //default constructor
{
a = 10;
b = 20;
}
void display ( )
{
cout<<”a=“ <<a<<setw(5)<<”b=”<<b<<endl;
}
};
void main( )
{
X obj1,obj2;
obj1. display ( );
obj2. display ( );
} 3m

( Definition – 1m, Syntax – 1m, Programming example- 3m )


6
40. With a neat diagram explain the different types of inheritance.
Single inheritance:
If a class is derived from a single base class, it is called as single inheritance.

Father
Base class

Son
Derived class 1m
Multiple inheritance:
If a class is derived from more than one base class, it is known as multiple
inheritance.

---- Queen
Base class-1 Base class-2 Base class-n King

1m
Derived class Prince

Multilevel inheritance:
The classes can also be derived from the classes that are already derived. This
type of inheritance is called multilevel inheritance.

Base class Grand Father

Derived class-1 Father


1m
Derived class-2
Derived class-n
Son

Hierarchical inheritance:
If a number of classes are derived from a single base class, it is called as
hierarchical inheritance
Base class

Derived class-1 Derived class-2 Derived class-3

Staff

1m
Lecturers Office staff Group - D

7
Hybrid inheritance:
Hybrid inheritance is combination of Hierarchical and multilevel inheritance.
Base class

Derived class-1 Derived class-2

Derived class 1m

41. Give the measures for preventing virus.


i. Never use a “foreign” disk or CD without scanning it for viruses.
ii. Always scan files downloaded from the internet or other sources.
iii. Never boot your PC from external disk or pendrive unless it is virus free.
iv. Use the licensed software.
v. Install the antivirus software.
vi. Password protect your PC.
vii. Keep antivirus software up to date.
5m
Or any suitable measures. Each carries 1 mark – Any five

VI
42. Given the Boolean function F(A,B,C,D) = ∑(5,6,7,10,14,15). Simplify it
using K-map.

Quad 1 = B C
Pair 1 = A B D
Pair 2 = A C D 5m
Final SOP = B C + A B D + A C D

K-Map Construction - 1 mark


Mapping and reduction - 3 marks
Final SOP - 1 mark
8
43. Define a class employee with data members empno, empname and
member functions getdata() and putdata().Define the member functions
outside the class.
#include <iostream>
#include<conio.h>
class employee
{
private:
int empno;
char empname[20]; 2m
public:
void getdata( );
void putdata( );
};
void employee :: getdata( )
{
cout << "Enter Employee Number: ";
cin >> empno;
cout << "Enter Employee Name: ";
cin>> empname; 3m
}
void employee :: putdata( )
{
cout << "Employee Number: " << empno << endl;
cout << "Employee Name: " << empname << endl; 5m
}
void main( )
{
employee e;
clrscr( );
e.getdata( );
e.putdata ();
getch( );
}
( Defining class – 2 marks, Defining member functions outside the class – 3 m )
( Note : main ( ) function is optional )

9
44. With reference to the table given below, write the SQL query to
perform the following operations:

Table Name : Book


Book - Code Book - Name Book - Qty Book - Price

101 C 5 200
102 Java 10 250
103 Python 20 350
104 HTML 15 150
105 SQL 25 230

a) Display all the records from "Book" table.


1m
SELECT * FROM Book;

b) Add a new field "Total - Cost" to the table book.


1m
ALTER TABLE Book ADD ( Total_Cost NUMBER(8,2) );

c) Calculate the Total - Cost.


1m
UPDATE Book SET Total_Cost = Book_Qty * Book_Price;

d) Find the highest Total - Cost.


1m
SELECT MAX( Total_Cost ) FROM Book;

e) Delete the record whose Book - Code is 102


1m
DELETE FROM Book WHERE Book_Code=102;

*********

10

You might also like