Computer Science 330 Assignment

Similar documents
Index for C++ Programming

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

Subject: Computer Science

COMPUTER SCIENCE (330) TUTOR MARKED ASSIGNMENT

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION. REVISION Examination 2013 COMPUTER SCIENCE (083) CLASS XII

(a) Differentiate between a call by value and call by reference method.

INTERNATIONAL INDIAN SCHOOL, RIYADH. Ch 1 C++ Revision tour

List of Practical for Class XII Computer Science

Suggestive List of C++ Programs

SCIENCE ENTRANCE ACADEMY III PREPARATORY EXAMINATION SCHEME OF VALUATION

Mock Test Paper-3. Computer Science. Duration : 3hrs Max Marks : 70

Computer Science. Practical File

Scheme G. Sample Test Paper-I. Course Name : Computer Engineering Group Course Code : CO/CD/CM/CW/IF Semester : Second Subject Tile : Programming in C

CLASS XII COMPUTER SCIENCE(083) TimeAllowed : 3 HrsMax Marks : 70

MARKING SCHEME INFORMATICS PRACTICES (065) Time allowed : 3 Hours M. M.: 70. (a) Ans: Team Viewer( 1 mark for correct answer)

Code No: R Set No. 1

INHERITANCE: EXTENDING CLASSES

ios ifstream fstream

Questions Bank. 14) State any four advantages of using flow-chart

SAMPLE PAPER Class XII Subject INFORMATICS PRACTICES. TIME: 3Hrs. M.M. 70

I Mid Semester May 2012 : Class XII : Computer Science Max Mark 50 : Time 2 Hrs. 1. a) What is macro in C++? Give example 2

Introduction to Computer Science Midterm 3 Fall, Points

1. Wap in JAVA to accept two values and calculate highest value and lowest value.

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

SAMPLE PAPER-2015 Class-XII SUB:-COMPUTER SCIENCE

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

[6] [6] [6] [5] [5] [6] [5] [5]

C++ - Lesson 2 This is a function prototype. a' is a function that takes an integer array argument and returns an integer pointer.

CS304 Object Oriented Programming Final Term

Sample Paper 2013 SUB: COMPUTER SCIENCE GRADE XII TIME: 3 Hrs Marks: 70

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

COMPUTER SCIENCE. Time allowed : 3 hours Maximum Marks : 70

2016 COMPUTER SCIENCE

Session Chapter 4: Classess & Object

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

KENDRIYA VIDYALAYA SANGATHAN BHUBANESWAR REGION SECOND PREBOARD EXAMINATION FOR CLASS XII SUBJECT: COMPUTER SCIENCE

KENDRIYA VIDYALAYA SANGATHAN BLUE PRINT INFORMATICS PRACTICES CLASS XII

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

Previous Year Nagarro Questions

(i) Describe in detail about the classification of computers with their features and limitations(10)

Object Oriented Pragramming (22316)

CSCE 2014 Final Exam Spring Version A

COMPUTER APPLICATIONS

Savitribai Phule Pune University, Pune Second Year of Computer Engineering (2015 Course) : Object Oriented Programming Lab Teaching Scheme

Department of Computer Science Admission Test for PhD Program. Part I Time : 30 min Max Marks: 15

COMPUTER SCIENCE 1998 (Delhi Board)

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

WYSE Academic Challenge Computer Fundamentals Test (State Finals)

Class - XII English. Hindi

Mock Test Paper-2. CBSE XII : Computer Science. Duration : 3hrs Max Marks : 70

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

SAMPLE PAPER: 2015 Class :XII Subject : Informatics Practices. Time: 3 hrs. M.M. 70. Section A

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

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

SAMPLE PAPER-2015 CLASS-XII COMPUTER SCIENCE. Sample paper-i. Time allowed: 3 hours Maximum Marks: 70 Name : Roll No.:

Department of Computer Science & Engineering Indian Institute of Technology Kharagpur. Practice Sheet #04

C:\Temp\Templates. Download This PDF From The Web Site

Computer Science Engineering Sample Papers

CLASS-XI COMPUTER SCIENCE


END TERM EXAMINATION

Huawei Placement Paper Questions

PROGRAMMING IN C AND C++:

ASSIGNMENT BOOKLET. M.Sc.(Mathematics with Applications in Computer Science) Programming and Data Structures (1 st January, 2018 December, 2018)

COMPUTER SCIENCE 2002 (Delhi Board)

Computer Science II CSci 1200 Test 2 Overview and Practice

Answer any Five Questions. All questions carry equal marks.

Sample Examination. Family Name:... Other Names:... Signature:... Student Number:...

KENDRIYA VIDYALAYA SANGATHAN, COMPUTER SCIENCE (THEORY) I PRE-BOARD TIME 3 HRS CLASS XII M. Marks 70

COMMON PRE-BOARD EXAMINATION COMPUTER SCIENCE

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Guru Gobind Singh Public School Sector V,B Bokaro Steel City Annual IP Assignment Class 11

Downloaded from

KENDRIYA VIDYALAYA SANGATHAN- CHENNAI REGION INFORMATICS PRACTICES REVISION TIME : 3 HOURS MAX MARKS : 70

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

void Add() { cin >> trainnumber; gets(trainname); } void display() { cout<<trainnumber <<":"<<TrainName<<end;

Computer Programming C++ (wg) CCOs

KENDRIYA VIDYALAYA TIRUMALAGIRI,SECUNDERABAD UNIT TEST II

INFORMATION TECHNOLOGY NOTES

l Determine if a number is odd or even l Determine if a number/character is in a range - 1 to 10 (inclusive) - between a and z (inclusive)

9.Evaluate. 8 Simplify i) ( ) 0 ii)( ) 2 2 iii)

DC54 DATA STRUCTURES DEC 2014

CORE JAVA TRAINING COURSE CONTENT

TOPICS TO COVER:-- Array declaration and use.

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

Sample Paper 2014 Class - XII Subject Informatics Practices (065)

Introduction to Programming Using Java (98-388)

THE UNIVERSITY OF WESTERN AUSTRALIA. School of Computer Science & Software Engineering CITS1001 OBJECT-ORIENTED PROGRAMMING AND SOFTWARE ENGINEERING

INDIAN SCHOOL SOHAR FIRST TERM EXAM ( ) INFORMATICS PRACTICES

SECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No.


Unit IV & V Previous Papers 1 mark Answers

Pointers, References and Arrays

Write the function of following in Windows Operating System:


Sample Paper 2015 Class XII Subject INFORMATICS PRACTICES

COMP 250 Midterm #2 March 11 th 2013

DCS235 Software Engineering Exercise Sheet 2 Using Java Collections

CHAPTER 9 INHERITANCE. 9.1 Introduction

1. a) Find the correct identifiers out of the following, which can be 2 used for naming Variable, Constants or Functions in a C++ program:

Transcription:

Computer Science 330 Assignment Note: All questions are compulsory. The marks for each question are given at the same place. Max. Marks: 20 (ii) Write your name, enrolment number, AI name and subject etc. on the top of the first page of the answer sheet. 1. Answer any one of the following questions in about 40-60 words : 2 a) Write one advantage and one disadvantage each of fixed length records and variable length records. b) XYZ Corp. Ltd. has stored the payroll data of its employees in a database. Give one example each of the situations where retrieval and reproduction of this data may be required. c) Mohit has a photograph in his computer. He wants to use this photograph as the background of his desktop but he does not know how to do it. Write steps to tell Mohit how to set this photograph as the desktop background. d) Saumya wants to create a Startup disk so that she can use it later when required. Write steps to tell her how to create a Startup disk. 2. Answer any one of the following questions in about 40-60 words: 2 a) Two schools in a locality have their own computer networks. To share the teaching and learning modules, the schools decide to interconnect their networks. They join their networks by a 150m long twisted pair cable. Based on this context answer the following questions:the schools are not able to share the data as the signal gets weak during transmission. How can this problem be solved?(ii)what kind of network (LAN, MAN, or WAN) will be formed by this interconnection of networks? b) Is it possible to send email to multiple people in such a way that none of these people knows to whom else has the email been sent? If yes, then how? c) Evaluate the following C++ expressions (assume x = -1, y = 2): (ii) x > y x+y >= y d) What will be the value of x after execution of the following C++ code: int x = 5, float y=2.5; if (x < y) x = x+y; else x = x-y; 3. Answer any one of the following question in about 40-60 word each : 2 a) Write a function prototype (in C++) for a function which accepts two integers as parameters and returns their difference. b) Write a program that accepts 10 integers in an array and then reverses the array. For example, if the user enters 2, 4, 3, 6, 7, 8, 9, 7, 12, 15 in the array then the array should become 15, 12, 7, 9, 8, 7, 6, 3, 4, 92 Computer Science

2 after reversal. The program should then display the reversed array. Do not use more than 1 array in the program. c) Observe the class Movie given below: class Movie char Title[30], Genre[20]; long int Cost; int YearOfRelease; float Cost_per_print(int n) return Cost/5.0 + n; } void ReadData(); void Display(); Cost_per_print(n); Write a constructor for this class which initializes Title and Genre to Not Known and Cost to 0. d) Write a structure specification in C++ for the record given below:name: A string of 25 characters (including Null character) Class: Integer Section: Character Roll_No: Integer Call this structure STUDENT. 4. Answer any one out of the following four questions in about 100 to 150 words 4 a) Write the equivalent C++ expressions for the following Algebraic expressions: AB BC x( A B) C (ii) 3 3 a b 3ab( a b) (iii) 3xy k xy 4 4 2 b) Write a program to print all the multiplication tables from 11 to 20 up to first 10 multiples of each. c) Write a menu driven program in C++ to calculate the simple interest or compound interest depending upon the user s choice. Write and use functions to calculate simple interest and compound interest. d) How can we create above directories and copy File: SSC330.txt file from NIOS directory to AICTE directory? Computer Science 93

5. Answer any two of the following questions in about 100-150 words. 4 a) In an off-season sale following schemes of discounts are offered to the customers: If the customer buys items for a total marked price of Rs. 1000/- to Rs. 2000 then the discount is 20%. (ii) If the customer items for a total marked price of Rs. 2001/- to Rs. 5000/- then the discount is 30%. (iii) If the customer buys items for a total marked price of more than Rs. 5000, then the discount s 40%. Write a program to input the value of Total Marked Price from the user and then calculate the discount, and gross total. Then apply VAT @12.5% on the gross total. The program should display The Total Marked Price, Discount, Gross Amount, VAT, and Net Amount Payable by the customer. The program should continue as long as the user wants. Write and use a function to calculate the discount, gross total, VAT, and Net Amount Payable. b) Write a program in C++ to input the ItemCode, ItemName, CP, and SP of 10 items and then display this items list along with profit for each item. Profit is calculated as SP-CP. Write and use a class ITEM in this program. c) Declare a structure telerec in C++, containing name (20 characters) and telephone number. Write a program to maintain a file of telephone records. The program should allow the following functions on the file: 1) To append records in the file. Display the telephone number(s) for a given name. If the name does not exist then display error message record not found. d) Consider the following class declaration and answer the questions below: class zoo char locations [20]; protected: int no_of_animals; void inputdata (char, int); void outputdata (); class animal : protected zoo int tail; protected: int legs; void readdata (int, int); void write data (); 94 Computer Science

class carnivorous : private animal int paw_size; void fetchdata (int); void displayed (); a. Name the base class and derived class of the class animal. b. Name the data member (s) that can be access from the function displayed (). c. Name the data member (s) that can be accessed by an object of carnivorous class. d. Is the member function outputdata accessible to the objects of the animal class? 6. Make any one project out of the four given below. 6 a. Write a menu driven program in C++ to perform the following functions on a binary file BOOK.DAT containing objects of the following class: class Book int BookNo; char Book_name[20]; // function to enter book details void enterdetails(); //function to display Book details void showdetails(); //function to return Book_no int Rbook_no() return Book_no;} //function to return Book_name int Rbook_name() return Book_name;} a) Append Records b) Modify a record for a given book no. c) Delete a record with a given book no. d) Search for a record with a given Book name b) Define a class student with the following specifications: Private members of the class: Admission Number Name - An Integer - string of 20 characters Computer Science 95

Class Roll Number - Integer - Integer Public members of the class: getdata() showdata() - To input the data - To display the data Write a program to define an array of 10 objects of this class, input the data in this array and then display this list in the ascending order of Roll Number or in the alphabetical order of Name depending upon the user s choice. c. Write a program to input integer data in two arrays. Sort one of the arrays in ascending order and the other in descending order. Then merge them into a third array so that the data in the third array is in ascending order. The program should then display the data from all the three arrays. d. Declare a structure telerec in C++, containing name (20 characters) and telephone number. Write a program to maintain a file of telephone records. The program should allow the following functions on the file: 1) To append records in the file. 2) Display the name for a given telephone number. If the telephone number does not exist then display error message record not found. 3) Display the telephone number(s) for a given name. If the name does not exist then display error message record not found. Write this program using pointer to structure to access the data members. 96 Computer Science