Home > Download > SMU - Question Paper
> MCA > MC0078
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 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 Programming, SMU - Master of Computer Application.
Course Name
MCA (Master of Computer Application)
Subject Code MC0078 (Java Programming)
Get Questions
PART - A
PART - B
PART - C
Subject : Java Programming
MC0078 : PART - C
Q. 1 | Assume that the following program has been compiled and Radio.class file is in the current directory. class Radio { public static void main(String args[j) { int n = 0; System.out.println ("The ray is "+args[++n]); } } < |
| A) | Radio alpha beta gamma |
| B) | java Radio gamma beta | | C) | java Radio alpha gamma | | D) | java Radio.class beta gamma | | | | Q. 2 | The 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. 3 | Given the following method that will be called with various input values: public void soundOff(int x){ switch(x){ case 1: System.out.print("One”) case 2: System.out.print(“Two”) break; case 3: Systern.out.print("Three "); defau |
| A) | Input = 0, Output = "Zero" |
| B) | Input = 1, Output = "One" | | C) | Input = 2, Output ~ "One Two" | | D) | Input = 3, Output = "Three Do What?" | | | | Q. 4 | 31. 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. 5 | In 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 | | | |
Click here to get
Java Programming (MC0078)
New Question
Home > Download > SMU - Question Paper
> MCA > MC0078