Exam Details
Subject | java programming | |
Paper | ||
Exam / Course | m.sc. computer science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | November, 2016 | |
City, State | maharashtra, solapur |
Question Paper
Master of Science I (Computer Science) Examination:
Oct Nov 2016 Semester II (Old CGPA)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR SC
312
Thursday
17/11/2016
10:30 AM
to
01:00 PM
Java Programming
C
V
Instructions: Q.No.1 and 2 are compulsory.
Answer any three questions from Q.No.3 to Q.No.7.
All questions carry equal marks.
Total Marks: 70
Q.1 Select correct alternatives: 10
Which of the operators have the lowest precedence in Java Operators?
Parentheses i.e.[ Conditional i.e.
Unary operators i.e. Assignment Operator i.e.
is used for input of multiline text.
Scrollbar Text Field
Label Text Area
Each object of the class has its own copy
Static variable Instance variables
Class variables Local variables
What is the output of the following program?
public class test
public static void main (String arg
int
for
System.out.print(j);
6 8
7 13
An applet is said to be dead when it is removed from memory. This
occurs automatically by invoking the method.
stop destroy
init paint
Page 2 of 3
What is the output when you compile and run the following code?
public class test
public static void main (string[ ]args)
boolean
int
System.out println
0 1
NaN Compiler error
A package is a collection of
keyword classes and interfaces
editing tools views
An exception is an condition that arises in a code.
abnormal casual
unfortunate opposite
Java programs perform I/O through
i/o methods i/o package
streams compiler
10) is the mechanism that binds together the code and the data.
Polymorphism Encapsulation
Inheritance Together
State True or false: 04
A compound statement is a statement involving only if and else.
Every method of a final class is implicitly final
The static keyword denotes that a member variable or method can be
accessed, without requiring an instantiation of the class to which it
belongs.
Different constructors can be created for a single class.
Q.2
Write short notes on the following: 08
Class FileWriter
ii) ResultSet class
ii)
Answer the following: 06
How you can force the garbage collection?
ii) What's the difference between constructors and normal methods?
Page 3 of 3
0
Q.3 Answer the following:
Write the syntax and purpose of any five methods of String class. 07
Write a program to print out all Armstrong numbers between 1 and 500. If
sum of cubes of each digit of the number is equal to the number itself, then
the number is called an Armstrong number. For example,
153 1 5 3 3
07
Q.4 Answer the following:
What is package? State the salient features of packages. 08
What is automatic or implicit type conversion? What is widening primitive
conversion and narrowing primitive conversion?
06
Q.5 Answer the following:
State various types of iteration statements in Java. 07
Describe exception handling in Java. 07
Q.6 Answer the following:
What is the use of combo-box? Explain how combo-boxes behave during
run-time. Describe how combo-box is put on a frame. Explain how an event
generated by a combo-box is handled.
07
Explain various kinds of Streams. 07
Q.7 Answer the following:
State the purpose of the following JDBC classes and interfacesi)
Driver manager ii) Connection iii) Statement
06
Explain how to create a new thread using the class Thread with suitable
example.
Oct Nov 2016 Semester II (Old CGPA)
SLR No. Day
Date Time Subject Name Paper
No. Seat No.
SLR SC
312
Thursday
17/11/2016
10:30 AM
to
01:00 PM
Java Programming
C
V
Instructions: Q.No.1 and 2 are compulsory.
Answer any three questions from Q.No.3 to Q.No.7.
All questions carry equal marks.
Total Marks: 70
Q.1 Select correct alternatives: 10
Which of the operators have the lowest precedence in Java Operators?
Parentheses i.e.[ Conditional i.e.
Unary operators i.e. Assignment Operator i.e.
is used for input of multiline text.
Scrollbar Text Field
Label Text Area
Each object of the class has its own copy
Static variable Instance variables
Class variables Local variables
What is the output of the following program?
public class test
public static void main (String arg
int
for
System.out.print(j);
6 8
7 13
An applet is said to be dead when it is removed from memory. This
occurs automatically by invoking the method.
stop destroy
init paint
Page 2 of 3
What is the output when you compile and run the following code?
public class test
public static void main (string[ ]args)
boolean
int
System.out println
0 1
NaN Compiler error
A package is a collection of
keyword classes and interfaces
editing tools views
An exception is an condition that arises in a code.
abnormal casual
unfortunate opposite
Java programs perform I/O through
i/o methods i/o package
streams compiler
10) is the mechanism that binds together the code and the data.
Polymorphism Encapsulation
Inheritance Together
State True or false: 04
A compound statement is a statement involving only if and else.
Every method of a final class is implicitly final
The static keyword denotes that a member variable or method can be
accessed, without requiring an instantiation of the class to which it
belongs.
Different constructors can be created for a single class.
Q.2
Write short notes on the following: 08
Class FileWriter
ii) ResultSet class
ii)
Answer the following: 06
How you can force the garbage collection?
ii) What's the difference between constructors and normal methods?
Page 3 of 3
0
Q.3 Answer the following:
Write the syntax and purpose of any five methods of String class. 07
Write a program to print out all Armstrong numbers between 1 and 500. If
sum of cubes of each digit of the number is equal to the number itself, then
the number is called an Armstrong number. For example,
153 1 5 3 3
07
Q.4 Answer the following:
What is package? State the salient features of packages. 08
What is automatic or implicit type conversion? What is widening primitive
conversion and narrowing primitive conversion?
06
Q.5 Answer the following:
State various types of iteration statements in Java. 07
Describe exception handling in Java. 07
Q.6 Answer the following:
What is the use of combo-box? Explain how combo-boxes behave during
run-time. Describe how combo-box is put on a frame. Explain how an event
generated by a combo-box is handled.
07
Explain various kinds of Streams. 07
Q.7 Answer the following:
State the purpose of the following JDBC classes and interfacesi)
Driver manager ii) Connection iii) Statement
06
Explain how to create a new thread using the class Thread with suitable
example.
Other Question Papers
Subjects
- .net technology
- artifical intelligence
- computer communication network
- data mining and warehouse
- data structures
- dbms
- digital image processing
- distributed operating system
- finite automata
- internet of things
- java programming
- linux operating system (oet)
- mobile computing
- network security
- numerical analysis
- object oriented programming using c++
- office automation (oet)
- operating system
- operations research
- soft computing
- software engineering
- software testing
- uml