Sunteți pe pagina 1din 10

INFYSYS ACADEMY

KORAMANGALA
Kuvempu University

Assignments for B.Sc.(IT) & M.Sc.(IT) Courses

Subject: OOPs with C++


Subject Code: BSIT - 33

Assignment:
1. With a neat block diagram explain the I/O handling in C++.
2. Give the taxonomy of different statements in C++ and explain each one of them in
detail.
3. Explain the object based and object oriented concepts of C++ with examples.
4. Write a C++ program to generate Lucas series
5. Give the different types of Inheritance supported by C++. For each type, explain the
concepts, program example, advantages and disadvantages.
6. Write a C++ program to accept the student’s information of UG students in a college.
Also include the functions for searching student information and updating the existing
information.
7. Write a C++ program to create a doubly linked list and support the following
operation:
i). Insertion at the rear end
ii). Insertion at the specific position
iii). Traversing the entire list and displaying the nodes.
iv). Counting the occurrence of duplicate nodes
8. Write a C++ program to implement Stack data structure.
uvempu University

Assignments for B.Sc.(IT) & M.Sc.(IT) Courses

Subject: Computer Networks


Subject Code: BSIT - 34

Assignment:
1. Write a brief note on evolution of computer networks
2. What are protocols? Why are they introduced in network communications?
INFYSYS ACADEMY
KORAMANGALA
3. Explain OSI reference model with relevant diagram?
4. Using OSI reference model explain the data communication between two hosts?
5. Explain the functions of Network layer and Transport layer?
6. With the help of suitable diagrams, explain the functions of the Session and
presentation layers?
7. Explain the TCP/IP architecture and compare it with OSI architecture.
8. Distinguish between physical address, Internet address and port address. Give
examples

Kuvempu University

Assignments for B.Sc.(IT) & M.Sc.(IT) Courses

Subject: Personality Development Programme - II


Subject Code: BSIT - 31

Assignment:

Part I: An Anthology of Programmes on Personality Development

1) Prepare a brief self-portrait of yourself for a professional career.


2) List out your short term (1 to 2 years) & long term professional goals (after 5 years).
3) Prepare a self-improvement plan for one of your goals. Plan for one of your goals
giving details of an Action Plan along with time frame for achievement.
4) Prepare a concise & comprehensive Bio-Data of yourself for a job.
5) Prepare a detailed Preparation Plan for a job interview.
6) List out your knowledge, skills & experience which may help you to get selected for a
job.
7) Plan out a strategy to make a good impression on your job.
8) Prepare a time log for a week of how you are utilizing your time and put down your
reactions to your utilization of time.
9) Prepare a Time Commitment Plan for the semester (8 + 8 = 16 weeks) to achieve
your goal of acquiring knowledge and good success in your studies.

Kuvempu University

Assignments for B.Sc.(IT) & M.Sc.(IT) Courses

Subject: RDBMS
Subject Code: BSIT - 32
Assignment: TA (Compulsory)
INFYSYS ACADEMY
KORAMANGALA
What is the difference between procedural and non procedural language?
What is the difference between database instance and relation schema?
What is a relation?
What is the difference between UNARY and BINARY operations? Give examples for the
same.
What is the difference between select and project operations?
What is a query language?
What is the difference between Cartesian product and natural join operation? Write
sample queries for both the operations.
Explain clearly additional relational algebra operations giving examples
For the database considered in the chapter, write relational algebra expressions for the
following:
list all the customers whose loan amount is greater than Rs. 20000
list all the customers whose balance is greater than Rs. 9000
list names of all branches at MYSORE
find all the tuples who have both an account and loan at the same branch
find all the customers having both loan and an account and their names stating with “S”.
What do you mean by union compatibility?
What is the advantage of using a query language?
Give the salient features of SQL.
What is the difference between the select clause of relational algebra and that
Of SQL
What is the difference between use of % and - characters in string operations?
How do you order tuples in SQL
Explain various types of set operations in SQL
What are aggregate functions. With an example each, write the various aggregate
functions used in SQL
What is the significance of group by clause.
What is set membership.
What is set comparison.
Explain different domain types of SQL.
How do you create views.
How do you give schema definition in SQL.
Explain various types of data base modification operations..
How is inner join operation different from outer join operation.
What are different join types and join condition?
What are embedded SQL statements.?
What is the necessity of embedded SQL ?
Explain briefly what the normalization process avoids?
What is normalization? What are three basic steps of normalization ?.
What is an unnormalized relation ? Give example.
What problems are associated with an unnormalized relation ? Explain.
Explain first, second and third normal form giving example
List other normal forms.
What in meant by an instance?
Explain briefly the elements that are internal to database.
INFYSYS ACADEMY
KORAMANGALA
Differentiate between Procedures and Functions.
What is a Constraint? Explain the different Constraints that can be placed on table’s
columns.
What is Rollback Segment? Explain its role.
Explain the need of Redo log buffer.
Differentiate between Trace files and Alert log.
Mention the different constituents of SGA.
Explain the importance of RECO Background process.
What is Rollback Segment? Explain its role.
Differentiate between Procedures and Functions.

Kuvempu University

Laboratory Assignments

Subject: RDBMS
Subject Code: BSIT - 32

1. A software company has the following information about its clients and the projects
given by them:

Clients (client number, client name, address)


Projects(project number, project name, total investment, no. of people working on
the project)
Client project(client number, project number, date of start of project)

Create a database with the tables given above. Give suitable field names, keys and
validation checks. Create data entry forms and enter at least 10 rows.

Run the following queries on the above database:


a) List details of projects started after 1st January 2006.
b) List clients who have assigned more than 2 projects to the software company.
c) List clients in order of decreasing total project investment.
d) Show the details of the project with the maximum number of people working on the
it.

2. Create the following tables for a movie cassette lending library :

Customer master table : cust


Column name Format Remarks
Cust_id Char(3) Primary key, not null
Last_name Varchar2(15)
INFYSYS ACADEMY
KORAMANGALA
First_name Varchar2(20)
Phone_no Number(8)

movie master table: movie


Column name Format Remarks
Movie_no Number(2) Primary key, not null
Movie_title Varchar2(25)
Movie_type Varchar2(10)
Movie_stars Varchar2(40)

invoice transaction table : invoice


Column name Format Remarks
Invoice_no Char(3) Primary key, not null
Movie_no Number(2) Foreign key referencing
movie_no of movie table
Cust_id Char(3) Foreign key referencing cust_id
of cust table
Issue_date Date
Return_date Date

Design data entry forms for the above tables with suitable validations and enter atleast
10 rows.

Execute the following queries:


a) List the names and telephone numbers of all the customers
b) List the movie types available in the movie table.
c) List the information about customers who have been issued movies in the month of
January
d) Which is the last movie issued to customer id ‘C001’
e) List the names of all the movies except of type ‘horror’
f) List of those customers who have not given phone numbers
g) Count the total number of customers
h) List the number of movies in each type
i) Find the movie number issued to the customer ‘Kusum’
j) List the names and movie numbers of all the movies that have been issued
k) List the names of the customers who have been issued the movies of type ‘comedy’
l) List the customers who have been issued movie number 12.
m) List the customer names and phone numbers of all the customers who have been
issued movies before the month of march
n) List the issue_dates and return dates in ‘dd-month-yy’ format
o) Delete the row with invoice number ‘i10’

3. An insurance database has the tables given below. The data types are also
specfified.

Table name : owner_details


Column name Format
Owner_id Char(4)
Name Varchar(25)
INFYSYS ACADEMY
KORAMANGALA
Address Varchar(40)

Table name : car


Column name Format
Reg_no Char(10)
Model Varchar(15)
Year Number(4)

Table name : accident


Column name Format
Report_no Number(5)
Acc_date Date
Location Varchar(20)

Table name : cars_owners


Column name Format
Owner_id Char(4)
Reg_no Char(10)

Table name : cars_in_accident


Column name Format
Owner_id Char(4)
Reg_no Char(10)
Report_no Number(5)
Cost_of_damage Number(5)

a) Create the above table with proper primary and foreign keys.
b) Enter at least 5 tuples for each relation
c) Update the cost of damage for a particular car involved in an accident with report
number 25 to 30000.
d) Add a new car to the database
e) Add a new accident to the database
f) List the car owners whose cars were involved in accidents in the year 2006
g) Find the number of accidents in which cars of a particular model were involved
h) generate suitable reports

4. A book dealer has the following database:

Author(author_id:interger, author_name:string, city:string, country:string)


Publisher(publisher_id:integer,name:string, city:string, country:string)
Catalog(book_id:integer, title:string, author_id:integer, publisher_id:integer,
year:integer, price:integer)
order_details(order_id:integer, book_id:integer, quantity:integer)

a) Create the tables specified above with suitable primary and foreign keys
b) Create data entry forms and enter at least 5 rows in each table with suitable
validations
c) Find the author of the book which has the maximum sales
INFYSYS ACADEMY
KORAMANGALA
d) List the details of the authors who have two or more books in the catalog
e) List all the books in the catalog that have the word ‘COMPUTER’ in their titles
f) Add a new order to the database.

5. An order processing database application in a company has the following tables:

Customer(cust_id:integer, cust_name:string, cust_city:string)


Order(order_id:integer, order_date:date, cust_id:integer, order_amount:real)
Items_ordered(order_id:integer, item_no:integer, quantity:integer)
Item(item_no:integer, unit_price:real)
Shipment(order_id:integer, warehouse_no:integer, date_shipped:date)
Warehouse(warehouse_no:integer, city:string)

a) Create the tables given above with proper primary and foreign key specifications
b) Design data entry forms with proper validations and enter at least 5 rows in each
table
c) List the customer names with their total number of orders and the average
order amount
d) List the orders that were shipped from all the warehouses that the company has in
a
particular city
e) Delete item number 15 from the item table and make that column null in the
items_ordered table.
f) Design suitable reports

Kuvempu University

Laboratory Assignments

Subject: OOPs with C++


Subject Code: BSIT - 33

1. Using C++ , design and implement a class COMPLEX having the following
functionality:
a) allows representation of complex numbers
b) allows addition of two complex numbers
c) has overloading constructors and a copy constructor
d) allows assignment of one complex number to another

2. An EMPLOYEE class contains the following members:


Data members: employee_number, employee_name, basic pay, allowance, income
tax, net salary
INFYSYS ACADEMY
KORAMANGALA
Member functions: to read the data, to calculate net salary and to print data
members
Write a C++ program to read the data of 5 employees and compute the net salary of
each employee given that the allowance is 20% of the basic pay and income tax is
30% of the gross salary (basic pay+allowance)

3. Assume that a bank maintains two kinds of accounts for customers, one called
savings account and the other as current account. The savings account provides
compound interest and withdrawal facilities but no cheque book facility. The current
account provides cheque book facility but no interest. Current account holders
should also maintain a minimum balance and if the balance falls below this level, a
service charge is imposed.
Create a class ACCOUNT that stores customer name, account number and type of
account. From this derive the class CUR_ACCT and SAV_ACCT to make them more
specific to their requirements. Include necessary member functions in order to
achieve the following:
a) accept deposit from a customer and update the balance
b) display the balance
c) compute and deposit interest
d) permit withdrawal and update the balance
e) check for minimum balance, impose penalty, if necessary, and update the balance
Use member functions to initialize the class members. Do not use constructors.

4. Write a C++ program to create a class called QUEUE with member functions to add
an element and to delete an element from the queue. Display the contents of the
queue after every operation.

5. Write a C++ program to create a class called STRING and do the following
operations. Show the results after every operation by overloading the operator <<.
Use copy constructor.
STRING s1 = “KUVEMPU”
STRING s2 = “UNIVERSITY”
STRING s3 = s1+s2
INFYSYS ACADEMY
KORAMANGALA
6. Write a C++ program to create a class called DATE. Accept two valid dates in the
form dd/mm/yyyy. Implement the following operations by overloading the operators
+ and -. After every operation show the results by overloading the operator <<:
a) ndays = d1 – d2; where d1 and d2 are DATE objects, d1>=d2 and ndays is an
integer.
b) d2 = d1 + ndays; where d1 is a DATE object and ndays is an integer.

7. Create a class FLOAT that contains one float data member. Overload all the four
arithmetic operators so that they operate on the objects of FLOAT.

8. Create a base class called SHAPE. Use this class to store two double type values
that could be used to compute the area of figures. Derive two specific classes called
TRIANGLE and RECTANGLE from the base SHAPE. Add to the base class, a
member function get_data() to initialize the base class data members and another
member function display_area() to compute and display the area of the figures. Make
display_area() as a virtual function and redefine this function in the derived classes
as per the requirements. Using the three classes, design a program that will accept
dimensions of a triangle or rectangle interactively and display the area. The two
values given as input will be treated as lengths of the two sides in the case of a
rectangle and as base and height in the case of triangles.
Area of a rectangle = side1 * side2
Area of a triangle = ½ * side1 * side2

9. A book shop maintains the inventory of books that are being sold at the shop. The
list has details like author, title, price, publisher and stock position. Whenever a
customer wants a book, the sales person inputs the title and author and the system
searches the list and displays a suitable message if it is not available. If it is
available, the system displays the book details and requests for the number of
copies required. If the copies are available, the total cost of the copies requested is
displayed, otherwise the message ‘copies not in stock’ is displayed.
Design a system using a class called BOOKS with suitable member functions and
constructors. Use new operator in constructors to allocate required memory space.
INFYSYS ACADEMY
KORAMANGALA

S-ar putea să vă placă și