WBUT 2013 Introduction to Programming Question Paper ( Paper Code: BCA-103 )

Question Paper for Bachelor in Computer Application

CS/BCA/SEM-1/BCA-103/2013-14

2013

INTRODUCTION TO PROGRAMMING

Time Allotted : 3 Hours Full Marks : 70

The figures in the margin indicate full marks.

Candidates are required to give their answers in their own words

as far as practicable.

GROUP – A

(Multiple Choice Type Question)

1. Choose the correct alternatives for the following: 10 x 1 = 10

i) Which of the following is a valid typecast?

a) To(int, x) b)  x(int)

c) (int)x d)  (integer)x.

ii) How many times is a do while loop guaranteed to loop?

a) 0 b)  1

c) Infinite d)  Variable

iii) Which of the following operators represent logical AND?

a) & b) AND

c) && d)  ||

iv) Which of the following characters ends all string?

a) ‘\n’ b)  ‘\t’

c) ‘\s’ d)  ‘\0’

v) Which of the following is a complete function?

a) int fn(int a){return a-;}

b) int fn();

c) int fn(int a){return a-}

d) int fn(int a){return a-};