P2Pprogrammer 2 programmer


Home > Download > SMU - Question Paper > MSc IT > MT0045

JAVA


This is the collection of Sikkim Manipal University (SMU) question and answers for JAVA. 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 2024, 2023, 2022 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, SMU - Master of Science in Information Technology.

Course Name        MSc IT (Master of Science in Information Technology)

Subject Code       MT0045 (JAVA)

Get Questions        PART - A    PART - B    PART - C

Subject : JAVA

     MT0045 : PART - B    


Q. 1What is the result of the expression ( 1 & 2
) +( 3 l 4)
 A)1
 B)2
 C)7
 D)8
   
Q. 2Given tile following code fragment with
break to a labeled statement. Predict print
output.
int i,j;
Lab:
For(i=0;i<6;i++)}
For(j=5;j>2;j--){
If(i==j){
System.out.print(j+” “);
Break lab;
}
}
}
 A)Output will be 543
 B)Output will be 345
 C)Output will be 3 4
 D)Output will be 3
   
Q. 3Given the following- code:
class Base { int x= 10; }
class Derived extends Base {int x = 20;}
Base b = new Base();
Derived d = new Derived();
Base bd = new Derived();
The statement
Systerw.out.printIn(b.x +” “ + d.x +” “ +
 A)10 20 20
 B)10 20 10
 C)20 10 20
 D)20 20 10
   
Q. 4How many String objects are created in the
following code?
String S 1, S2, S3;
S1 ="1234";
S2 = S1;
S3 = S1+S2;
 A)1
 B)2
 C)3
 D)4
   
Q. 5A method to compute the sum of all
elements in an array of 'int' is needed. The
following proposed method is incomplete; select
the correct statement for line 3 from the
options provided.
1. public int total(int x[]) {
2. int i, t
 A)for(int i=0;
 B)for(i=0;
 C)for (i=0;
 D)for ((int i=0;
   
Click here to get JAVA (MT0045) New Question


Home > Download > SMU - Question Paper > MSc IT > MT0045