Lab Manual bce
Lab Manual bce
DEPARTMENT
OF
BASIC SCIENCE
SEMESTER –II
Index
Oriental College of Technology, Bhopal
S. No. Particulars Remarks
1 VISION
Vision
ANDandMISSION
Mission ofOF
theTHE
Institute
INSTITUTE
2 Vision and Mission of the Department
3 To become
Programme a pioneer
Specific in (PSOs)
Outcomes the field of engineering
and research
4 of Programme
Vision by (POs)
Outcomes providing quality, skilled and
the Institute
5 compatible
Course engineers
Outcomes (COs) who are proficient in their
6 domain
CO-PO knowledge.
Matrix
7 CO-PSO Matrix
8 University Scheme
9 Syllabus
M1: To create awareness of about cutting edge
10 Academic Calendarto make the outgoing engineers
technologies
11 acceptable
List to the employers meeting their on–job
of Experiments
12 requirements.
Lab Time Table (Individual & Class)
13 Laboratory Plan
Mission
14 of Lab Manual
M2: To develop in-house facility for giving
the Institute
15 solutions
Important to questions
Viva industrial problems.
16 Attendance Record
17 Internal
M3: Assessment Record
To inculcate of attainment
professional of Course
ethics, leadership
18 qualities, ofcommunication
Measurement and Internal
CO attainment through entrepreneurial
Outcomes
skills to meet the societal needs
Assessments
M1:
To create awareness of the latest technologies to the undergraduate students
Vision
for overall And Mission of The Department
growth.
M2: To inculcate professional values and entrepreneurial skills to fulfill the
career and societal needs.
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 2 1 1 1 2 1 - 2 1 3 2 3
CO2 3 3 3 3 3 1 - 2 2 3 3 3
CO3 3 3 3 3 3 1 - 2 2 3 2 3
CO4 3 3 3 3 3 2 2 2 2 3 2 3
CO5 3 3 3 3 3 2 2 2 2 3 2 3
Average 2.8 2.6 2.6 2.6 2.8 1.4 0.8 2 1.8 3 3.7 3
Unit I
Computer: Definition, Classification, Organization i.e. CPU, register, Bus architecture, Instruction set,
Memory & Storage Systems, I/O Devices, and System & Application Software. Computer Application in
e-Business, Bio-Informatics, health Care, Remote Sensing & GIS, Meteorology and Climatology,
Computer Gaming, Multimedia and Animation etc.
Operating System: Definition, Function, Types, Management of File, Process & Memory. Introduction to
MS Word, MS Power Point, MS Excel.
Unit II
Introduction to Algorithms, Complexities and Flowchart, Introduction to Programming, Categories of
Programming Languages, Program Design, Programming Paradigms, Characteristics or Concepts of OOP,
Procedure Oriented Programming v/s Object Oriented Programming. Introduction to C++: Character Set,
Tokens, Precedence and Associativity, Program Structure, Data Types, Variables, Operators, Expressions,
Statements and control structures, I/O operations, Array, Functions.
Unit III
Object & Classes, Scope Resolution Operator, Constructors & Destructors, Friend Functions, Inheritance,
Polymorphism, Overloading Functions & Operators, Types of Inheritance, Virtual functions. Introduction
to Data Structures.
Unit IV
Computer Networking: Introduction, Goals, ISO-OSI Model, Functions of Different Layers.
Internetworking Concepts, Devices, TCP/IP Model. Introduction to Internet, World Wide Web, E-
commerce
Computer Security Basics: Introduction to viruses, worms, malware, Trojans, Spyware and Anti-Spyware
Software, Different types of attacks like Money Laundering, Information Theft, Cyber Pornography, Email
spoofing, Denial of Service (DoS), Cyber Stalking, Logic bombs, Hacking Spamming, Cyber Defamation,
Pharming Security measures Firewall, Computer Ethics & Good Practices, Introduction of Cyber Laws
about Internet Fraud, Good Computer Security Habits.
Basic Computer Engineering
2022
Unit V
Data Base Management System: Introduction, File oriented approach and
Database approach, Data Models, Architecture of Database System, Data
independence, Data dictionary, DBA, Primary Key, Data definition language and
Manipulation Languages.
Cloud Computing: Definition, cloud infrastructure, cloud segments or service
delivery models (IaaS, PaaS and SaaS), cloud deployment models/ types of cloud
(public, private, community and hybrid clouds), Pros and Cons of cloud computing.
List of Experiments
Program No:1
Internal Command
– Those commands which are already loaded in the Command.COM file while
switching to the MS DOS
E.g. MD, CD, TIME, DATE, COPY, COPR CON, TYPE ETC.
External Command
– Those commands which are not loaded when loading the Program but are
available in the Disk and can be invoked whenever necessary
– E.g. FORMAT, TREE, XCOPY, etc.
(i) MD (Make Directory) : We use this commands to make a new directory or sub directory.
Example : MD STUDENT
(ii) CD (Change Directory) : This commands is used to move from one directory to another.
Exit to Directory :
(iii) RD (Remove Directory) : If a Directory which was earlier is ;not required than such
directory can be removed by using
One has to close the directory and come to the parent directory to remove that directory.
(iv) Copy Con : Its command is used to create a file. The name of the file, which is to be
created, is written after the copy Con leaving one space in between
-------------------------------
-------------------------------
(iii) Press F6 function key or CTRL + Z keys ‘?Z’ will be displayed on the screen, which
indicates that the file is complete.
(iv) Press Enter and after that the DOS will save the file and will display the message ‘1 File(s)
copied.
(v) Del : This command is used to erase the files which are no longer required.
(vi) Type : This command is used to view the contents of text file.
(vii) Copy : This command is used to copy of file from one place to another place. A copy of
file is another file with the same contents.
(viii) Ren : This command is used to rename the file. In REN command two parameters are
used. The first is the file we want to rename and the second is the new name for the file.
External command-
1. MORE:-Using TYPE command we can see the content of any file. But if length of file is
greater than 25 lines then remaining lines will scroll up. To overcome through this problem
we uses MORE command. Using this command we can pause the display after each 25 lines.
2. MEM:-This command displays free and used amount of memory in the computer.
3. SYS:- This command is used for copy system files to any disk. The disk having system files
are known as Bootable Disk, which are used for booting the computer.
4. XCOPY:- When we need to copy a directory instant of a file from one location to another the
we uses xcopy command. This command is much faster than copy command.
5. MOVE:- Move command is used for moving one file or multiple files from one location to
another location or from one disk to another disk.
6.FIND:- The FIND command is used to search a file for a text string.
8. ATTRIB:- Sets the various type of attribute to a file. Like Read only, Archive, Hidden and
System attribute.
Basic Computer Engineering
2022
Syntax:- C:\> ATTRIB [± r] [± a] [± h] [± s] <File name>
here r - for read only, a- for archive, h - for hidden, s - for hidden attribute.
9. LABEL:- If you are not happy with the volume label of hard disk, you can change it.
Program No:2
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 changingaccessibility 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
You can also access My Computer or Computer through the start menu, as shown below.
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
Basic Computer Engineering
2022
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.
Exploring My Computer
My Computer is another tool you can use to manage files and folders. With this tool, you can
create, rename and move folders and copy, print, move, delete and rename files. It also
allows you to gain access to other system tools.
To open My Computer:
Basic Computer Engineering
2022
1. Double-click the My Computer icon on the desktop.
2. My Computer opens.
OR
OR
Using My Computer
Once My Computer is open you'll see all available drives on your computer. For most users,
you'll only be concerned with the Local Disc (C:) drive, which is the hard drive and what stores
all your files. Double-click this drive icon to open it and view of its contents.
Tip: If you're looking for a document such as a word processor file you've created, music file,
picture, or other personal file it's likely that it's contained in your documents folder. This folder is
displayed in My computer as a folder and usually contains your name. For example, if your
username was John, this folder would be named John's Documents.
In the Search window, type the name or part of the name of the file you're trying to find.
Program No:3
NOTE: Each method will show the Open dialog box. Select the drive the file was saved on,
choose the file, and click the Open button.
Save a Document
Select File ➪ Save from the menu bar.
Click the Save button on the toolbar.
Press CTRL + S on the keyboard.
Navigate to the location where you would like to save the document. Make a note of the drive
where the document is saved for future reference. To save an existing open document under a
different name, select 'File ➪ Save As'.
Renaming a Document
To rename an existing, but not open, Word document while using the program,
Select File ➪ Open (or press CTRL + O on the keyboard) and find the file you want to
rename.
Right-click on the document name with the mouse and select Rename form the shortcut
menu.
Type the new name for the file and press the ENTER key.
Several documents can be opened simultaneously if you are typing or editing multiple
documents at once. All open documents are listed under the Windows menu. The current
document has checkmark beside the filename. Select another name to view another open
document or click the button on the Windows taskbar at the bottom of the screen.
Closing a Document
Selecting File ➪ Close from the menu bar
Basic Computer Engineering
2022
Click the close window icon if it’s visible on the menu bar
Press CTRL + W or CTRL + F4 on the keyboard.
Exiting Word
Choose the File ➪ Exit on the menu bar.
Click the Close button align with the title bar.
Program No:4
Aim:- Creation and editing power-point slides using MS- power point
Basic Computer Engineering
2022
You can use the formatting toolbar to manipulate your text as well. Many of the buttons on this
toolbar perform the same function as they do in MSWord. There are some differences worth noting
however.
Program No:5
Microsoft Excel is a spreadsheet program that allows the operator to organize numeric
data, perform calculations, make decisions, create graphs using data, develop reports,
Key Terms:Spreadsheet:
Rows and columns of data organized in a systematic way that allows the computer to make
calculations of the data and to update the
calculations as the data changes. In Microsoft Excel, spreadsheets are
called workbooks.
Row: A horizontal set of cells in a worksheet grid.
Column: A vertical set of cells in a worksheet grid.
Cell: A cell is the intersection of a row and a column in a worksheet grid.
Range: A range is a defined area of a worksheet. For example, selecting the
cells F4, F5, and F6 can be indicated as F4:F6.
Program No:6
Aim:- Creation and manipulation of database table using SQL in MS-Access.
Database Tables-
A database most often contains one or more tables. Each table is identified by a name (e.g.
"Customers" or "Orders"). Tables contain records (rows) with data.
The first form does not specify the column names where the data will be inserted, only their
values:
The second form specifies both the column names and the values to be inserted:
Tables are organized into rows and columns; and each table must have a name.
The column_name parameters specify the names of the columns of the table.
The data_type parameter specifies what type of data the column can hold (e.g. varchar, integer,
decimal, date, etc.).
The size parameter specifies the maximum length of the column of the table.
Example
CREATE TABLE Persons
(
PersonID int,
LastName varchar(255),
FirstName varchar(255),
Address varchar(255),
City varchar(255)
);
Program No:7
Output: 7
3
Sum=10
Basic Computer Engineering
2022
Program No:8
Coding:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
Int a[3][3],i,j;
for(i=0;i<3;i++)
{
For(j=o;j<3;j++)
Cin>>a[i][j];
}
for(i=0;i<3;i++)
{
Cout<<”\n”;
For(j=0;j<3;j++)
Cout<<a[i][j];
}
getch();
}
Output:1
2
3
4
5
6
7
8
9
123
456
789
Basic Computer Engineering
2022
Program No:9
Coding:
#include<iostream.h>
#include<conio.h>
int suare()
{
int a,sq;
cin>>a;
sq=a*a;
return(sq);
}
void main()
{
clrscr();
Int c;
c=square();
cout<<”square=”<<c;
}
Output:
2
Square=4
Basic Computer Engineering
2022
Program No:10
Algorithm:
CODING
#include<iostream.h>
#include<conio.h>
class prime
{
int a,k,i;
public:
prime(int x)
{
a=x;
}
void calculate()
{
k=1;
{
for(i=2;i<=a/2;i++)
if(a%i==0)
{
k=0;
break;
}
else
{
k=1;
}
}
}
Basic Computer Engineering
2022
void show()
{
if(k==1)
cout<< “\n\tA is prime Number. ";
else
cout<<"\n\tA is Not prime.";
}
};
void main()
{
clrscr();
int a;
cout<<"\n\tEnter the Number:";
cin>>a;
prime obj(a);
obj.calculate();
obj.show();
getch();
}
Output:
Enter the number: 7
Given number is Prime Number
Basic Computer Engineering
2022
Program No:11
Coding:
#include<iostream.h>
#include<conio.h>
class complex
{
int a,b,c;
public:
complex(){}
void getvalue()
{
cout<<"Enter the Two Numbers:";
cin>>a>>b;
}
void operator++()
{
a=++a;
b=++b;
}
void operator--()
{
a=--a;
b=--b;
Basic Computer Engineering
2022
}
void display()
{
cout<<a<<"+\t"<<b<<"i"<<endl;
}
};
void main()
{
clrscr();
complex obj;
obj.getvalue();
obj++;
cout<<"Increment Complex Number\n";
obj.display();
obj--;
cout<<"Decrement Complex Number\n";
obj.display();
getch();
Output:
Enter the two numbers: 3 6
Increment Complex Number
4+ 7i
Decrement Complex Number
3+ 6i
Basic Computer Engineering
2022
Program No:12
Coding:
#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
#define pi 3.14
class fn
{
public:
void area(int); //circle
void area(int,int); //rectangle
void area(float ,int,int); //triangle
};
void fn::area(int a)
{
cout<<"Area of Circle:"<<pi*a*a;
}
void fn::area(int a,int b)
{
cout<<"Area of rectangle:"<<a*b;
}
void fn::area(float t,int a,int b)
{
cout<<"Area of triangle:"<<t*a*b;
}
void main()
{
int ch;
int a,b,r;
clrscr();
fn obj;
cout<<"\n\t\tFunction Overloading";
cout<<"\n1.Area of Circle\n2.Area of Rectangle\n3.Area of Triangle\
n4.Exit\n:”;
cout<<”Enter your Choice:";
cin>>ch;
Basic Computer Engineering
2022
switch(ch)
{
case 1:
cout<<"Enter Radious of the Circle:";
cin>>r;
obj.area(r);
break;
case 2:
cout<<"Enter Sides of the Rectangle:";
cin>>a>>b;
obj.area(a,b);
break;
case 3:
cout<<"Enter Sides of the Triangle:";
cin>>a>>b;
obj.area(0.5,a,b);
break;
case 4:
exit(0);
}
getch();
}
Program No:13
Algorithm:
Step 1: Start the program.
Step 2: Declare the base class emp.
Step 3: Define and declare the function get() to get the employee details.
Step 4: Declare the derived class salary.
Step 5: Declare and define the function get1() to get the salary details.
Step 6: Define the function calculate() to find the net pay.
Step 7: Define the function display().
Step 8: Create the derived class object.
Step 9: Read the number of employees.
Step 10: Call the function get(),get1() and calculate() to each employees.
Step 11: Call the display().
Step 12: Stop the program.
Coding:
#include<iostream.h>
#include<conio.h>
class emp
{
public:
int eno;
char name[20],des[20];
void get()
{
cout<<"Enter the employee number:";
cin>>eno;
cout<<"Enter the employee name:";
cin>>name;
cout<<"Enter the designation:";
cin>>des;
}
};
void main()
{
int i,n;
char ch;
salary s[10];
clrscr();
cout<<"Enter the number of employee:";
cin>>n;
for(i=0;i<n;i++)
{
s[i].get();
s[i].get1();
s[i].calculate();
}
cout<<"\ne_no \t e_name\t des \t bp \t hra \t da \t pf \t np \n";
for(i=0;i<n;i++)
{
s[i].display();
}
getch();
}
Output:
Enter the Number of employee:1
Enter the employee No: 150
Enter the employee Name: ram
Enter the designation: Manager
Enter the basic pay: 5000
Enter the HR allowance: 1000
Enter the Dearness allowance: 500
Enter the profitability Fund: 300