Академический Документы
Профессиональный Документы
Культура Документы
BHOPAL
LAB MANUAL
Date of
Sr. No. Name of Experiment Signature Remark
Performance
1 Introduction to HTML, CSS, BOOTSTRAP, SQL
Q1. Explain the usage of the Internal DOS commands given below with the help of an example.
Internal dos command:
1. CLS
2. DIR
3. VER
4. VOL
5. DATE
6. TIME
7. COPYCON
8. TYPE
9. COPY
10. REN
11. DEL
12. CD
13. MD
14. RD
External dos command:
15. MORE
16. MEM
17. MOVE
18. FC
19. CHKDSK
20. LABEL
21. DOSKEY
22. FORMAT
Experiment - 2
Objective: Study and practice of Basic linux Commands – ls, cp, mv, rm, mkdir, cat, touch, cd, gedit,
date, cal, who, whoiam, pwd etc.
Q1. Explain the usage of all the Linux Commands given below with the help of an example.
1. ls
2. cp
3. mv
4. rm
5. who
6.whoami
7. pwd
8. cal
9. date
10. touch
11. cat
12. mkdir
13. cd
14. gedit
Experiment - 3
Aim:- Study and Practice of MS windows – Folder related operations, My-Computer, window explorer,
Control Panel
Control Panel-
Control Panel is a part of the Microsoft Windows graphical user interface which allows users to view and
manipulate basic system settings and controls via applets, such as adding hardware, adding and
removing software, controlling user accounts, and changing accessibility options. Additional applets can
be provided by third party software.
The Control Panel has been an inherent part of the Microsoft Windows operating system since its first
release (Windows 1.0), with many of the current applets being added in later versions. Beginning
with Windows 95, the Control Panel is implemented as a special folder, i.e. the folder does not physically
exist, but only contains shortcuts to various applets such as Add or Remove Programs and Internet
Options. Physically, these applets are stored as .cpl files. For example, the Add or Remove
Programs applet is stored under the name appwiz.cpl in theSYSTEM32 folder.
My Computer
A section of Microsoft Windows that was introduced with the release of Microsoft Windows 95 and
included with all versions of Windows after that. My Computer allows the user to explore the contents
of their computer drives as well as manage their computer files. In the picture to the right, is an
examples of the My Computer icon in Microsoft Windows XP, the Computer icon in Windows Vista and
Windows 7, and This PC icon introduced with Windows 8. Although the name has changed, this icon still
acts the same as My Computer.
Windows 7
Windows Explorer
Windows Explorer is the operating system's file and folder manager. Alternatively referred to as File
Explorer or Windows Explorer, Explorer is a file browser found in Microsoft Windows 95 and above to
explore and manage the drives, folders, and files on the computer. Although similar, Microsoft Windows
Explorer is not the same as "My Computer" and is not "Microsoft Internet Explorer", even though
Internet Explorer is sometimes improperly referred to as Explorer.
Windows Explorer is a file management tool that lets you create, rename, and delete folders. It also
allows you to copy, print, move, delete, rename, and manage files.
Right-click the "Start" menu and click "Open Windows Explorer." Windows Explorer opens for
you to browse your hard drive's contents.
Press the "Windows" and "E" keys on the keyboard and Windows Explorer opens for you to
browse your hard drive's contents.
Click the "Start" menu and type "explorer" in the instant search box. Windows Explorer
appears in the list for you to click.
Right-click the Start button and then click Explore. (Windows 7 finally renamed this option
Open Windows Explorer.) 3. Navigate your Programs menu until you find the Accessories
folder; Explorer can be found inside it.
Exploring My Computer:
Where true cooperation is alive, a degree of conflict is also seen as a necessary and useful part of
organizational life. The effective team works through issues of conflict and uses the result to help
achieve objectives. Conflict is so often seen as the opposite of cooperation. It is true that if a group
of people are in constant disagreement they will find achievement difficult, but a certain amount of
conflict also prevents a team becoming complacent and lazy and often is the source of new ideas.
Traditionally, conflict has been seen as something caused by trouble makers or `prima donnas’ and
something which by definition can be avoided or stifled. A more enlightened approach to conflict
suggests that it is inevitable and an integral part of the process of change. If this is true, the
management of conflict should be aid to cooperation, not an obstacle. However, there are two sides
to conflict. One is destructive and unhealthy, the other constructive and healthy. Destructive
conflict, which defeats cooperation, can occur when individuals carefully built images are
threatened, when personalities intrude, when conflict is expected and the expectation becomes
selffulfilling or when two parties are arguing about different things without realizing it. Constructive,
healthy conflict has a problem solving base. Those involved in solving the problems are willing to
sublimate personality differences, to listen to others’ views, to be open and candid to each other, to
be supportive and helpful. With such behavior, not only is each problem solved with total
commitment, but subsequent team interaction becomes more effective, and cooperation improves.
Improve upon the document by doing the following:
a) Use spell checker option to correct spellings.
b) Practice command, Find and Replace Eg. Find the word “prima donna” in your document and
replace it by “PRIMA DONNA”. You may practice with find and replacing characters words,
sentences etc.
c) Divide the whole text you entered into paragraphs and give appropriate sub headings.
d) Insert a picture from clip art.
e) Prepare bulleted list of the words in italics within the paragraph.
f) Insert a table with four rows and two columns
1. Name of team member
2. Job allotted
Experiment - 5
G W L T F A P
Total:
Experiment – 6
Objective: Creation and Editing Power-Point Slides Using MS- Power Point.
PowerPoint Assignment
Create a PowerPoint Presentation on any topic from basic computer engineering. You need to include
the following Slide elements as explained in the directions below.
Directions:
1. The presentation should be a minimum of 6 slides.
o The first slide should be about the introduction of the topic you have selected.
o Each slide should have a heading.
o All the points on each slide should be in bullets.
o Include the content slide in your presentation.
o The content on each slide should not be in paragraph form.
2. Use at least 3 different types of slides in your presentation.
3. Select a Design Theme
o Change the color theme of the original design theme you selected.
4. Modify your font
o Your text should have at least 3 different font types.
o You should change the font color of some of your text.
5. Include Text Effects/WordArt as your title for the Title Slide.
6. Insert at least 1 Clip Art/Picture per slide to match the topic of the presentation.
o Use the Picture Tools to change the format of each of the ClipArt/Pictures you insert.
7. Insert Text Animations on 6 text or graphical elements in your slides.
Experiment – 7
3. SQL UPDATE:
4. DROP TABLE:
PROGRAM:
OUTPUT:
Experiment – 9
PROGRAM:
OUTPUT:
Experiment – 11
PROGRAM:
OUTPUT:
Experiment – 12
Member functions.
STEP 3: Create a main function and call the member functions of student class.
PROGRAM:
OUTPUT:
Experiment – 13
Objective: Write a program to add two complex numbers using binary operator overloading.
Algorithm:
Step 1: Start the program.
Step 2: Declare the class.
Step 3: Declare the variables and its member function.
Step 4: Using the function getvalue() to get the two numbers.
Step 5: Define the function operator +() to add two complex numbers.
Step 6: Define the function operator –()to subtract two complex numbers.
Step 7: Define the display function.
Step 8: Declare the class objects obj1,obj2 and result.
Step 9: Call the function getvalue using obj1 and obj2
Step 10: Calculate the value for the object result by calling the function operator + and operator -.
Step 11: Call the display function using obj1 and obj2 and result.
Step 12: Return the values.
Step 13: Stop the program.
PROGRAM:
OUTPUT:
Experiment – 14
Objective: Write a program to calculate the area of Circle, Rectangle and Triangle using function
overloading.
Algorithm:
STEP 1: Start the program.
STEP 2: Declare the class name as fn with data members and member functions.
STEP 3: Read the choice from the user.
STEP 4: Choice=1 then go to the step 5.
STEP 5: The function area () to find area of circle with one integer argument.
STEP 6: Choice=2 then go to the step 7.
STEP 7: The function area () to find area of rectangle with two integer argument.
STEP 8: Choice=3 then go to the step 9.
STEP 9: The function area () to find area of triangle with three arguments, two as Integer and one as
float.
STEP 10: Choice=4 then stop the program.
PROGRAM:
OUTPUT:
Experiment – 15
PROGRAM:
OUTPUT:
Expected Viva-Voce Questions
Q1.What is computer?
Ans: A computer is a general purpose device that can be programmed to carry out a set of arithmetic or
logical operations. It is an electronic device in which we give some input, processing is done over that
data and we get some output.
Type Keyword
Character char
Integer int
class Box
{
public:
double length; // Length of a box
double breadth; // Breadth of a box
double height; // Height of a box
};
Q5. What is the difference between structure and union?
Ans:
STRUCTURE UNION
1.The keyword struct is used to define a structure 1. The keyword union is used to define a union.
2. When a variable is associated with a structure, the 2. When a variable is associated with a union,
compiler allocates the memory for each member. The the compiler allocates the memory by considering the
size of structure is greater than or equal to the sum size of the largest memory. So, size of union is equal to
of sizes of its members. The smaller members may end the size of largest member.
with unused slack bytes.
3. Each member within a structure is assigned unique 3. Memory allocated is shared by individual members
storage area of location. of union.
4. The address of each member will be in ascending 4. The address is same for all the members of a union.
order This indicates that memory for each member This indicates that every member begins at the same
will start at different offset values. offset value.
5 Altering the value of a member will not affect other 5. Altering the value of any of the member will alter
members of the structure. other member values.
6. Individual member can be accessed at a time 6. Only one member can be accessed at a time.
7. Several members of a structure can initialize at 7. Only the first member of a union can be initialized.
once.
C C++
2. No virtual Functions are present in C 2. The concept of virtual Functions are used in C++.
8. In C 8. In C++
scanf() Function used for Input. Cin>> Function used for Input.
printf() Function used for output. Cout<< Function used for output.
Q10. Explain the difference between the private, protected and public data members of a class.
Ans: A member (either data member or member function) declared in a private section of a class can
only be accessed by member functions and friends of that class
A member (either data member or member function) declared in a protected section of a class can only
be accessed by member functions and friends of that class, and by member functions and friends of
derived classes
A member (either data member or member function) declared in a public section of a class can be
accessed by anyone.
22. Can member functions be private?
Yes. Both member functions and member data can be private.
23. Can member data be public?
Although member data can be public, it is good programming practice to make it private and to provide
public accessor functions to the data.
12. How do you compile the source code with your compiler?
Every compiler is different. Be sure to check the documentation that came with your compiler.
13. What is the difference between the compiler and the preprocessor?
Each time you run your compiler, the preprocessor runs first. It reads through your source code and
includes the files you've asked for, and performs other housekeeping chores.
15. What are the two types of comments, and how do they differ?
C++-style comments are two slashes (//), and they comment out any text until the end of the line. C-
style comments come in pairs (/* */), and everything between the matching pairs is commented out.
You must be careful to ensure you have matched pairs.
17. What are the differences between the function prototype and the function definition?
The function prototype declares the function; the definition defines it. The prototype ends with a
semicolon; the definition need not. The declaration can include the keyword inline and default values
for the parameters; the definition cannot. The declaration need not include names for the parameters;
the definition must.
18. If a function doesn't return a value, how do you declare the function?
Declare the function to return void.
19. If you don't declare a return value, what type of return value is assumed?
Any function that does not explicitly declare a return type returns int.
24. What does new return if there is insufficient memory to make your new object?
A null pointer (0).
25. What is the difference between passing by reference and passing a reference?
Passing by reference means not making a local copy. It can be accomplished by passing a reference or by
passing a pointer.
26. When you overload member functions, in what ways must they differ?
Overloaded member functions are functions in a class that share a name but differ
in the number or type of their parameters.
30. How does the copy constructor differ from the assignment operator (=)?
The assignment operator acts on an existing object; the copy constructor creates a new one.
31. How do you invoke a base member function from a derived class in which you've overridden that
function?
Base::FunctionName();
32. How do you invoke a base member function from a derived class in which you have not overridden
that function?
FunctionName();