You are on page 1of 2

Computer Studies – XII CAREER COACHING CENTRE

Manual of computer studies – XII from Board Of Secondary Education Karachi (2007-08)

C-LANGUAGE
1. Write a program, which prints a Text of four lines consisting of characters, integer
values and floating point values using printf statement. Taking input from the
keyboard using scanf statement.

2. Write a program that reads and prints the data using Escape sequence, (asking the
name, age, height and gender of a student).

3. Write a program, which uses arithmetical operators to calculate the area of a triangle,
volume of a sphere, etc.

4. Write a program to generate the multiplication table ranging from 2 to 10.

5. Write a program, which uses “while” loop and nested while loop, (use “for” loop and
continue the process in “While” satisfying the given condition).

6. Write a program, to compute factorial of a number n. which is greater than 8.

7. Generate series of prime nos (1 to 30)

8. Write a program, which uses a switch and break statements.

9. Write a program, to compute root of a quadratic equation, ax2+bx+c=o using the
quadratic formula.

10. Write a program that calculate square root without using sqrt ( ) function of a given
no.

11. Write a. Program that calculate power of base without using power function by taking
input both.

12. Write a program using for loop to print following output.
1 1 2 4 3 9 4 16 5 25 6 36 7
49 8 64 9 81 10 100

13. Write a program using for loop to print usual printing characters corresponding to 32
to 127 ASCII code.

14. Write a program using for loop to print table of n till m.
e.g. table of 2 till 8 means table of 2 still 2 x 8 = 16. Print output in the format 2 x 1 = 2

SAIYED SHAHAB AHMAD Dept. Of Computer Science
Computer Studies – XII CAREER COACHING CENTRE

15. Write a program using nested for loop to print the following pattern.

*
**
***
****
*****

DATABASE
MS access:

1. Create a database in MS Access of bank Account.

Create two tables and create relationship between tables.
(i) Required fields of 1st table are;
Acct_ID, Acct_Name, Acct_Address, Acct_phone, Acct_Email,
(ii) Required fields of 2nd table are;
Acct_ID, Acct_status.
(iii) Search the desired Acct_ID, Delete the desired Acct_ID also update desired
Acct_ID.

2. Crate a database in MS Access of Student Attendance.
Create two tables and create relationship between tables.
(i) Required fields of 1st table are;
Stud_ID, Stud_Name, Stud_Address, Stud_phone, Stud_Email.
(ii) Requred fields of 2nd table are;
(iii) Search the desired Stud_ID, Delete the desired Stude_ID also Update desired
Stud_ID.

Compiled By

SAIYED SHAHAB AHMAD
BS – CS (U.O.K)
Software Engineer
PIXSENSE, Pakistan

SAIYED SHAHAB AHMAD Dept. Of Computer Science