0% found this document useful (0 votes)
112 views

Lab Assignment For UG SPL Computer GE Science Practical Examination July 2024

Lab assignment

Uploaded by

aanku5835
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views

Lab Assignment For UG SPL Computer GE Science Practical Examination July 2024

Lab assignment

Uploaded by

aanku5835
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Lab Assignment for UG SPL Computer GE Science Practical

Examination July 2024

SPLGE– 1: COMPUTER
Computer Science as Generic Elective (GE I (B)): Computer
Fundamentals Lab

SL. Practicals
No.
Practical exercises based on MS Office/ Open Office tools using document preparation and spreadsheet
handling packages.
MS Word
1. Prepare a grocery list having four columns (Serial number, The name of the product, quantity and
price) for the month of April, 06.
 Font specifications for Title (Grocery List): 14-point Arial font in bold and italics.
 The headings of the columns should be in 12-point and bold.
 The rest of the document should be in 10-point Times New Roman.
Leave a gap of 12-points after the title.
2. Create a telephone directory.
 The heading should be 16-point Arial Font in bold
 The rest of the document should use 10-point font size
 Other headings should use 10-point Courier New Font.
 The footer should show the page number as well as the date last updated.
3. Design a time-table form for your college.
 The first line should mention the name of the college in 16-point Arial Font and
should be bold.
 The second line should give the course name/teacher‘s name and the department
in 14-point Arial.
 Leave a gap of 12-points.
 The rest of the document should use 10-point Times New Roman font.
 The footer should contain your specifications as the designer and date of creation.
4. BPB Publications plans to release a new book designed as per your syllabus. Design the first page
of the book as per the given specifications.
 The title of the book should appear in bold using 20-point Arial font.
 The name of the author and his qualifications should be in the center of the page
in 16-point Arial font.
 At the bottom of the document should be the name of the publisher and address
in 16-point Times New Roman.
 The details of the offices of the publisher (only location) should appear in the
footer.
5. Create the following one page documents.
 Compose a note inviting friends to a get-together at your house, Including a list of
things to bring with them.
 Design a certificate in landscape orientation with a border around the document.
 Design a Garage Sale sign.
 Make a sign outlining your rules for your bedroom at home, using a numbered list.
6. Create the following documents:
 A newsletter with a headline and 2 columns in portrait orientation, including at
least one image surrounded by text.
 Use a newsletter format to promote upcoming projects or events in your
classroom or college.
7. Convert following text to a table, using comma as delimiter
Type the following as shown (do not bold).

Color, Style, Item

Blue, A980, Van

Red, X023, Car

Green, YL724, Truck

Name, Age, Sex

Bob, 23, M

Linda, 46, F

Tom, 29, M
8. Enter the following data into a table given on the next page.
Salesperson Dolls Trucks Puzzles
Kennedy, Sally 1327 1423 1193
White, Pete 1421 3863 2934
Pillar, James 5214 3247 5467
York, George 2190 1278 1928
Banks, Jennifer 1201 2528 1203
Atwater, Kelly 4098 3079 2067
Add a column Region (values: S, N, N, S, S, S) between the Salesperson and Dolls columns to the
given table Sort your table data by Region and within Region by Salesperson in ascending order:
In this exercise, you will add a new row to your table, place the word "Total" at the bottom of the
Salesperson column, and sum the Dolls, Trucks, and Puzzles columns.
9. Wrapping of text around the image
10. Following features of menu option must be covered
FILE Complete menu
EDIT Complete menu
VIEW Complete menu
INSERT Complete menu
FORMAT Complete menu
TABLE Complete menu
WINDOW Complete menu
HELP Complete menu
TOOLS All options except Online collaboration, Tools on Macro, Templates
MS Excel
1. Enter the Following data in Excel Sheet
REGIONAL SALES PROJECTION
State Qtr1 Qtr2 Qtr3 QTR4 Qtr Total Rate Amount
Delhi 2020 2400 2100 3000 15
Punjab 1100 1300 1500 1400 20
U.P. 3000 3200 2600 2800 17
Harayana 1800 2000 2200 2700 15
Rajasthan 2100 2000 1800 2200 20
TOTAL
AVERAGE
a. Apply Formatting as follow:
i. Title in TIMES NEW ROMAN
ii. Font Size - 14
iii. Remaining text - ARIAL, Font Size -10
iv. State names and Qtr. Heading Bold, Italic with Gray Fill Color.
v. Numbers in two decimal places.
vi. Qtr. Heading in center Alignment.
vii. Apply Border to whole data.
b. Calculate State and Qtr. Total
c. Calculate Average for each quarter
Calculate Amount = Rate * Total.
2. Given the following worksheet
A B C D
1 Roll No. Name Marks Grade
2 1001 Sachin 99
3 1002 Sehwag 65
4 1003 Rahul 41
5 1004 Sourav 89
6 1005 Har Bhajan 56
Calculate the grade of these students on the basis of following guidelines:
If Marks Then Grade
>= 80 A+
>= 60 < 80 A
>= 50 < 60 B
< 50 F
3. Given the following worksheet
A B C D E F G
1 Salesman Sales in (Rs.)
2 No. Qtr1 Qtr2 Qtr3 Qtr4 Total Commission
3 S001 5000 8500 12000 9000
4 S002 7000 4000 7500 11000
5 S003 4000 9000 6500 8200
6 S004 5500 6900 4500 10500
7 S005 7400 8500 9200 8300
8 S006 5300 7600 9800 6100
Calculate the commission earned by the salesmen on the basis of following Candidates:
If Total Sales Commission
< 20000 0% of sales
> 20000 and < 25000 4% of sales
> 25000 and < 30000 5.5% of sales
> 30000 and < 35000 8% of sales
>= 35000 11% of sales
The total sale is sum of sales of all the four quarters.
4. A company XYZ Ltd. pays a monthly salary to its employees which consists of basic salary,
allowances & deductions. The details of allowances and deductions are as follows:

Allowances
• HRA Dependent on Basic
30% of Basic if Basic <=1000
25% of Basic if Basic>1000 & Basic<=3000
20% of Basic if Basic >3000

• DA Fixed for all employees,


30% of Basic

• Conveyance Allowance
Rs. 50/- if Basic is <=1000
Rs. 75/- if Basic >1000 & Basic<=2000
Rs. 100 if Basic >2000

• Entertainment Allowance
NIL if Basic is <=1000
Rs. 100/- if Basic > 1000

Deductions

• Provident Fund
6% of Basic
• Group Insurance Premium
Rs. 40/- if Basic is <=1500
Rs. 60/- if Basic > 1500 & Basic<=3000
Rs. 80/- if Basic >3000

Calculate the following:

Gross Salary = Basic + HRA + DA + Conveyance + Entertainment


Total deduction = Provident Fund + Group Insurance Premium
Net Salary = Gross Salary – Total Deduction
5. Create Payment Table for a fixed Principal amount, variable rate of interests and time in the format
below:
No. of Installments 5% 6% 7% 8% 9%
3 XX XX XX XX XX
4 XX XX XX XX XX
5 XX XX XX XX XX
6 XX XX XX XX XX
6. Use an array formula to calculate Simple Interest for given principal amounts given the rate of
Interest and time
Rate of Interest 8%
Time 5 Years
Principal Simple Interest
1000 ?
18000 ?
5200 ?
7. The following table gives year wise sale figure of five salesmen in Rs.

Salesman 2000 2001 2002 2003


S1 10000 12000 20000 50000
S2 15000 18000 50000 60000
S3 20000 22000 70000 70000
S4 30000 30000 100000 80000
S5 40000 45000 125000 90000

(a) Calculate total sale year wise.


(b) Calculate the net sale made by each salesman
(c) Calculate the maximum sale made by the salesman
(d) Calculate the commission for each salesman under the condition.
(i) If total sales >4, 00, 000 give 5% commission on total sale made by the salesman.
(ii) Otherwise give 2% commission.
(e) Draw a bar graph representing the sale made by each salesman.
(f) Draw a pie graph representing the sale made by salesman in 2000.
8. Enter the following data in Excel Sheet
PERSONAL BUDGET FOR FIRST QUARTER
Monthly Income (Net): 1,475
Expanses JAN FEB MAR Quarter Total Quarter Average
Rent 600 600 600
Telephone 48.25 43.25 60
Utilities 67.27 110 70
Credit Card 200 110 70
Oil 100 150 90
AV to Insurance 150
Cable TV 40.75 40.75 40.75
Monthly Total
(a) Calculate Quarter total and Quarter average.
(b) Calculate Monthly total.
(c) Surplus = Monthly income - Monthly total.
(d) What would be total surplus if monthly income is 1500.
(e) How much does telephone expense for March differ from quarter average.
(f) Create a 3D column graph for telephone and utilities.
(g) Create a pie chart for monthly expenses.
9. Enter the following data in Excel Sheet
TOTAL REVENUE EARNED FOR SAM’S BOOKSTALL (in Indian Rupees)
Publisher Name 1997 1998 1999 2000
A 1000 1100 1300 800
B 1500 700 1000 2000
C 700 900 1500 600
D 1200 500 200 1100
E 800 1000 3000 560
(a) Compute the total revenue earned.
(b) Plot the line chart to compare the revenue of all publishers for 4 years.
(c) Chart Title should be ‗Total Revenue of Sam’s Bookstall (1997-2000)
(d) Give appropriate categories and value axis title.
1. Generate 25 random numbers between 0 & 100 and find their sum, average and count. How many
no. are in range 50-60.
Lab Assignment for UG SPL Computer GE Science Practical
Examination July 2024

SPL GE–2: COMPUTER


Computer Science Elective (GE-II (B)): Introduction to Programming
using ‘C’ Lab

SL. No. Program


1. WAP to print the sum and product of digits of an integer.
2. WAP to reverse a number.
3. WAP to compute the sum of the first n terms of the following series S = 1+1/2+1/3+1/4+…
4. WAP to compute the sum of the first n terms of the following series S =1-2+3-4+5…………….
5. Write a function that checks whether a given string is Palindrome or not. Use this function to find
whether the string entered by user is Palindrome or not.
6. Write a function to find whether a given no. is prime or not. Use the same to generate the prime
numbers less than 100.
7. WAP to compute the factors of a given number.
8. Write a macro that swaps two numbers. WAP to use it.
9. WAP to print a triangle of stars as follows (take number of lines from user):
*
***
*****
*******
*********
10. WAP to perform following actions on an array entered by the user: i) Print the even-valued
elements ii) Print the odd-valued elements iii) Calculate and print the sum and average of the
elements of array iv) Print the maximum and minimum element of array v) Remove the duplicates
from the array vi) Print the array in reverse order The program should present a menu to the user
and ask for one of the options. The menu should also include options to re-enter array and to quit
the program.
11. WAP that prints a table indicating the number of occurrences of each alphabet in the text entered
as command line arguments.
12. Write a program that swaps two numbers using pointers.
13. Write a program in which a function is passed address of two variables and then alter its contents.
14. Write a program which takes the radius of a circle as input from the user, passes it to another
function that computes the area and the circumference of the circle and displays the value of area
and circumference from the main() function.
15. Write a program to find sum of n elements entered by the user. To write this program, allocate
memory dynamically using malloc() / calloc() functions or new operator.
16. Write a menu driven program to perform following operations on strings: a) Show address of each
character in string b) Concatenate two strings without using strcat function. c) Concatenate two
strings using strcat function. d) Compare two strings e) Calculate length of the string (use pointers)
f) Convert all lowercase characters to uppercase g) Convert all uppercase characters to lowercase
h) Calculate number of vowels i) Reverse the string
Given two ordered arrays of integers, write a program to merge the two-arrays to get an ordered
array.
17. WAP to display Fibonacci series (i)using recursion, (ii) using iteration
18. WAP to calculate Factorial of a number (i)using recursion, (ii) using iteration
19. WAP to calculate GCD of two numbers (i) with recursion (ii) without recursion.
20. Create Matrix class using templates. Write a menu-driven program to perform following Matrix
operations (2-D array implementation): a) Sum b) Difference c) Product d) Transpose
21. Create the Person class. Create some objects of this class (by taking information from the user).
Inherit the class Person to create two classes Teacher and Student class. Maintain the respective
information in the classes and create, display and delete objects of these two classes (Use Runtime
Polymorphism).
22. Create a class Triangle. Include overloaded functions for calculating area. Overload assignment
operator and equality operator.
23. Create a class Box containing length, breath and height. Include following methods in it: a)
Calculate surface Area b) Calculate Volume c) Increment, Overload ++ operator (both prefix &
postfix) d) Decrement, Overload -- operator (both prefix & postfix) e) Overload operator == (to
check equality of two boxes), as a friend function f) Overload Assignment operator g) Check if it is
a Cube or cuboid Write a program which takes input from the user for length, breath and height
to test the above class.
24. Create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks.
25. Create 10 students and store them in a file.
26. Write a program to retrieve the student information from file created in previous question and
print it in following format: Roll No. Name Marks.
27. Copy the contents of one text file to another file, after removing all whitespaces.
28. Write a function that reverses the elements of an array in place. The function must accept only
one pointer value and return void.
29. Write a program that will read 10 integers from user and store them in an array. Implement array
using pointers. The program will print the array elements in ascending and descending order.
Lab Assignment for UG SPL Computer GE Science Practical
Examination July 2024

SPL GE–3: COMPUTER


Computer Science as Generic Elective (GE III (B)): Introduction to
Database Management System Lab

SL. NO. Contents


Create and use the following database schema to answer the given queries.
EMPLOYEE Schema

Field Type Null Key Default


Eno Char(3) No PK NULL
Ename Varchar(50) No NULL
Job_Type Varchar(50) No NULL
Manager Char(3) Yes FK NULL
Hire_Date Date No NULL
Dno Integer Yes FK NULL
Commission Decimal(10,2) Yes NULL
Salary Decimal(7,2) No NULL

DEPARTMENT Schema

Field Type Null Key Default


Dno Integer No PK NULL
Dname Varchar(50) Yes NULL
Location Varchar(50) Yes New Delhi

Query List
1. Query to display Employee Name, Job, Hire Date, Employee Number; for each employee with the
Employee Number appearing first.
2. Query to display unique Jobs from the Employee Table.
3. Query to display the Employee Name concatenated by a Job separated by a comma.
4. Query to display all the data from the Employee Table. Separate each Column by a comma and name
the said column as THE_OUTPUT.
5. Query to display the Employee Name and Salary of all the employees earning more than $2850.
6. Query to display Employee Name and Department Number for the Employee No= 7900.
7. Query to display Employee Name and Salary for all employees whose salary is not in the range of
$1500 and $2850.
8. Query to display Employee Name and Department No. of all the employees in Dept 10 and Dept 30
in the alphabetical order by name.
9. Query to display Name and Hire Date of every Employee who was hired in 1981.
10. Query to display Name and Job of all employees who don‘t have a current Manager.
11. Query to display the Name, Salary and Commission for all the employees who earn commission.
12. Sort the data in descending order of Salary and Commission.
13. Query to display Name of all the employees where the third letter of their name is =A‘.
14. Query to display Name of all employees either have two =R‘s or have two =A‘s in their name and are
either in Dept No = 30 or their Manger‘s Employee No = 7788.
15. Query to display Name, Salary and Commission for all employees whose Commission Amount is 14
greater than their Salary increased by 5%.
16. Query to display the Current Date.
17. Query to display Name, Hire Date and Salary Review Date which is the 1st Monday after six months
of employment.
18. Query to display Name and calculate the number of months between today and the date each
employee was hired.
19. Query to display the following for each employee <E-Name> earns < Salary> monthly but wants < 3
* Current Salary >. Label the Column as Dream Salary.
20. Query to display Name with the 1st letter capitalized and all other letter lower case and length of
their name of all the employees whose name starts with =J‘, ‘A‘ and =M‘.
21. Query to display Name, Hire Date and Day of the week on which the employee started.
22. Query to display Name, Department Name and Department No for all the employees.
23. Query to display Unique Listing of all Jobs that are in Department # 30.
24. Query to display Name, Dept Name of all employees who have an =A‘ in their name.
25. Query to display Name, Job, Department No. And Department Name for all the employees working
at the Dallas location.
26. Query to display Name and Employee no. Along with their Manger‘s Name and the Manager‘s
employee no; along with the Employees‘ Name who do not have a Manager.
27. Query to display Name, Dept No. And Salary of any employee whose department No. and salary
matches both the department no. And the salary of any employee who earns a commission.
28. Query to display Name and Salaries represented by asterisks, where each asterisk (*) signifies $100.
29. Query to display the Highest, Lowest, Sum and Average Salaries of all the employees
30. Query to display the number of employees performing the same Job type functions.
31. Query to display the no. of managers without listing their names.
32. Query to display the Department Name, Location Name, No. of Employees and the average salary
for all employees in that department.
33. Query to display Name and Hire Date for all employees in the same dept. as Blake.
34. Query to display the Employee No. And Name for all employees who earn more than the average
salary.
35. Query to display Employee Number and Name for all employees who work in a department with any
employee whose name contains a = ‘T’.
36. Query to display the names and salaries of all employees who report to King.
37. Query to display the department no, name and job for all employees in the Sales department.
Lab Assignment for UG SPL Computer GE Science Practical
Examination July 2024

SPL GE–4: COMPUTER

Computer Science as Generic Elective (GE IV (B)) Computer Networks


and Internet Technologies Lab
SL. No. Programs
1. Practical exercises based on concepts listed in theory using HTML.
Create HTML document with following formatting – Bold, Italics, Underline, Colors, Headings, Title,
Font and Font Width, Background, Paragraph, Line Brakes, Horizontal Line, Blinking text as well as
marquee text
2. Create HTML document with Ordered and Unordered lists, Inserting Images, Internal and External
linking.
3. Create HTML document with Table:

Some image here

4. Create Form with Input Type, Select and Text Area in HTML.
5. Create an HTML containing Roll No., student‘s name and Grades in a tabular form.

6. Create an HTML document (having two frames) which will appear as follows:

About

Department 1 This frame would show the contents


according to the link clicked by the user on
Department 2 the left frame.

Department 3

7. Create an HTML document containing horizontal frames as follows:


Department Names (could be along with Logos)
Contents according to the Link clicked
8. Create a website of 6 – 7 pages with different effects as mentioned in above problems.
9. Create HTML documents (having multiple frames) in the following three formats:
Frame 1
Frame2

Frame 1
Frame2 Frame 3
10. Create a form using HTML which has the following types of controls: V. Text Box VI. Option/radio
buttons VII. Check boxes VIII. Reset and Submit buttons
11. List of Practicals using JavaScript
Create event driven program for following:
1. Print a table of numbers from 5 to 15 and their squares and cubes using alert.
2. Print the largest of three numbers.
3. Find the factorial of a number n.
4. Enter a list of positive numbers terminated by Zero. Find the sum and average of these
numbers.
5. A person deposits Rs 1000 in a fixed account yielding 5% interest. Compute the amount in
the account at the end of each year for n years.
Read n numbers. Count the number of negative numbers, positive numbers and zeros in the list.

You might also like