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 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, 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. 1 | How 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. 2 | What output will the following program produce? class Bits{ public static void main(Strinargs[J){ short s1 = 3; short s2 = 13; short s3 = (short)(sl ^ s2); system.out.println("Result : “+s3) } } |
| A) | Result: 10 |
| B) | Result : 14 | | C) | Result : 15 | | D) | Result: 16 | | | | Q. 3 | If m and n are int type variables, what will be result of the expression ‘m%n%’ when m= 14 and n =-3 |
| A) | -2 |
| B) | 2 | | C) | -3 | | D) | Error | | | | Q. 4 | What is the result of the expression ( 1 & 2 ) +( 3 l 4) |
| A) | 1 |
| B) | 2 | | C) | 7 | | D) | 8 | | | | Q. 5 | Given 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 | | | |
Click here to get
JAVA (MT0045)
New Question
Home > Download > SMU - Question Paper
> MSc IT > MT0045