WBUT 2012 OBJECT ORIENTED PROGRAMMING AND UML [IT-401] Question Paper

Submitted by Anonymous (not verified) on Wed, 03/12/2014 - 11:59

 

CS/B.TECH (IT-New)/SEM-4/IT-401/2012

2012

OBJECT ORIENTED PROGRAMMING AND UML

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 any ten of the following:
                                                                                               10 x 1 = 10

          i)        What happens when the following program is compiled and            executed with the command?

                   class Demo
          {

              Public static void main (String args[])

              {

                   if(args.length>0)

                   System.out.println(args.length);

              }

          }

                   a)       The program compiles and runs but does not print                           anything

                   b)       The program compiles and runs and prints 0

                   c)       The program compiles and runs and prints 1

                   d)       The program compiles and runs and prints 2

Comments

Related Items