WBUT Question Paper 2013 of INTRODUCTION TO JAVA PROGRAMMING (CS/B.Tech/(TT-NEW)/SEM-6/TT-605B/2013)

Submitted by Anonymous (not verified) on Thu, 08/07/2014 - 10:36

CS/B.Tech/(TT-NEW)/SEM-6/TT-605B/2013

2013

INTRODUCTION TO JAVA 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 Questions )

1. Choose the correct alternatives for any ten of the following :

10 × 1 = 10

i) What is byte code in the context of Java ?

a) The type of code generated by a Java compiler

b) The type of code generated by a Java Virtual

Machine

c) It is another name for a Java source file

d) It is the code written within the instance methods

of a class.

ii) Consider

public class MyClass {

public MyClass() {/∗code∗/}

//more code...

}

To instantiate MyClass, you would write ?

a) MyClass mc = new MyClass()'

b) MeClass mc = MyClass();

c) MyClass mc = MyClass;

d) MyClass mc = new MyClass.

iii) What is different between a Java applet and a Java

application ?

Comments

Related Items