0% found this document useful (0 votes)
68 views6 pages

Prectical List

Uploaded by

imgautamm121
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)
68 views6 pages

Prectical List

Uploaded by

imgautamm121
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/ 6

PRECTICAL LIST

# DIGITAL ELECTRONIS:-
1. To Verify the Behavior of Logic Gates using Truth Table and
Familiarization with Digital Integrated Circuits
2. Familiarization with the Different Portions of the Datasheet
for a Digital IC and Using the Datasheet to Gather Relevant
Information to Utilize the IC as a Component in another Digital
Logic Circuit
3. Realization of basic gates using Universal Gates.
4. Verification of Demorgan’s Theorem.
5. Implementation of Half Adder & Full Adder Circuits.
6. Implementation of Half Subtractor & Full Subtractor
Circuits
7. Implementation of Code Converters using Basic Gates
8. Implementation of Multiplexes (4-1 MUX/8-1 MUX)
9. Implementation of Decoders (3-8 Decoder/4-16 decoder)
10. Realization of Flip-Flop using Gates.
11. Implementation of Shift Registers using Flip Flop. (Serial-in
Serial-out Shift register, Serial-in Parallel-out Shift register,
Parallel-in Serial-out Shift register, Parallel-inParallel-out Shift
register)
12. Implementation of Asynchronous Counters ( 4 bit Up/down)
13. Implementation of Synchronous Counters (4 bit Up/down)
# OOP’s C++

1) Basics of Programming.
2) 2.1 Write a program to calculate the area of circle, rectangle and square using
function overloading.

2.2 Write a program to demonstrate the use of default arguments in function


overloadin.

2.3 Write a program to demonstrate the use of returning a reference variable.

3) 3.1 Create a class student which stores the detail about roll no, name, marks
of 5 subjects, i.e. science, Mathematics, English, C++. The class must have
the following:• Get function to accept value of the data members.• Display
function to display values of data members.• Total function to add marks of all
5 subjects and store it in the data members named total.

3.2 Create a function power() to raise a number m to power n. the function


takes a double value for m and int value for n, and returns the result correctly.
Use the default value of 2 for n to make the function calculate squares when
this argument is omitted. Write a main that gets the values of m and n from
the user to test the function.

3.3 Write a basic program which shows the use of scope resolution operator.

3.4 Write a C++ program to swap the value of private data members from 2
different classes.
4) 4.1 Write a program to illustrate the use of this pointer.

4.2 An election is contested by five candidates. The candidates are numbered


1 to 5 and the voting is done by marking the candidate number on the ballot
paper. Write a program to read the ballots and count the votes cast for each
candidate using an array variable count. In case a number is read outside the
range of 1 to 5, the ballot should be considered as a ‘spoilt ballot’ and the
program should also count the number of spoilt ballots.

4.3 Write a program to call member functions of class in the main function
using pointer to object and pointer to member function.
5) 5.1 Using friend function find the maximum number from given two numbers
from two different classes. Write all necessary functions and constructors for
the program.
5.2 Using a friend function, find the average of three numbers from three
different classes. Write all necessary member functions and constructor for
the classes.

5.3 Define currency class which contains rupees and paisa as data members.
Write a friend function named AddCurrency ( ) which add 2 different Currency
objects and returns a Currency object. Write parameterized constructor to
initialize the values and use appropriate functions to get the details from the
user and display it.

5.4 Create Calendar class with day, month and year as data members.
Include default and parameterized constructors to initialize a Calendar object
with a valid date value. Define a function AddDays to add days to the
Calendar object. Define a display function to show data in “dd/mm/yyyy”
format.
6) 6.1 Create a class named ‘String’ with one data member of type char *, which
stores a string. Include default, parameterized and copy constructor to
initialize the data member. Write a program to test this class.

6.2 Write a base class named Employee and derive classes Male employee
and Female Employee from it. Every employee has an id, name and a scale
of salary. Make a function ComputePay (in hours) to compute the weekly
payment of every employee. A male employee is paid on the number of days
and hours he works. The female employee gets paid the wages for 40 hours a
week, no matter what the actual hours are. Test this program to calculate the
pay of employee.

6.3 Create a class called scheme with scheme_id, scheme_name,


outgoing_rate, and message charge. Derive customer class form scheme and
include cust_id, name and mobile_no data.Define necessary functions to read
and display data. Create a menu driven program to read call and message
information for a customer and display the detail bill.
7) 7.1 Write a program with use of inheritance: Define a class publisher that
stores the name of the title. Derive twoclasses book and tape, which inherit
publisher. Book class contains member data called page no and tape class
contain time for playing. Define functions in the appropriate classes to get and
print the details.

7.2 Create a class account that stores customer name, account no, types of
account. From this derive classes cur_acc and sav_acc to include necessary
member function to do the following:• Accepts deposit from customer and
update balance• Compute and Deposit interest• Permit withdrawal and
Update balance.
7.3 Write a base class named Employee and derive classes Male employee
and Female Employee from it. Every employee has an id, name and a scale
of salary. Make a function ComputePay (in hours) to compute the weekly
payment of every employee. A male employee is paid on the number of days
and hours he works. The female employee gets paid the wages for 40 hours a
week, no matter what the actual hours are. Test this program to calculate the
pay of employee.
8) 8.1 Create a class vehicle which stores the vehicleno and chassisno as a
member. Define another class for scooter, which inherits the data members of
the class vehicle and has a data member for a storing wheels and company.
Define another class for which inherits the data member of the class vehicle
and hasa data member for storing price and company. Display the data from
derived class. Use virtual function.

8.2 Create a base class 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
figures. Make display_area() as a virtual function and redefine this function in
the derived class to suit their requirements.

8.3 Write a program to demonstrate the use of pure virtual function.

8.4 For multiple inheritance, write a program to show the invocation of


constructor and destructor.

8.5 Create a class string with character array as a data member and write a
program to add two strings with use of operator overloading concept.

8.6 Create a class distance which contains feet and inch as a data member.
Overhead = =, operator for the same class. Create necessary functions and
constructors too.
9) 9.1 Create a class MARIX of size mxn. Overload + and –operators for addition
and subtraction of the MATRIX.

9.2 Define a class Coord, which has x and y coordinates as its data members.
Overload ++and –operators for the Coord class. Create both its prefix and
postfix forms.

9.3 Create one class called Rupees, which has one member data to store
amount in rupee and create another class called Paise which has member
data to store amount in paise. Write a program to convert one amount to
another amount with use of type conversion.
9.4 Create two classes Celsius and Fahrenheit to store temperature in terms
of Celsius and Fahrenheit respectively. Include necessary functions to read
and display the values. Define conversion mechanism to convert Celsius
object to Fahrenheit object and vice versa. Show both types of conversions in
main function.
10)10.1 Write a program to create a function template for finding maximum value
contained in an array.

10.2 Write a program to create a class template for the ‘Array’ class.

10.3 Create a template for the bubble sort function.

10.4 Write a program to illustrate the use of insertion and extraction operators
for Text mode Input/Output.
11) 11.1 Write a program to illustrate the use of put(), get() and getline() functions
for Text mode Input/Output.

11.2 Write a program to illustrate the use of read() and write()functions for
Binary mode Input/Output.

11.3 Write a program to illustrate the use of manipulators in file


handling.8.Write a program to illustrate the use of file pointer manipulation
functions.

11.4 Write down a program to Copy source file ‘source.txt’ to destination file.

11.5 A file contains a list of telephone numbers in the following format:


a) Ram 47890
b) Krishna 878787
c) --------------------
d) -------------------

The names contain only one word and the names and telephone numbers are
separated by white space. Write a Program to read the tel.dat file and display
the content. The names should be left justified and the number right-justified.
# DBMS:-

1) Introduction to SQL. Data Definition in SQL (CREATE, ALTER and DROP),


Data Types.
2) Draw E-R diagram and convert entities and relationships to relation table for a
given scenario. A. Two assignments shall be carried out i.e. consider two
different scenarios (eg. bank, college) B. Write relational algebra queries for a
given set of relations.
3) Design a Database and create required tables. For e.g. Bank, College
Database.Perform the following: a. Viewing all databases, Creating a
Database, Viewing all Tables in a Database, Creating Tables (With and
Without Constraints), Inserting/Updating/Deleting Records in a Table, Apply
the constraints like Primary Key , Foreign key, NOT NULL to the tables.
4) For a given set of relation schemes, create tables and perform the following
Simple Queries, Simple Queries with Aggregate functions, Queries with
Aggregate functions (group by and having clause), Queries
involving- Date Functions, String Functions , Math Functions.
5) Perform the following: a). Altering a Table, Dropping/Truncating/Renaming
Tables, b).Backing up / Restoring a Database. c).Use of grant, revoke,
6) Join Queries- Inner Join, Outer Join Subqueries- With IN clause, With EXISTS
clause
7) For a given set of relation tables perform the following: Creating views (with
and without check option), Dropping views, Selecting from a view.
8) Perform the following operation for demonstrating the insertion , updation and
deletion using the referential integrity constraints.
9) Write a PL/SQL block to reserve a given number.
10)Write a PL/SQL block to check given num is odd or even.
11) Write a PL/SQL block to accept the id of an employee (emp2 table) from the
user and fetch a record of that employee. Check the salary and update the
salary Column as follows:
a. If salary >10000 and salary<=20000, then
salary = salary+30% of salary.
b. If salary>20000 and salary<=30000, then salary
=salary+ 40% of salary.
12) Write a PL/SQL block to calculate the area of a circle for values of radius
varying from 3 to 7. Store the radius and the corresponding values of
calculated area in an empty table named Areas, consisting of two columns
Radius and Area.
13) The price of a product changes constantly. It is important to maintain the
history of the prices of the products.Create a trigger to update the
‘product_price_history’ table when the price of the product is updated in the
‘product’ table.
14)Write Program of explicit and Implicit cursor.

You might also like