Você está na página 1de 9

Hands on Experience for Faculty in Laboratories

Cover page
Phase I
JNTUK, Kakinada
Report
Details of College
Name of the College LENDI INSTITUTE OF ENGINEERING AND TECHNOLOGY
College Code and District KD & VIZINAGARAM
Name of the Principal DR. V.V RAMA REDDY
Contact Nos 08922 241111

Details of the Department
Name of the Department COMPUTER SCIENCE & ENGINEERING
Name of Head of the Department A.RAMA RAO
Contact Nos

Details of the Faculty Member
Name of the Faculty Member B.A.Swamy
Qualification and Specialization M.Tech
Contact Nos 9491934489


Details of the Laboratory
Year and Semester of Lab II
RD
& I
ST
SEM
Name of the Laboratory OOPS THROUGH C++
No of Experiments as per syllabus
No of Experiments conducted



Signature of Faculty Member Signature of HOD Signature of Principal

Hands on Experience for Faculty in Laboratories
Page 1
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating Variable scope

Importance of Experiment
scope is a region of the program and broadly speaking there
are three places, where variables can be declared:
Inside a function or a block which is called local variables,
In the definition of function parameters which is called
formal parameters.
Outside of all functions which is called global variables.
Apparatus Required Turboc3
Inference /Outcome Local variable can be accessed with in the block or function where
it is declared. Gbolal variables can be acceessed from any where
from the program.
Correlation of experimental
outcome with theoretical
concept
The practical understanding of scope of variable concepr
therotically given from the specified text book of the syllabus copy
XXXXXXX(text book & page number).
Practical Application In the development of the software using C++
Can you design new
experiment with this set up

yes
Is the experimental set up in
working condition

YES



Signature of Faculty Member









Hands on Experience for Faculty in Laboratories
Page 1
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating COPY CONSTRACTOR


Importance of Experiment
initialize one object from another of the same type.
Copy an object to pass it as an argument to a function.
Copy an object to return it from a function
Apparatus Required Turboc3
Inference /Outcome Normal constructor allocating ptr
Copy constructor allocating ptr.
Length of line : 10
Freeing memory!
Freeing memory!
Correlation of experimental
outcome with theoretical
concept

Practical Application


Can you design new
experiment with this set up

yes
Is the experimental set up in
working condition

YES



Signature of Faculty Member











Hands on Experience for Faculty in Laboratories
Page 6
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating inline functions
Importance of Experiment
Any change to an inline function could require all clients of the
function to be recompiled because compiler would need to replace
all the code once again otherwise it will continue with old
functionality

Apparatus Required TURBOC3

Inference /Outcome Max (20,10): 20
Max (0,200): 200
Max (100,1010): 1010
Correlation of experimental
outcome with theoretical
concept


Practical Application
Can you design new
experiment with this set up
Yes


Is the experimental set up in
working condition
Yes








Signature of Faculty Member


Hands on Experience for Faculty in Laboratories
Page 6
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating EXCEPTION HANDELING
Importance of Experiment Exceptions provide a way to transfer control from one part of a
program to another.
Exception handling is used to prevent application from being stuck
due to unusual occurrences. If the exceptions are handled properly,
the application will never get terminated abruptly.
Apparatus Required TURBOC3

Inference /Outcome Division by zero condition!
Correlation of experimental
outcome with theoretical
concept


Practical Application
Can you design new
experiment with this set up
Yes


Is the experimental set up in
working condition
Yes








Signature of Faculty Member



Hands on Experience for Faculty in Laboratories
Page 6
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating CONSTRACTOR
OVERLOADING
Importance of Experiment Constructors Overloading are used to increase the flexibility of a
class by having more number of constructor for a single class. By
have more than one way of initializing objects can be done using
overloading constructors.
Apparatus Required TURBOC3

Inference /Outcome Overclass A's x,y value:: 0 , 0
Overclass A1's x,y value:: 4 ,4
Overclass A2's x,y value:; 8 , 12
Correlation of experimental
outcome with theoretical
concept


Practical Application
Can you design new
experiment with this set up
Yes


Is the experimental set up in
working condition
Yes








Signature of Faculty Member



Hands on Experience for Faculty in Laboratories
Page 6
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating Function OVERLOADING
Importance of Experiment Function overloading is usually is used to enhance the readability.
One single operation but with different types of arguments , then it
can simplify overloading function
Apparatus Required TURBOC3

Inference /Outcome Printing int: 5
Printing float: 500.263
Printing character: Hello C++
Correlation of experimental
outcome with theoretical
concept


Practical Application
Can you design new
experiment with this set up
Yes


Is the experimental set up in
working condition
Yes








Signature of Faculty Member




Hands on Experience for Faculty in Laboratories
Page 6
Phase I
JNTUK, Kakinada

Name of Experiment Write a c++ program illustrating Friend FUNCTION
Importance of Experiment Constructors Overloading are used to increase the flexibility of a
class by having more number of constructor for a single class. By
have more than one way of initializing objects can be done using
overloading constructors.
Apparatus Required TURBOC3

Inference /Outcome Width of box : 10
Correlation of experimental
outcome with theoretical
concept


Practical Application
Can you design new
experiment with this set up
Yes


Is the experimental set up in
working condition
Yes








Signature of Faculty Member

Você também pode gostar