[BCA-103] INTRODUCTION TO PROGRAMMING [2013-14]

Submitted by Anonymous (not verified) on Mon, 12/23/2013 - 00:05

 

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--};

Comments

Related Items