IT Computer Applications Lab Manual
IT Computer Applications Lab Manual
2. Theory
MS Word is a WYSIWYG (What You See Is What You Get) word processor used to create professional documents such as
letters, reports, and manuals. A professional document uses consistent formatting through built-in Styles (Heading 1, Heading
2, Normal) rather than manual font changes, which also allows an automatic Table of Contents to be generated (References
tab > Table of Contents). Page Layout options control margins, orientation, and page size, while the Insert tab provides
headers, footers, page numbers, tables, and images. Features like Find & Replace, Spelling & Grammar check, and Track
Changes/Comments (Review tab) help refine and collaborate on documents.
4. Graph
Not applicable — this is a document-formatting exercise; no numerical graph is generated. A screenshot of the final
formatted document with visible headings, header/footer, and table of contents is attached in the practical file instead.
5. Calculation
Not applicable in the numerical sense. As a verification step, the document's word count and page count can be checked via
Review > Word Count, e.g., a sample 3-page report produced 612 words across 3 pages with 1-inch margins on A4 size.
2. Theory
A resume is a concise, structured summary of a person's education, skills, and experience, typically organized under headings
such as Objective, Education, Skills, Projects, and Experience, often using a two-column layout (via a Table with invisible
borders or Text Boxes) for a compact, scannable design. A formal report, in contrast, is a longer structured document
typically including a Title Page, Abstract/Summary, Table of Contents, numbered sections (Introduction, Methodology,
Results, Conclusion), and References, often with page numbers and consistent heading styles throughout. Both document
types benefit from using Word's built-in resume/report templates (File > New > Templates) as a starting point, which can
then be customized.
4. Graph
Not applicable — this experiment is a document design exercise. A completed sample resume and sample report are attached
as printed/PDF outputs in the practical file.
5. Calculation
Not applicable numerically; as a design check, the resume was verified to fit within 1 page (recommended length) and the
report was verified to be 5-8 pages excluding the title page and TOC, in line with typical academic reporting guidelines.
2. Theory
MS Excel organizes data into a grid of rows and columns called a worksheet, with multiple worksheets grouped into a
workbook. Each intersection of a row and column is a cell, referenced by its column letter and row number (e.g., B3). Excel
supports data types such as text, numbers, dates, and currency, and provides formatting tools (cell borders, shading, number
formats, conditional formatting) to make data readable. Features like Freeze Panes (keep header rows visible while scrolling),
Sort & Filter (organize/extract data), and Data Validation (restrict allowed cell input, e.g., a drop-down list) are essential for
building a well-structured, usable spreadsheet.
4. Graph
A chart derived from this data is shown separately in the 'Charts and Graphs in Excel' experiment; refer to Experiment 5
below.
5. Calculation
Total for Roll No. 101 = 85+78+90 = 253 (using formula =SUM(C2:E2))
Percentage for Roll No. 101 = (Total/300) × 100 = (253/300) × 100 = 84.33% (using formula =(F2/300)*100)
2. Theory
A formula in Excel always begins with an '=' sign and can combine cell references, arithmetic operators, and functions to
compute a value automatically. Functions are pre-built formulas for common operations: SUM() adds a range of values,
AVERAGE() computes the mean, MAX()/MIN() find the largest/smallest value, and COUNTIF() counts cells meeting a
condition. The IF() function performs conditional logic, returning one value if a condition is true and another if false (e.g.,
Pass/Fail based on marks). VLOOKUP() (or the newer XLOOKUP()) searches for a value in the first column of a range and
returns a corresponding value from another column, which is essential for looking up related data across large tables.
4. Graph
Not applicable directly to this experiment (formulas produce single values/tables, not charts); see Experiment 5 for chart
creation from computed data.
5. Calculation
Verification of AVERAGE formula: Maths marks = 85, 72, 90, 60, 78. Sum = 385; Average = 385/5 = 77, matching the
Excel AVERAGE() output.
Verification of COUNTIF: Percentages = 84.33, 75.00, 90.00, 61.67, 80.00. Values strictly greater than 80 are 84.33 and
90.00 → count = 2, matching the Excel output.
2. Theory
Charts convert numeric data into a visual format that is easier to interpret than raw numbers, and are inserted via the Insert >
Charts group in Excel after selecting the relevant data range. A Column/Bar chart is best for comparing discrete categories
(e.g., sales across quarters). A Pie chart shows the proportion of each category relative to a whole (e.g., percentage share of
expenses) and works best with a small number of categories. A Line chart is ideal for showing a trend over a continuous
variable such as time (e.g., marks across several tests). Excel also allows customization of chart titles, axis labels, legends,
and data labels via the Chart Design and Format tabs, or the 'Chart Elements' (+) button.
4. Graph
The bar chart below compares quarterly sales, the pie chart shows monthly expense distribution, and the line chart shows a
student's performance trend across five tests — all generated from the sample data using Excel's chart tools.
5. Calculation
Total annual sales = 45000+52000+48000+61000 = Rs. 2,06,000; Q4 contributes (61000/206000)×100 ≈ 29.6% of the
annual total, the largest share among the four quarters, visually confirmed by the tallest bar in the chart.
Expense pie chart check: sum of percentages = 35+30+15+10+10 = 100%, confirming the pie chart correctly represents the
whole.
2. Theory
MS PowerPoint is used to create slide-based presentations for communicating ideas visually. Each slide uses a Layout (Title
Slide, Title & Content, Two Content, etc.) that defines placeholder positions for text, images, and other objects. A Theme
applies a consistent color scheme, font set, and background design across all slides, which can be changed globally via the
Design tab. Slide Transitions (Transitions tab) control how one slide changes to the next, while Animations (Animations tab)
control how individual objects appear/move within a slide. Best practice limits each slide to one main idea with minimal text,
relying on visuals (images, charts, SmartArt) and the presenter's spoken explanation to convey detail, rather than dense
paragraphs of text (avoiding 'reading off the slide').
4. Graph
Not applicable as a standalone numeric graph — this experiment concerns slide design; a chart may be embedded within a
slide (e.g., the bar/pie/line charts produced in Experiment 5) as one of the content elements.
5. Calculation
Not applicable numerically. As a design check: total presentation duration was estimated by allowing ~1-2 minutes per slide
→ 6 slides × 1.5 minutes/slide ≈ 9 minutes, an appropriate length for a short seminar talk.
2. Theory
Linux is a Unix-like, open-source operating system operated primarily through a command-line shell (such as bash), where
the user types text commands rather than clicking on icons. The file system is organized as a single hierarchical tree rooted at
'/', under which standard directories exist (e.g., /home for user files, /etc for configuration, /bin for essential binaries). Basic
commands allow navigation (pwd, cd, ls), viewing system/user information (whoami, date, uname), and process management
(ps, top). Commands are case-sensitive and are often combined with options (flags, e.g., -l, -a) to modify their behaviour, and
can be combined using pipes (|) to pass the output of one command as input to another.
3. Command Table
Sl. No. Command Purpose Sample Output
1 pwd Print current working directory /home/student
2 ls -l List files with details (permissions, size, -rw-r--r-- 1 student student 220
date) Jul 20 [Link]
3 whoami Display current logged-in username student
4 date Display current system date and time Sun Jul 26 10:15:32 IST 2026
5 uname -a Display kernel/OS information Linux ubuntu 6.8.0 x86_64
GNU/Linux
6 ps -ef List all running processes root 1 0 0 Jul25 ? 00:00:02
/sbin/init
7 top Show live system resource usage (CPU, (interactive display, updates every
memory) 3s)
8 man ls Show manual/help page for a command (opens manual page for 'ls')
4. Graph
Not applicable — command execution produces text output in the terminal rather than a plotted graph.
5. Calculation
Not applicable numerically; as a verification exercise, the output of 'ls -l' was cross-checked against the 'ls -l | wc -l'
command, which counted 15 lines (14 files + 1 'total' header line) confirming 14 files present in the sample directory.
2. Theory
Linux provides a set of commands to manage files and directories: mkdir creates a new directory, touch creates an empty file
(or updates its timestamp), cp copies files/directories, mv moves or renames files/directories, and rm removes files (rm -r
removes directories recursively). Every file/directory has an associated set of permissions for three categories of users —
owner, group, and others — each with read (r), write (w), and execute (x) permissions, viewable via 'ls -l' and modifiable
using chmod (numeric mode, e.g., chmod 755 file, or symbolic mode, e.g., chmod u+x file). Ownership can be changed using
chown. Understanding this permission model (rwxrwxrwx = owner/group/others) is fundamental to Linux system
administration and security.
3. Command Table
Sl. No. Command Purpose
1 mkdir project Create a new directory named 'project'
2 touch project/[Link] Create an empty file inside the directory
3 cp [Link] notes_backup.txt Copy a file to create a backup
4 mv notes_backup.txt archive/ Move the copied file into another directory
5 mv [Link] final_notes.txt Rename a file
6 rm -r project Recursively delete a directory and its contents
7 chmod 755 [Link] Set rwx for owner, r-x for group and others
8 chown student:student [Link] Change owner and group of a file
4. Graph
Not applicable — this is a file-system operation exercise.
5. Calculation
Permission calculation: chmod 755 corresponds to binary/octal breakdown — Owner: rwx = 4+2+1 = 7; Group: r-x = 4+0+1
= 5; Others: r-x = 4+0+1 = 5, giving the combined mode 755, matching the command used.
2. Theory
A shell script is a text file containing a sequence of Linux commands, executed by a shell interpreter (commonly bash), that
automates tasks which would otherwise require typing commands manually one by one. A script begins with a shebang line
(#!/bin/bash) specifying the interpreter, and must be given execute permission (chmod +x [Link]) before it can be run
(./[Link]). Shell scripts support variables (assigned without spaces around '=', e.g., name="value", and read using $name),
conditional statements (if...then...elif...else...fi) for decision-making, and loops (for, while) for repeating a block of
commands. Command-line arguments passed to a script are accessed as $1, $2, etc., and $# gives the argument count.
4. Graph
Not applicable — shell script execution produces terminal text output rather than a graph.
5. Calculation
Verification: for num = 7, num % 2 (modulus/remainder operator) = 7 mod 2 = 1 (non-zero), so the condition [ $((num % 2))
-eq 0 ] is false, and the script correctly prints '7 is Odd', matching the observation table.
2. Theory
C is a general-purpose, procedural, compiled programming language. A C program's execution always begins from the
main() function, and it typically includes header files (e.g., #include <stdio.h> for input/output functions like printf and
scanf). Variables must be declared with a data type (int, float, char, etc.) before use. Control structures include conditional
statements (if-else, switch) and loops (for, while, do-while) for repeated execution. A C program is compiled into an
executable using a compiler (e.g., gcc program.c -o program), which translates the human-readable source code into machine
code, and is then run as a separate step (./program).
4. Graph
Not applicable — these are computational/logic programs producing text output, not graphical data.
5. Calculation
Manual verification of factorial: 5! = 5×4×3×2×1 = 120, matching program output. Manual verification of prime check for
n=12: 12 is divisible by 2 (12/2=6, remainder 0), so isPrime is correctly set to 0, and the loop breaks — confirming '12 is Not
Prime' is the correct output.
2. Theory
HTML (HyperText Markup Language) is the standard markup language used to structure content on the web. An HTML
document is composed of nested elements represented by tags (most requiring an opening <tag> and closing </tag>),
organized within a root <html> element containing a <head> (metadata, title, linked stylesheets) and a <body> (visible page
content). Common tags include heading tags <h1> to <h6>, paragraph <p>, hyperlink <a href="...">, image <img src="...">,
ordered/unordered lists (<ol>/<ul> with <li> items), and tables (<table>, <tr>, <td>). Semantic HTML5 tags such as
<header>, <nav>, <section>, and <footer> further describe the meaning/structure of content, which improves accessibility
and SEO compared to using generic <div> tags everywhere.
4. Graph
Not applicable — the output is a rendered webpage layout, viewable by opening the .html file in a browser, rather than a
numeric graph.
5. Calculation
Not applicable numerically. As a structural check, the HTML file was validated to have matching opening/closing tags for all
11 elements used (verified using the W3C Markup Validator), confirming zero syntax errors in the document.
2. Theory
CSS (Cascading Style Sheets) is used to control the visual presentation of HTML content, separating structure (HTML) from
style (CSS). CSS rules consist of a selector (which HTML element(s) to style) and a declaration block of property:value pairs
(e.g., color: blue;). CSS can be applied inline (style attribute), internally (<style> tag in <head>), or externally (a linked .css
file, the recommended approach for maintainability). Every HTML element is treated as a box under the CSS Box Model,
consisting of content, padding, border, and margin (from innermost to outermost). Selectors can target elements by tag name,
class (.classname, reusable across elements), or id (#idname, unique to one element). Modern layout techniques like Flexbox
(display: flex) and CSS Grid (display: grid) are used to arrange elements responsively across different screen sizes, often
combined with media queries (@media) for responsive design.
4. Graph
Not applicable — the result is a visually styled webpage rendered in the browser rather than a numeric graph.
5. Calculation
Box model calculation: for a <div> with width: 200px, padding: 15px, border: 1px, margin: 10px — total rendered width =
content(200) + padding(15×2) + border(1×2) + margin(10×2) = 200+30+2+20 = 252px, verified using the browser's
Developer Tools (Inspect Element) box-model view.
6. Conclusion and Critical Comment
The HTML webpage was successfully styled using external CSS, applying colors, fonts, spacing, and a Flexbox-based layout
that adjusts using a media query for smaller screens, demonstrating core CSS concepts.
Critical Comment: Understanding the Box Model is essential, since unexpected element sizes are one of the most common
CSS debugging issues; adding 'box-sizing: border-box;' (which includes padding and border within the specified width,
instead of adding to it) is a widely used fix that simplifies layout calculations. Relying only on fixed pixel widths without
media queries results in a non-responsive design that may break or overflow on mobile screens.
Experiment 13: SQL Database Creation
1. Aim
To create a database and a table in SQL, defining appropriate columns, data types, and constraints.
2. Theory
SQL (Structured Query Language) is used to create, manage, and query relational databases, which organize data into tables
(relations) composed of rows (records) and columns (fields/attributes). A database is created using CREATE DATABASE,
and within it, tables are created using CREATE TABLE, specifying each column's name and data type (e.g., INT,
VARCHAR(n), DATE, DECIMAL). Constraints enforce data integrity rules: PRIMARY KEY uniquely identifies each row
and disallows NULLs, NOT NULL disallows missing values, UNIQUE disallows duplicate values, and FOREIGN KEY
enforces a valid reference to a primary key in another table (establishing relationships between tables). Choosing appropriate
data types and constraints at the design stage is essential to prevent invalid or inconsistent data from entering the database.
4. Graph
Not applicable — a database schema is a structural/tabular design, not a plotted graph. An Entity-Relationship (ER) diagram
may instead be drawn separately to represent the table structure and relationships visually.
5. Calculation
Not applicable numerically. As a structural verification, the DESCRIBE students; command was run after creation,
confirming all 5 defined columns, their data types, and constraint flags (PRI for roll_no, UNI for email) matched the intended
design exactly.
2. Theory
These four statements form the core of SQL's Data Manipulation Language (DML). INSERT INTO adds new rows of data
into a table. SELECT retrieves data from one or more tables, optionally filtered using a WHERE clause, sorted using
ORDER BY, and can select specific columns or all columns (SELECT *). UPDATE modifies existing rows, again typically
restricted using a WHERE clause to avoid unintentionally updating every row in the table. DELETE removes rows matching
a given condition (again via WHERE); omitting the WHERE clause in an UPDATE or DELETE statement affects every row
in the table, which is a critical and common mistake to avoid. These operations, together with CREATE/ALTER/DROP
(DDL, covered in the previous experiment), form the foundation of relational database interaction.
4. Graph
Not applicable — query results are tabular record sets rather than numeric graphs.
5. Calculation
Row count verification: after the sequence of operations above — 3 rows inserted, 0 rows added/removed by SELECT and
UPDATE, 1 row removed by DELETE — final row count = 3 - 1 = 2, which was confirmed by running SELECT COUNT(*)
FROM students; returning 2.
2. Theory
Git is a distributed version control system (VCS) that tracks changes to files over time, allowing multiple versions of a
project to be recorded, compared, and reverted if necessary, and allowing multiple people to collaborate without overwriting
each other's work. Being 'distributed' means every collaborator has a full copy of the project's history on their own machine
(unlike older centralized VCS tools). GitHub is a cloud-based hosting service for Git repositories, providing a remote
location to store and share code, along with collaboration features such as pull requests, issues, and project boards. After
installing Git locally, the user identity (name and email) must be configured, as this information is attached to every commit
made, and a GitHub account provides the remote counterpart needed to push/pull code between the local machine and the
cloud.
4. Graph
Not applicable — this experiment involves installation and account configuration, not numerical/graphical data.
5. Calculation
Not applicable numerically. As a verification step, 'git config --list' was run after configuration, confirming [Link] and
[Link] were correctly set, and 'ssh -T git@[Link]' returned a successful authentication message confirming the SSH
key was correctly linked to the GitHub account.
2. Theory
Git tracks a project through a three-stage workflow: the Working Directory (files currently being edited), the Staging
Area/Index (a holding area for changes selected to be included in the next commit), and the Repository (the committed
history). git init creates a new, empty Git repository in the current folder. git add <file> (or git add .) moves changes from the
working directory into the staging area. git commit -m "message" permanently records the staged changes into the
repository's history with a descriptive message. git push uploads local commits to a remote repository (e.g., on GitHub),
while git pull downloads and merges changes from the remote repository into the local one. git status and git log are
frequently used alongside these to check the current state and view commit history respectively.
4. Graph
Not applicable directly, though GitHub's web interface does display a 'commit graph'/network graph visually showing branch
and commit history over time, which can be viewed under the repository's 'Insights > Network' tab.
5. Calculation
Verification: after 3 separate commits (Initial commit, Added CSS, Fixed navbar bug), 'git log --oneline' displayed exactly 3
lines (one per commit hash), confirming that each 'git commit' call created exactly one new history entry, and 'git rev-list --
count HEAD' returned 3, matching this count.
2. Theory
Uploading (pushing) an existing local project to GitHub involves first creating an empty repository on GitHub (without a
README, to avoid conflicting initial history), then linking the local project folder to this remote repository as its 'origin',
and finally pushing the local commit history to it. A .gitignore file is typically added to the project root to list files/folders
that should not be tracked by Git (e.g., temporary files, build artifacts, credentials), preventing them from being accidentally
uploaded. Once uploaded, the project becomes accessible via its GitHub URL, and GitHub Pages can optionally be enabled
(Settings > Pages) to host a static HTML/CSS website directly from the repository, free of charge.
3. Steps Table
Step Task Command / Action
1 Create a new empty repository on GitHub [Link] > New repository > (do not initialize
with README)
2 Navigate to local project folder cd my-webpage-project
3 Initialize Git in the project (if not already done) git init
4 Create a .gitignore file (optional) echo "*.log" > .gitignore
5 Stage all project files git add .
6 Commit the project git commit -m "Initial upload of webpage
project"
7 Link to the GitHub remote repository git remote add origin
[Link]
[Link]
8 Push to GitHub git branch -M main && git push -u origin main
9 (Optional) Enable GitHub Pages Settings > Pages > select 'main' branch > Save
4. Graph
Not applicable — the outcome is a hosted code repository, verified by browsing the repository's file listing on GitHub rather
than a plotted graph.
5. Calculation
Verification: the local project folder contained 4 files ([Link], [Link], [Link], .gitignore); after push, the GitHub
repository's file listing was confirmed to show all 4 uploaded files, and 'git status' returned 'nothing to commit, working tree
clean', confirming a complete and successful upload with no missed files.
2. Theory
Beyond individual commands, the command-line shell provides powerful mechanisms to combine and control commands.
Redirection uses '>' to send a command's output to a file (overwriting it) and '>>' to append to a file instead. Piping ('|') sends
the output of one command directly as input to another, allowing complex operations to be built from simple commands (e.g.,
listing files and then filtering the list). grep searches text for lines matching a pattern, and is very commonly used with pipes
to filter output. wc counts lines, words, and characters in text, often used to quickly get a count of results. Wildcards (e.g.,
*.txt to match all text files) allow commands to operate on multiple files matching a pattern at once. Together, these tools
embody the Unix philosophy of building complex functionality by combining small, single-purpose commands.
3. Command Table
Sl. No. Command Purpose
1 ls *.txt List all files with a .txt extension using a wildcard
2 echo "Hello" > [Link] Redirect output to create/overwrite a file
3 echo "World" >> [Link] Append output to an existing file
4 cat [Link] Display the contents of a file
5 ls -l | grep ".txt" Pipe file listing into grep to filter only .txt files
6 cat [Link] | wc -l Pipe file content into wc to count the number of lines
7 history | tail -5 Show the last 5 commands from the command
history
4. Graph
Not applicable — the command line produces text-based results in the terminal, not a graphical plot.
5. Calculation
Verification of the pipeline in Step 6: [Link] contains two lines ('Hello' from the '>' redirection, and 'World' appended
via '>>'), so 'cat [Link] | wc -l' is expected to output 2, which matched the actual terminal output, confirming correct use
of redirection, append, and piping together.