Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

Similar documents
Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70

SCIENCE ENTRANCE ACADEMY III PREPARATORY EXAMINATION SCHEME OF VALUATION

COMPUTER APPLICATION

Government of Karnataka SYLLABUS FOR SECOND PUC - COMPUTER SCIENCE (41) SUB-UNITS

ONE MARKS QUESTION AND ANSWERS

COMPUTER SCIENCE 2002 (Delhi Board)

COMPUTER SCIENCE PAPER 1

COMPUTER SCIENCE Paper 1

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

Databases - 4. Other relational operations and DDL. How to write RA expressions for dummies

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions.

CS/IT DIGITAL LOGIC DESIGN

MODEL PAPER -1 PART-A. 3.Define an array? An array is a linear data structure contain homogeneous data elements with a common name.

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

M.C.A. DEGREE EXAMINATION, MAY First Year. Paper I INFORMATION TECHNOLOGY. SECTION A (3 15 = 45 marks) Answer any THREE of the following.

Page. No. 1/15 CS201 Introduction to Programmming Solved Subjective Questions From spring 2010 Final Term Papers By vuzs Team

Standard Forms of Expression. Minterms and Maxterms

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

Short Notes of CS201

CS201 - Introduction to Programming Glossary By

CERTIFICATE IN WEB PROGRAMMING

IMPORTANT QUESTIONS WITH ANSWERS FOR II PU FINAL EXAMINATION

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS

CS201 Latest Solved MCQs

5. (a) What is secondary storage? How does it differ from a primary storage? (b) Explain the functions of (i) cache memory (ii) Register

double d0, d1, d2, d3; double * dp = new double[4]; double da[4];


UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

NULLs & Outer Joins. Objectives of the Lecture :

IMPORTANT QUESTIONS IN C FOR THE INTERVIEW

4. BOOLEAN ALGEBRA 8 5. NETWORKING AND OPEN SOURCE SOFTWARE 10

SPLIT-UP SYLLABUS ----CHENNAI REGION COMPUTER SCIENCE (Code: 083) Class-XII Academic Session

Classes. Logical method to organise data and functions in a same structure. Also known as abstract data type (ADT).

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

PART - I 75 x 1 = The building blocks of C++ program are (a) functions (b) classes (c) statements (d) operations

Software Engineering 2DA4. Slides 2: Introduction to Logic Circuits

University of Baghdad College of Science Department of Computer Science األسم الكامل: High Diploma Qualification Exam Date: 13 Aug Time: 3 hrs.

Programming the Database

Problem Solving with C++

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

2016 COMPUTER SCIENCE

Absolute C++ Walter Savitch

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

WYSE Academic Challenge Regional Computer Science 2008 Solution Set

22316 Course Title : Object Oriented Programming using C++ Max. Marks : 70 Time: 3 Hrs.

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

Come and join us at WebLyceum

M1-R4: Programing and Problem Solving using C (JAN 2019)

ISC 2007 COMPUTER SCIENCE PAPER 1 THEORY PART I Answer all questions in this part


Duration: 2 hours Max. Marks: 60

PART I. Answer all questions in this Part. While answering questions in this Part, indicate briefly your working and reasoning, wherever required.

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

QUESTION BANK FOR TEST

Chapter 2 Boolean algebra and Logic Gates

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

Seat No. Total No. of Questions : 6] [Total No. of Printed Pages : 2 [4189]-101. P. G. D. C. M. (Semester - I) Examination

COMPUTER SCIENCE 1998 (Delhi Board)

Quiz Start Time: 09:34 PM Time Left 82 sec(s)


3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

Review: Standard forms of expressions

Note: Select one full question from each unit

UNIVERSITY OF SWAZILAND

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Experiment 3: Logic Simplification

Boolean algebra. June 17, Howard Huang 1

KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION SPLIT-UP SYLLABUS ( ) CLASS XII : COMPUTER SCIENCE (THEORY)

P.G.D.C.M. (Semester I) Examination, : ELEMENTS OF INFORMATION TECHNOLOGY AND OFFICE AUTOMATION (2008 Pattern)

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

FORM 2 (Please put your name and form # on the scantron!!!!)

Databases - 5. Problems with the relational model Functions and sub-queries

Introduction to Programming Using Java (98-388)

Interview Questions of C++

Syllabus for Computer Science General Part I

CHRIST THE KING BOYS MATRIC HR. SEC. SCHOOL, KUMBAKONAM CHAPTER 9 C++

Part III. Data Modelling. Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1

Algorithms & Data Structures

C Language Part 2 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

Recharge (int, int, int); //constructor declared void disply();

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

Venkateshwar International School Sector-18, Dwarka, New Delhi-78 SAT- PRELIMINARY ROUND Class XII

Sri Vidya College of Engineering & Technology

ASSIGNMENT-1 M.Sc. DEGREE EXAMINATION, MAY 2018 (First Year) INFORMATION TECHNOLOGY Basics of Information Technology

CSc 453 Intermediate Code Generation

M.C.A. DEGREE EXAMINATION, MAY First Year Paper - I : INFORMATION TECHNOLOGY. Time : 03 Hours Maximum Marks : 75

CS February 17

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

ADMINISTRATIVE MANAGEMENT COLLEGE

Gate Level Minimization Map Method

Object-Oriented Programming

KOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming

S Y B Voc Software Development Syllabus

KENDRIYA VIDYALAYA SANGATHAN

COMPUTER SCIENCE (Theory) - Class XII Marking Scheme

Multiple Choice (Questions 1 13) 26 Points Select all correct answers (multiple correct answers are possible)

VALLIAMMAI ENGINEERING COLLEGE

CS 112 Introduction to Computing II. Wayne Snyder Computer Science Department Boston University

Transcription:

Answer key SUBJECT : COMPUTER SCIENCE Time : 3 hour 15 min Max. marks : 70 I. Answer ALL the questions 10 x 1= 10 1. What is DHTML? Dynamic HTML is a term used to describe the combination of HTML, style sheets and scripts that allows documents to be animated. 2. Define e-ecommerce. It refers to the trade of goods and services with the help of telecommunication and internet. 3. Define Local Area Networking. LAN is a network covering a small geographic area, like a home, office, or building. 4. Define the term topology of computer networks. Topology is the actual appearance or layout of networking. 5. Define data mining. The practice of examining large pre-existing databases in order to generate new information is called data mining. 6. How do you initialize a pointer variable? int *ptr, a; ptr = &a; 7. What is the significance of scope resolution operation in C++? When we declare the member function inside the class and define it outside the class, we must refer the class it belongs to. This is done using the scope resolution operator. 8. Name any one non-linear data structure. tree 9. Write the standard symbol for XOR gate. 10. Expand ISA. Industry Standard Architecture.

II. Answer any TEN questions 10 x 2 = 20 11. Prove algebraically that (X + Y) (X + Z) = X + YZ LHS = (X + Y) (X + Z) = XX + XZ + YX + YZ = X + XZ + XY + YZ [XX=X] = X(1+Z+Y)+YZ [1+X=1] = X.1+YZ [X.1=X] = X+YZ = RHS 12. Give the general syntax for defining classes and objects. Syntax for defining class: class class_name { private: Member data Member functions protected: Member data Member functions public: Member data Member functions }; Syntax for defining objects: Class_name object_name; 13. What are minterms and maxterms? Minterm is a product of all the literals (with or without the bar) within the logic system. A maxterm is a sum of all the literals (with or without the bar) within the logic system. 14. Mention any two antivirus software. Kaspersky, McAFee 15. Write the syntax for delete and insert command in SQL. DELETE FROM table_name WHERE condition; INSERT INTO table_name VALUES (value1,value2,value3,...);

16. Write any two rules for constructors. The name of a constructor is same as that of class in which it is declared. Constructors do not have any return type, not even void. 17. Write any two member functions belonging to ofstream class. put(), write() 18. What are the advantages and disadvantages of ISAM? Advantages 1. It combines the best features of sequential access and direct access. 2. Permits quick access of records even when the number of records is very large. Disadvantages 1. It requires special software and is expensive. 2. Extra processing time is required to process the indexes. III. Answer any FIVE questions 5 x 3 = 15 19. What is web hosting? Mention various web hosting services. Web hosting is a means of hosting web-server application on a computer system through which electronic content on the internet is readily available to any webbrowser client. Different types of web hosting services are free hosting, Virtual or shared hosting, Dedicated hosting, Collocation Hosting 20. What is meant by shareware? Write its limitations. Software for which license fee is payable after some time limit is called shareware. Disadvantage: Shareware cannot be modified, and it may be either a cut down or temporary version. Within the limit if the license fee is paid it cannot be used. 21. Explain relational data model with an example. In relational data model, data is organized in two-dimensional tables called relations.

The relational data model was developed by E.F Codd in 1970. DB2, MS-SQL Server is few of the popular relational DBMSs. Oracle, Sybase, 22. Give the functions of the following : a. get() - It reads a single character from the associated stream. b. getline() - It is used to read a whole line of text c. read() - It reads binary data from a file 23. Explain the use of new and delete operators in pointers. e is the key ord used to allo ate e ory dy a i ally at the ti e of program execution. E.g.: int *ptr = new int; delete key ord is used to u allo ated e ory allo ated dy a i ally. E.g.: int *ptr = new int; delete ptr; 24. What is stack? Write an algorithm for POP operation. Stack is an ordered collection of items where addition and deletion take place at the same end. Algorithm for POP Operation Step 1: If TOP = -1 then P INT ta k is e pty Exit End of If Step 2: ITEM = STACK[TOP] Step 3: TOP = TOP 1 Step 4: Return 25. Draw the logic diagram and truth table for 2 input XOR gate.

26. Expand UPS. Explain the types of UPS. Uninterruptible Power Supply There are two types of UPS. Online UPS and Standby UPS. Online UPS: An online UPS avoids those momentary power lapses by continuously providing power from its own inverter, even when the power line is functioning well. Standby UPS: A standby UPS (or Off-line UPS) monitor the power line and switches to battery power as soon as it detects a problem. The switch over process may take several milliseconds during which system is not receiving any power. IV. Answer any SEVEN questions 7 x 5 = 35 27. Write an algorithm to insert an element into a queue. Algorithm to insert element in queue Step 1: Step 2: Step 3: Step 4: If REAR = N-1 Then P INT O erflo Exit End of IF If FRONT = NULL Then FRONT = 0 REAR = 0 Else REAR = REAR + 1 QUEUE[REAR] = ITEM Return

28. Write an algorithm for insertion sort method. Algorithm for insertion sort: Step 1 : for (i = 1 to N-1) Step 2 : j= i Step 3 : while(j>=1) If (A[j] < A[j-1] Temp = A[j] A[j] = A[j-1] A[j-1] = Temp [End if] j=j-1 [End of while loop] [End of for loop] Step 4 : Exit 29. Using K-map, simplify the following expression in four variables: F(A, B, C, D) = m1+m2+m4+m5+m9+ m11+m12+m13 Quad 1: Reduced term B Quad 2: Reduced term C Pair 1 : Reduced term A D Which couldn t be paired : C Final reduced term B + C + A D + C 30. Write the rules to be followed in writing constructor function in C++. a. The name of a constructor is same as that of class in which it is declared.

b. Constructors do not have any return type, not even void. c. Constructors are always defined in the public section of the class. d. Like other C++ functions, constructors can also have default arguments. e. It is not possible to refer to the address of a constructor. 31. Describe briefly the use of friend function in C++ with syntax and example. A friend function is a non-member function of a class which gets access to private, protected and public data of a class. It is declared within a class with the prefix friend. If there is a situation where an outside function must get access to members of one or more class we can implement it by declaring that function as friend in side those functions Syntax: class class_name { Member declarations; friend return_type function_name(parameter list); }; Example: class Husband { private: int salary; public: void read() { cin >> salary; } friend int total(husband, Wife); }; 32. Explain defining objects of a class with syntax and a programming example. Memory is allocated only when the object is created. All operations related to class are done using object. Following is the syntax for declaration of object. class_name object_name1, object_name2,...; Example: class number { private: int num;

public: void read() { cin>>num; } }; void main() { number N1, N2, N3; //objects of the class number }; 33. Define object oriented programming. Write the limitations of object oriented programming. Object Oriented Programming (OOP) can be defined as a programming paradigm that represe ts o epts as o je ts that ha e data fields a d asso iated procedures known as methods. Limitations: a) No set standards: Object oriented programming software is not having set standards. b) Less reality: To convert a real world problem into an object oriented model is difficult. c) Classed are overly generalized: With Object oriented programming, classed are overly generalized. d) Program design difficult and tricky: Adaptability of flow diagrams and Object oriented programming is a complex process. This makes program design difficult and tricky. e) Needs to think in terms of objects: Programmer needs skill to think in terms of objects. 34. Explain network securities in detail. Network security is to make sure that only legal or authorized user and programs gain access to resources in the network. Some of the problem that may occur are: 1) Physical Security holes-when individuals gain unauthorized physical access to a computer. 2) Software Security holes-when badly written programs are doing things that they should not be doing.

3) Inconsistent usage holes-when the system administrator assembles a combination of hardware and software but it is seriously imperfect from a security point of view. 35. Describe any five logical operators available in SQL. IN "Equivalent to any member of" test. Equivalent to "= ANY". SELECT * FROM EMP WHERE ENAME IN ('SMITH', 'WARD'); ANY NOT IN ALL [NOT] BETWEEN x and y Compares a value to each value in a list or returned by a query. Must be preceded by =,!=, >, <, <=, or >=. Evaluates to FALSE if the query returns no rows. Equivalent to "!= ANY". Evaluates to FALSE if any member of the set is NULL. Compares a value with every value in a list or returned by a query. Must be preceded by =,!=, >, <, <=, or >=. Evaluates to TRUE if the query returns no rows. [Not] greater than or equal to x and less than or equal to y. SELECT * FROM DEPT WHERE LOC = ANY ('NEW YORK','DALLAS'); SELECT * FROM DEPT WHERE LOC NOT IN ('NEW YORK', 'DALLAS'); SELECT * FROM emp WHERE sal >= ALL (1400, 3000); SELECT ENAME, JOB FROM EMP WHERE SAL BETWEEN 3000 AND 5000; 36. Write the difference between Manual and Electronic Data Processing. Manual data processing Electronic data processing 1. For a given time, the data that can Large volume of data can be be processed is less in volume processed within a short period. 2. Manual data processing requires large quantity of paper. 3. The speed and accuracy at which the job is executed is limited 4. Since a lot of manual processing is involved the cost of labour is high. 5. Storage medium is paper. It makes the data processing work more Computers eliminate the usage of papers. Reasonably very less amount of paper will be used. The job executed is faster and accurate. Labour cost is economical as the number of staff required is less. Storage medium is secondary storage devices that can hold huge

tedious and tiresome amount of data. 37. Explain briefly the types of inheritance. 1) Single inheritance: If a class is derived from a single base class, it is calls as single inheritance. 2) Multilevel inheritance The classes can also be derived from the classes that are already derived. This type of inheritance is called multilevel inheritance. 3) Multiple inheritance If s class is derived from more than one base class, it is known as multiple inheritance. 4) Hierarchical inheritance If more than one classes are inherited from a base class, it is called as hierarchical inheritance. 5) Hybrid inheritance Combination of more than one form of inheritance is known as hybrid inheritance.

----------xxx----------