0% found this document useful (0 votes)
134 views8 pages

41 2nd PUC Comp Science SV Exam-1-1

The document contains a model answer key for a Computer Science exam with multiple choice and descriptive questions covering topics like logic gates, OOPs concepts, data structures, and file handling in C++. Some questions have explanations and examples to illustrate the concepts being asked about.

Uploaded by

dhanushgowda2024
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)
134 views8 pages

41 2nd PUC Comp Science SV Exam-1-1

The document contains a model answer key for a Computer Science exam with multiple choice and descriptive questions covering topics like logic gates, OOPs concepts, data structures, and file handling in C++. Some questions have explanations and examples to illustrate the concepts being asked about.

Uploaded by

dhanushgowda2024
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/ 8

KARNATAKA SCHOOL EXAMINATION AND ASSESMENT BOARD

PÀ£ÁðlPÀ ±Á¯Á ¥ÀjÃPÉë ªÀÄvÀÄÛ ªÀiË®å ¤tðAiÀÄ ªÀÄAqÀ°


II PUC EXAMINATION – 1, MARCH- 2024
¢éwÃAiÀÄ ¦AiÀÄĹ ¥ÀjÃPÉë -1, ªÀiÁZÀð-2024
SUBJECT :COMPUTER SCIENCE MODEL ANSWERS SUBJECT CODE:41

«µÀAiÀÄ : UÀtPÀ «eÁÕ£À ªÀiÁzÀj GvÀÛgÀUÀ¼ÀÄ «µÀAiÀÄ ¸ÀAPÉÃvÀ: 41


Question
PART-A Section - I Marks
Number
1) a) Inside the CPU 1

2) c) Switching algebra 1

3) b) both the inputs are high 1

4) a) A is true, R is false 1

5) b) :: (Scope resolution operator) 1

6) d) All A,B,C are correct 1

7) b) Public 1

8) d) Hierarchical Inheritance 1

9) c) Invalid indirection 1

10) a) ORACLE 1

11) b) UPDATE 1

12) a) Metropolitan Area Network 1

13) c) Half Duplex 1

14) a) Open Source Software 1

15) b) Web scripting 1


Question
PART-A Section – II FILL IN THE BLANKS Marks
Number
16) Information 1

17) Record 1

18) Tree 1

19) Primary key 1

20) Data mining 1


Question
PART-B Section III (Answer any four questions. Each carries two marks. ) Marks
Number
This law states that when a variable is combines with itself using OR or AND operator,
the output is the same variable.
21) i.e. 2
X+X=X ( 1 mark)
X.X=X (1 mark)
If the result of any logical expression is always TRUE (1) is called tautology. 1
22)
If the result of any logical expression is always FALSE (0) is called fallacy. 1

1
[ Any two characteristics of OOPs] 2

Object: It is a collection of data member and associated member functions.

Class: It is a way of grouping obj


objects having similar characteristics.
Data Abstraction: It refers to process of representing essential features without
including background details or explanations.
23)
Data Encapsulation: It combines data and functions into a single unit called data
encapsulation.
Inheritance: It is the process of forming a new class from an existing class.

Polymorphism: The ability of an operator and function to take multiple forms.

Dynamic binding, Message passing, Overloading


A constructor is a special
al member function that is used in classes to initialize the
1
objects of a class automatically.
24)
Types of constructors are – Default constructor, Parameterized constructors and Copy
1
constructor (ANY ONE)
25) Put(), write(), seekp(), tellp() [ Any Two
Two] 2
Candidate key: It is any set of one or more columns whose combined values are
1
unique among all occurrences. OR it is a key which is eligible to become primary key.
26)
Alternate key / Secondary key : This is a candidate key which are not currently
currentl
1
selected as primary key.
Syntax: DROP Table Table_Name; 1
27)
Example: DROP Table Employee; [Any Example] 1
Star Topology consists of a central node to which all other nodes are connected by a
single path. It is the topology used in most exis
existing
ting information networks involving
data processing or voice communications.

28) 1+1

Question
PART-C Section IV (Answer any four questions
questions.. Each carries three marks.
marks ) Marks
Number
[Any three features, each one feature carries one mark]
 Universal Serial Bus Port gives a single, standardized
standardized,, easy to use way (Plug
and Play interface) to connect a variety of peripherals to computer system.
29) These devices include Printer, Scanner, Digital camera etc. 3
 It is plug and play device
 It supports
pports a data speed of 12 mbps.
 It supports up to 127 devices.

2
30) A B F= A+B 1+2
0 0 0

0 1 1

1 0 1

1 1 1
[Any three application. Each carries one mark]
 Reverse a word/string
 UNDO mechanism in text editor
 To solve tower of Hanoi
 Expression evaluation and syntax parsing
31)  Rearranging rail road cars. 03
 Backtracking
 Conversion of decimal number to binary
 Conversion of infix expression into prefix and postfix
 Quick Sort
 Runtime Memory Management
An array of pointers means that it is a collection of address.
Example:
int *iptr[3];
int i=10, j=20, k=30;
32) 1+2
iptr[0]=&i; //*iptr[0]=10
iptr[1]=&j; //*iptr[1]=20
iptr[2]=&k; //*iptr[2]=30

[Any Three. Each one carries one mark.]


File mode
Meaning Stream Type
parameter
ios::app Append to end of file Ofstream

ios::in Open file for reading only Ifstream

ios::out Open file for writing only Ofstream


33) ios::binary Opening a binary file Ifstream, Ofstream 3

Open file for updation and move the


ios:ate Ifstream
file pointer to the end of file
Turn down opening if the file already Ofstream
ios::noreplace
exist Ofstream
Turn down opening if the file already Ofstream
ios::nocreate
exist
On opening,delete the contents of Ofstream
ios:trunk
file

3
34) [Any three component. Each one carries one mark] 3

Entity: An entity can be any object, place, person or class. It is represented using
rectangles.
Employee

Attribute: An attribute describes a property or characteristic of an entity. It is


represented using eclipse.
Name

Relationship: A relationship describes relations between entities. It is represented


using diamond shape.

Teacher Teaches Student

E-commerce is the trade of goods and services with the help of telecommunication
and computers.
[Any two technologies and services]
 EDI
 email
 EFT
35) 1+2
 electronic forms
 EBT
 Bulletin boards
 Digital cash
 Electronic banking / Net Banking
 Bar coding, imaging, voice recognition
< HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>

<BODY>

</BODY>
</HTML>
36) 3
<HTML> : This tag marks the beginning of HTML document
</HTML>: This tag marks the end of HTML document

<HEAD> </HEAD>: These tags define beginning and end of header section.

<TITLE>: This displays title in the title bar of the HTML document.

<BODY>: This tag defines the body of HTML document.


Question
PART-D Section V (Answer any four questions. Each carries five marks. ) Marks
Number
[Each one operation carries one mark]
 Traversing: the process of accessing each element exactly once to perform

4
37) some operation. 5
 Insertion: the process of adding a new element into the given collection of
data elements.
 Deletion: the process of removing an existing data element from the given
collection of data elements.
 Searching: the process of finding the location of data element in the given
collection of data elements./to find the element and its position
 Sorting: the process of arrangement of data elements in ascending or
descending order.
Step 1: If FRONT= NULL then
PRINT “Queue is Empty..” //underflow
EXIT 1 mark
Step 2: Item = Queue[FRONT] 1 mark
Step 3: If FRONT=REAR Then
38) FRONT=NULL 5
REAR=NULL 2 mark
Else
FRONT=FRONT+1
[End of If]
Step 4: Return 1 marks
[ Each one application carries one mark]
 CAD/CAM Software
 Computer Graphic Applications
39)  Object Oriented Database 5
 Real time systems
 AI and expert systems
 User Interface Design
Friend function is a non-member function which can access to both private and
protected member of a class.
[Any four characteristics]
It is a non-member function which can access to both private and protected member
of a class.
1. The function is declared with keyword friend. But while defining friend
function it defined as normal function i.e without keyword friend or ::
(scope resolution) operator. It does not use either keyword or ::
operator.
40) 2. A class may have any number of friend functions and a function may be friend 1+4
to any number of classes.
3. It can be declared or placed anywhere in the class i.e. private, public or
protected.
4. A friend function cannot be called using the object of that class.
5. It can be invoked like a normal function.
6. The parameter of friend function must be an object of the class to which it is
friend.
7. Unlike member function, it cannot access the class members directly,
but it can access through the object of the class to which it is a friend.
A constructor without arguments or zero arguments is called default constructors.
It is also known as “zero argument” constructor. The default constructors are useful
when the objects are needs to be created without having to type initial values.
[Any Two Features]
41) 1+2+1+1
Features of default constructor are:
1. It is declared and defined with no arguments.
2. It is automatically called for every object created of that class.
3. All the objects of the class are initialized to same set of values by the default

5
constructor.
4. It is not possible to initialize different objects with different values using
default constructor.
5. It simply allocates memory to data members of objects.

Syntax:
class class_name
{
private :
Data members
public :
class_name()
{
Constructor function body
}
};

Example: (Any suitable example)


class series
{
private :
int sum;
public :
series( )
{
sum = 0;
}
};

Inheritance is the capability of one class to inherit properties from another class.

 Multiple Inheritance: If a class is derived from more than one base class, it is
known as multiple inheritance.

Base Class-1 Base Class-2


Bus Car

Derived Class
Vehicle

42) 1+2+2
 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

Derived Class - 2 Son

6
Manual Data Processing Electronic Data Processing
Volume of data which can be processed Volume of data which can be processed
is limited is very large
It requires large quantity of papers Less amount of papers are used
43) 5
Speed and accuracy is limited Speed and accuracy is high

Labour cost is high Labour cost is economical

Storage medium is paper Secondary Storage medium

[Each one point, one mark]


Computer virus is a malicious program that can spread from computer to computer
and they can replicate themselves.
[Any four symptoms/characteristics]
 Slow response rate
44) 1+4
 It is able to replicate
 Unusual error messages
 System reboots on its own

Question
PART-E Section VI (Answer any two questions. Each carries five marks. ) Marks
Number

C’D’ C’D CD CD’

A’B’ 1 1 1 1

A’B 1 1

AB 1 1
45) 2+2+1

AB’ 1

First Quad = A’B’


Second Quad = C’D’
Pair = BCD
F=A’B’+C’D’+BCD

Member functions Outside class definition:


46) Member functions declared within a class must be defined separately outside the 2+3
class. Generally long functions those contains looping and switch statements are

7
written as outside class definition. The function prototype declaration is written
inside the class definition. The definition of member function is similar to normal
function. But a member function has a ‘identity label’ in the header. This label tells
the compiler which class the function belongs to. The scope of the member function
is limited to the class mentioned in the header. Scope resolution operator :: is used to
define the member function outside the class definition.
ANY 2 POINTS 2 marks

Syntax: for member function outside a class


return_type class_name :: memberfunction (arg1, arg2, arg3,……..)
{
Function body;
} (optional)

Example:
// (Any suitable relevant programming example) . 3 marks

[Optional]
Characteristics of Member function outside class definition
 Type and number of arguments in member function must be same as type
and number of data declared in class definition.
 The symbol :: is known as scope resolution operator. Usage of :: along with
class name is the header of function definition. The scope resolution operator
identifies the function as a member of particular class.
 Several classes can use same function name. Membership label will resolve
their scope.
 Member function can access private and protected data of a class. A non –
member function cannot.

[ Each one query carries one marks]

a) Select * from employee;

b) Select Max(NetSalary) from employee;


47) 5
c) Select Min(NetSalary) from employee;

d) Delete from employee;

e)Drop Table employee;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy