BCS Lab Terminal (ICT)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

COMSATS University Islamabad

Sahiwal Campus
(CS)

Lab Terminal Examinations SP-2022

Q#1.Draw the following form using Microsoft word? [10]

Course Title: Introduction to ICT Course Code: CSC101 Credit Hours: 4


Course Aneeqa Khawar Programme BCS
Semester: 1st Batch: Section: D Date: 20/6/22
Time Allowed: 120 min Maximum Marks:50
Student’s Name: Reg. No. CIIT//SWL
Important Instructions / Guidelines:
Read the question paper carefully and answer the questions according to their statements.
Mobile phones are not allowed. Calculators must not have any data/equations etc. in their memory.

Page 1 of 3
Q#2. [15]

Name Se Attendance Assignment Mid Fina Total Grad Descriptio


x - l e n
term
Ali M 9 12 14 45 80

Seher M 13 11 12 34 70
Vickey M 8 8 12 26 54
Talha F 8 14 14 25 61
Sana M 12 12 14 40 78

1. By using function, determine the student grade based on the following rules:

Total score>=90 then grade A

90>Total score>=80 then grade B


80>Total score>=70 then then grade C
70>Total score>=60 then grade D
60>Total score>=50 then grade E
Else then grade F
2. By using function, display the word "Pass" or "Fail" under the Description column
Students who pass need to have total score greater than or equal to 60.

Q#3 Write a Python program to returns sum of all divisors of a number.


[10]
Q#4 Write a Python program to convert a binary number to decimal number.
[10]
Q#5 Viva.
[5]

Page 2 of 3
The End

Page 3 of 3

You might also like