Updated ICS_II C.S Practical Model Paper

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

PUNJAB GROUP OF COLLEGES RAWALPINDI

PUNJAB GROUP OF COLLEGES RAWALPINDI

ICS-II COMPUTER SCIENCE PRACTICAL PAPER


Section#1
MS Word
Question#1: Prepare the following document in the same format and save it against your
Roll No.

Perform the following operations with the document:

1: Draw the above design and write procedure

Procedure

• Open Microsoft Word.

• Click on the "Insert" tab.

• Select "Shapes" from the dropdown menu.

• Choose the shape you want to draw e.g. Star, Bang or Smiley shape.

• Click and drag on the document to draw the selected shape. Adjust size as needed.

• Once you’ve completed your document. Save it against your roll no (e.g. 2224614.docx),
PUNJAB GROUP OF COLLEGES RAWALPINDI
Question#2: Prepare the following document and save it against your Roll No.
Type and Perform the following operations on the below paragraph:
i. Apply font size 11.5 and line spacing 1.5.
ii. Paragraph apply justify and effect emboss.
iii. Background color yellow.

Compiler A Software-development tool that translate high-level language programs into the machine language
instructions that a particular processor can understand and execute. However, the object code that results is not
yet ready to be run; at least a linker or link-step must yellow.

Procedure

• First of all, open Microsoft Word and type the above paragraph then apply the specified formatting’s.

Applying font size 11.5 and line spacing 1.5:

• Select the paragraph.


• In the Home tab, locate the "Font Size" dropdown menu.
• Click in to font size and type "11.5".
• In the same Home tab, find the "Line and Paragraph Spacing" icon.
• Select "1.5" from the line spacing options.
• The selected text will now have a font size of 11.5 and a line spacing of 1.5.

Applying paragraph justify and effect emboss:

• Select the paragraph then from “Home tab” find the "Paragraph" group.
• Click on the "Justify" icon to justify the selected paragraph(s).
• After that within font tab locate “text effect and typography” and select any emboss effect of your own
choice.

Applying yellow background color:

• Select the paragraph and from “Home tab” locate "Shading" icon in the "Paragraph" group.
• Dropdown the shading menu and choose yellow shade from the color palette.
• The selected text or area will now have a yellow background.

Saving the file:

• Click on File Tab, then click on Save as, select the preferred location where you want to store your file rename
the file by your roll no and click save. (e.g. 2224614.docx)
PUNJAB GROUP OF COLLEGES RAWALPINDI

MS Excel
Question#2: Prepare the following worksheet and save it against your Roll No.

Discount Shop
Item Trade Discount
S.No Profit
Name Price 15.5%
1 LCD 9000
2 CPU 10000
3 LED 15000

Perform the following tasks:

1. Calculate profit as profit =Trade price*Discount/100


2. Draw bar chart

Procedure

• First of all, open Microsoft Excel.


• Prepare the given table as, merge and center the first 5 cells and type “Discount Shop” then type all Field
headers and put the given data in rows and columns.

Calculating profit as profit =Trade price*Discount/100:

• In E3 cell = (C3 * D3) / 100 ( “ =C3 (Trade Price) * D3 (Discount) / 100 “.)
• Then click on the bottom right corner of first cell where formula is entered and drag down the formula from
E3 to E5.

Drawing Bar Chart:

• Highlight the cells containing the data you want to represent in the bar chart.
• Go to the "Insert" tab on the Excel ribbon.
• In the Charts group, select "Bar Chart."
• Choose the specific bar chart type you want (e.g., clustered bar, stacked bar).
• Once you’ve completed your document. Save it against your roll no (e.g,2224614.docx)
PUNJAB GROUP OF COLLEGES RAWALPINDI
Question#3: Prepare the following worksheet and save it against your Roll No.

E-Bill
Per unit Amount Bill
Name Unit
Cost Due Payable
MCB 1500 15 4568
PSO 2530 15 6587
OGDC 5800 15 4258
PTC 6500 15 4587
Total
Average

Perform the following tasks:

1. Calculate Bill's.
2. Calculate Amount Due= Units *cost
3. Draw chart.
Procedure

• First of all, open Microsoft Excel.


• Prepare the given table as, merge and center the first 5 cells and type “E-Bill” then type all Field headers
and put the given data in rows and columns.

Calculating Payable Bills, Total and Average:

• In E3 cell = (B3 * C3) + D3. ( B3 (Unit) * C3 (per unit cost) ) +D3 (Amount Due)
• Then click on the bottom right corner of first cell where formula is entered and drag down the formula from
E3 to E6.
• Now click the cell next to the “Total” and apply this formula in B7 = SUM(B3:B6).
• Now, head over to average tab and apply this formula in B8 =AVERAGE(B3:B6).

Drawing Chart:

• Highlight the cells containing the data you want to represent in the bar chart.
• Go to the "Insert" tab on the Excel ribbon.
• In the Charts group, select "Bar Chart."
• Choose the specific chart type you want.
• Once you’ve completed your document. Save it against your roll no (e.g,2224614.docx)
PUNJAB GROUP OF COLLEGES RAWALPINDI

Section # 2
C Language

Question#3: Write a program that takes 5 input from user and Sum all of them.

Program
#incude<stdio.h>

void main() {

int a1, a2, a3, a4, a5, sum;

printf(“Enter five numbers separated by spaces”);

scanf(“%d%d%d%d%d”,&a1, &a2, &a3, &a4, &a5);

sum= a1+a2+a3+a4+a5;

printf(“Sum of numbers is:%d”,sum);

Question#4: Write a program that displays,8,9,10,11 using for loop.

Program
#include <stdio.h>

void main()

for (int i = 8; i <= 11; i++)

printf("%d ", i);

}
PUNJAB GROUP OF COLLEGES RAWALPINDI

Question#5: Write a program that takes 4 digits input and displays minimum number
on screen.

Program
#include <stdio.h>

#include <conio.h>

void main()

int a1, a2, a3, a4, min;

printf("Enter the four digits: ");

scanf("%d %d %d %d ", &a1, &a2, &a3, &a4);

min = a1;

if (a2 < min)

min = a2;

if (a3 < min)

min = a3;

if (a4 < min)

min = a4;

printf("The minimum number is: %d\n", min);

Good Luck

You might also like