Students can Download 2nd PUC Computer Science Previous Year Question Paper June 2015, Karnataka 2nd PUC Computer Science Model Question Papers with Answers helps you to revise the complete Karnataka State Board Syllabus and score more marks in your examinations.
Karnataka 2nd PUC Computer Science Previous Year Question Paper June 2015
Time: 3 Hrs 15 Min
Max. Marks: 100
PART – A
Answer all the following questions. Each question carries one mark. (10 × 1 = 10)
What is a motherboard?
The motherboard is a large printed circuit board and every physical unit is connected to it. It is the main circuit board of computer system.
What is a logic gate?
It is an electronic circuit having one or more than one input and only one output.
Give an example for linear data structure.
The examples for linear data structures are stack, queues and linked lists.
What is a class?
A class is a structured data type in C++ which is a collection of variables and functions.
Mention any one advantage of pointers.
The advantage of pointer is memory can be allocated or deallocated dynamically.
What is a database?
A database is a collection of large amount of related data. In other words, It is a collection of database tables.
Uniform Resource Locator.
Define bus topology.
A bus topology consists of a central cable with a terminator at each end. All nodes (file server, workstations, and peripherals) are connected to the linear cable.
Name any one web browser.
The name of a web browser is Google Chrome
Write any one HTML tag.
HTML tag :
Answer any five questions. Each question carries two marks. (5 × 2 = 10)
State and prove involution law.
This law states that the double complement of a variable gives the same variable.
What is principle of duality? Give an example.
The principle of duality states that starting with a Boolean relation, another relation can be derived by
- Changing each OR sing (+) to an AND sign (.).
- Changing each AND sing (.) to an OR sign (+).
- Replacing each 0 by 1 and each 1 by 0.
- All variables are complemented.
For example, (X + Y’) dual is (X’. Y)
Differentiate between base class and derived class.
A base class is a class from which other classes are derived. The class that inherits is called derived class. The inheriting class is called the derived class.
Mention different types of constructors.
The three types of constructors are
- Default constructor.
- Parameterized constructor.
- Copy constructor.
What is a stream? Mention any one stream used in C++.
A stream is a sequence of characters that move from the source to the destination. The streams generally used for file I/O is input stream, output stream, and error stream.
Write any advantages of database system.
The two advantages of database system are controlling Redundancy and Sharing of data.
Mention any two data types used in SQL.
The two data types used in SQL are number and varchar2.
Explain the circuit switching technique.
A type of communication in which a dedicated channel (or circuit) is established at the time of transmission. For example, the telephone system, which links together wire segments to create a single unbroken line for each telephone call. Circuit-switching systems are ideal for communications that require data to be transmitted in real-time.
Answer any five questions. Each question carries three marks: (5 × 3 = 15)
What is the function of UPS? Mention different types of UPS.
The function of UPS is
- UPS unit give continuous power supply in the event of main source power break.
- It also regulates the high and low voltage in power supply.
- They give different backup power ranging from 15 minutes to several hours.
On-line UPS and Off-line UPS are the two types of UPS.
Write the logic diagram and truth table for a NAND gate.
The truth table of NAND gate
The standard symbol of NAND gate.
Explain the various operations performed on queue data structure.
A queue is a non-primitive data structure where an item is inserted at one end and removed from the other end.
The queue(), enqueue(item), dequeue(), isEmpty() and size() are the operations that can be performed on queues.
- Queue() – create an empty queue
- enqueue(item) – insert in element into the queue.
- dequeue() – remove the element from the queue.
- isEmpty() – returns true if queue is empty otherwise false.
- size() – give the count of elements in a queue.
What is array of pointers? Give an example.
The one dimensional or two-dimensional pointer array is called array of pointer.
For example, int *ptr;
Where *ptr is array pointer variable and size of array is 5. i.e., ptr, ptr[l], ptr, ptr, ptr.
List the different modes of opening a file with their meaning in C++.
The methods of opening file within C++ program
- Opening a file using constructor
- Opening a file using member function open() of the class
Opening a file using constructor:
The syntax for opening file for output purpose only is ofstream obj(“filename”);
Write the different symbols used in E-R diagram with their significance.
What is E-commerce? Explain any two types.
The e-commerce is defined as buying and selling of products or services over electronic systems such as the Internet and other computer networks
1. B2B – Business to business:
Electronic commerce that is conducted between business organizations is referred to as business-to-business or B2B. for example, transactions between manufacturing industry with suppliers of raw materials.
2. B2C – Business to Consumer:
Electronic commerce that is conducted between trader and consumers is referred to as business-to-consumer or B2C. This is the type of electronic commerce conducted by companies such as Amazon.com, ebay.com, etc.
What is web-hosting? Mention different types of web-hosting.
Web hosting means to put web-site content on a Web server and provide fast connection to the internet. The different type of web-hosting are:
- Free Hosting
- Virtual or Shared Hosting
- Dedicated Hosting
- Colocation Hosting
Answer any seven of the following questions. Each question carries Five marks: (7 × 5 = 35)
Reduce.(F(A,B,C,D) = Σ(l,2,3,4,5,7,9, 11, 12, 13, 15) using Karnaugh map.
Reduced Boolean expression is AD + D + C
Explain the memory representation of stack data structure using arrays.
The items into the stack are stored in a sequential order from the first location of the memory block.
A pointer TOP contains the location of the top element of the stack.
A variable MAXSTK contains the maximum number of elements that can be stored in stack.
The stack is full when TOP = MAXSTK
The stack is empty when TOP = 0.
Write an algorithm of binary search.
Mention any five applications of OOP.
Some of the real life applications of object oriented programming are given below;
- Computer graphic applications
- CAD/CAM software
- Object oriented database
- User interface design such as windows
- Real time systems
- Simulation and modeling
- Artificial intelligence and expert systems.
What are access specifiers? Explain any two with examples.
The data members and member functions can be accessed using access specifiers. They define the scope of members.
The different access specifiers are private, protected and public.
1. Private members:
The member data and members functions defined using access specifier private, can be accessed by member functions of that class only. Non-members of the class cannot access private members of the class. If no access specifier is mentioned for the members, then it is treated as private members.
2. Public members:
The public members of a class can be accessed by member functions of that class and also non member functions (outside the class) of the class. The public member functions can access private, protected and public data members of the class.
The private data members regno, fees and name can be accessed by only getdata() and printdata() public member functions of the class student.
What is function overloading? Explain the need for overloading.
The overloading helps to apply polymorphism because Function overloading means two or more functions having same name but different types of arguments or different number of arguments. Whereas polymorphism refers to “one name having many forms of an object behavior depending on situations.
Function overloading is normally used when several function of the same name perform identical tasks on different data types. The overloading function helps to reduce the use of different names for many functions.
The developer of the program can use one function name to give function call to one in many functions and C++ select the appropriate function by checking the number of parameter and type of parameters. This reduces the selecting a function block to give a function call by the user.
It is easier to understand the flow of information that helps in faster debug. Easy program maintenance. There can be common interface between programs and real-world objects.
Explain destructor with syntax and example.
It is a special function used to release the memory space allocated by the object.
→ Name of the Destructor is similar to the class, which it belongs.
→ It does not have argument(s) and doesn’t return any value (no return type)
→ Destructor is preceded by ~ (tilde) sign.
Following points should be kept in mind while defining and writing the syntax for the destructor:
- A destructor function must be declared with the same name as that of the class to which it belongs.
- The first character of the destructor name must begin with a tilde (~).
- A destructor function is declared with no return types specified (not even void).
- A destructor function must have public access in the class declaration.
General Syntax of Destructors:
The above is the general syntax of a destructor. In the above, the symbol tilde ~ represents a destructor which precedes the name of the class.
What is inheritance? Mention its advantages.
In object-oriented programming, inheritance is a way to form new classes using classes that have already been defined.
Inheritance helps the code to be reused in many situations.
2. Saves Time and Effort:
Since the main code written can be reused in various situations as heeded.
3. Easy Maintenance:
The different part of the programs written in C++ can be easily maintained due to the features of Inheritance, polymorphism, dynamic binding, etc.,
4. Easy to extend:
The programs can be extended with new features by adding very easily.
5. Memory utlisation:
Due to the feature of dynamic binding and dynamic memory allocation (new and delete), memory can be efficiently used.
Define the following database terms
- Data model
- Primary key
- Foreign key
1. Data model:
Data models are fundamental entities that define how the logical structure of a database is modeled. Data models define how data is connected to each other and how they are processed and stored inside the system.
Collection of related fields (e.g. Name, Age, register number, marks)
A domain describes the set of possible values for a given attribute.
4. Primary key:
A primary key is a field in a table which uniquely identifies each row/record in a database table. Primary keys must contain unique values. A primary key column cannot have NULL values.
5. Foreign key:
A foreign key is a key used to link two tables together. Foreign Key is a column or a combination of columns whose values match a Primary Key in a different table.
What is data definition language? Explain SELECT and UPDATE commands.
Data Defintion Language commands create database objects such as tables, views, etc., The various Data definition language commands are Create Table, Alter Table, Create View, Drop Table, etc.,
1. Select Command:
It is used to view tuple/records from the tables. It is a read only command.
> select columns from table_name where condition;
> select * from tablename;
> select columnname1, columnname2,…. From tablename;
> select * from tablename where columnname=value
2. UPDATE command:
The update command is used to change row values from a table. The SET key word takes the column in which values needs to be changed or updated.
update tablename set columnname = value where condition;
> update marks set total = marks 1 + marks 2 + marks 3 where class =”IIPUC”;
Give the measures for preventing virus.
1. Install quality antivirus:
The users should install professional, business-grade antivirus software on their PCs. Pro-grade antivirus programs update more frequently throughout the, protect against a wider range of threats (such as rootkits), and enable additional protective features (such as custom scans).
2. Install real-time anti-spyware protection:
Use of professional (or fully paid and licensed) anti-spyware programs are required to prevent infections and fully remove those infections already present.
3. Keep anti-malware applications current:
Antivirus and anti-spyware programs require regular signature and database updates. Without these critical updates, anti-malware programs are unable to protect PCs from the latest threats. Computer users must keep their antivirus and anti-spyware applications up to date.
4. Perform daily scans:
Enabling complete, daily scans of a system’s on hard drive gives protection. These daily scans can be invaluable in detecting, isolating, and removing infections that initially escape security software’s attention.
5. Disable autorun:
Many viruses work by attaching themselves to a drive and automatically installing themselves. As a result, connecting any network drives, external hard disks, or even thumb drives to a system can result in the automatic propagation of such threats. The users can disable the Windows autorun feature to avoid.
6. Don’t click on email links or attachments:
Users should never click on email attachments without at least first scanning them for viruses using a business-class anti-malware application. As for clicking on links, users should access Web sites by opening a browser and manually navigating to the sites.
7. Use a hardware-based firewall:
The software-based firewall included with Windows isn’t sufficient to protect systems. For this reason, all PCs connected to the Internet should be secured behind a capable hardware-based firewall.