P2Pprogrammer 2 programmer

Home > Download > SMU - Question Paper > BCA > BC0047

Java Programming


This is the collection of Sikkim Manipal University (SMU) question and answers for Java Programming. It will help to prepare your examination. All question paper are classified as per semester, subject code and question type of Part A, Part B and Part C with multiple choice options as same as actual examination. SMU question papers includes year 2025, 2024, 2023 Sem I, II, III, IV, V, VI examinations of all subjects.

SMU question test set of old, last and previous year are updated regularly and it is absolutely free to use. Question paper includes Visual basic 6, VB.Net, C#, ASP.Net, Web, Oracle, Database, SQL, Software Engineering, C, C++, OOPS, MBA, MCA, BSC IT I have requested you kindly send me the question paper of Java Programming, SMU - Bachelor of Computer Application.

Course Name        BCA (Bachelor of Computer Application)

Subject Code       BC0047 (Java Programming)

Get Questions        PART - A    PART - B    PART - C

Subject : Java Programming

     BC0047 : PART - C    


Q. 1The Fruit class declares the following
method to return
a float value calculated from a size of a fruit.
public float calories (float serving)
A junior programmer writing the Apple class,
which extends Fruit, proposes to declare the
 A)It won't compile because of the different return type
 B)It won't compile because of the different name in the parameter list
 C)It will compile but will be incompatible with other use of the method, because you can't cast the double return type to float
 D)It will compile and be compatible with other uses of the calories method
   
Q. 231. Select correct Syntaxes
1. for (initialization; test condition; modifier
expression;)
2. for (initialization1, initialization2;
test conditon1, test condition2;
modifier1, modifier2)
{ body of the loop};
3. while (test cond
 A)1
 B)1 and 2
 C)2, 3
 D)All the above
   
Q. 3Trying to compile the following source
code produces a compiler warning to the effect
that the variable 'tmp' may not have been
initialised.
1. class Demo {
2. public static void main (String args[])
3. int n = -10;
4. String t
 A)Make line 4 read, String tmp=null;
 B)Make line 4 read String tmp="";
 C)Insert a line following line 5, else tmp="not Positive";
 D)All of these changes will eliminate the warning
   
Q. 4In the following code for a class in which
'method' has an inner class, which variables
would the statement in
line 8 be unable to use in place of XXX?
public class Base {
static int aaa=3;
Strin bbb = "Java";
public void metho
 A)aaa
 B)bbb
 C)ccc
 D)ddd
   
Q. 5You are writing a set of classes related
to Marks Report and have created your own
exception hierarchy derived from
java.lang.Exception as follows:
java.lang.Exception
+-- MarksException
+--OutOfRangeException
Your custom excep
 A)new OutOfRangeException ("Marks is not in the Range");
 B)throws new OutOfRangeException ("Marks is not in the Range");
 C)throw new OutOfRangeExcep tion ("Marks is not in the Range");
 D)throw OutOfRangeException ("Marks is not in the Range");
   
Click here to get Java Programming (BC0047) New Question


Home > Download > SMU - Question Paper > BCA > BC0047