Computer Science BS 3 Semester/Term PU — University of the Punjab 2019
Discussion
Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.
No questions yet — be the first to ask.
Need Paper?
See all →
Need a paper or stuck on a question? Ask here — students reply and you get an email.
Ask about a paper-
2025 ka past paper dy
0 replies Reply → -
ICT 1st sister paper
1 reply Reply → -
BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…
0 replies Reply → -
Civics course code GCCE101
1 reply Reply → -
BS 4the semester2025 civics and community engagement past paper According UOs
0 replies Reply →
Ad
Paper text
UNIVERSITY OF THE PUNJAB
Third Semester - 2019
Examination: B.S. 4 Years Program
PAPER: Computer Science-I
Course Code: COMP-211/IT-21335 Part-I (Compulsory)
MAX. TIME: 15 Min.
MAX. MARKS: 10
Attempt this Paper on this Question Sheet only.
Please encircle the correct option. Division of marks is given in front of each question.
This Paper will be collected back after expiry of time limit mentioned above.
Q.1. Encircle the right answer, cutting and overwriting is not allowed. (1x10=10)
i. Which one of the following is not used for sending an online message?
(a) facebook (b) skype (c) gmail (d) google
ii. Decimal number 74 has its equivalent binary that is equal to:
(a) 111111 (b) 1010101 (c) 1000101 (d) none
iii. For A = pi r*r; which of the following is true in C++:
(a) Your variable: A (b) Your variables: A, r (c) Your variables: A, r, pi (d)
your variables: true
iv. Which of the following is true for a variable name to calculate sum of two numbers
(a) sum (b) sum(a, b) (c) sum = a + b (d) both b and c
v. if a = 4; and b= 5; then which of the following is true for a++; and ++b ;
(a) a is 4, b is 5 (b) a is 5, b is 5 (c) a is 4, b is 6 (d) a is 5, b is 6
vi. The file extension of a presentation program is:
(a) .ppt (b) .txt (c) .pdf (d) .doc
vii. In case of while loop, it is:
(a) fixed iterations loop (b) condition control loop (c) easy loop (d) incremental
viii. if k=9, then k++ will give:
a) 9 (b) 10 (c) 11 (d) 12
ix. you can run C++ in:
(a) mobile (b) computer (c) laptop (d) both b and c
x. for int a = 2.9; cout<