Exam Details
Subject | java programming | |
Paper | ||
Exam / Course | m.sc. computer science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | October, 2018 | |
City, State | maharashtra, solapur |
Question Paper
M.Sc. (Semester II) (CBCS) Examination Nov/Dec-2018
Computer Science
JAVA PROGRAMMING
Time: 2½ Hours Max. Marks: 70
Instructions: Question No.1 and 2 are compulsory.
Attempt any 3 questions from Q. no.3 to Q. no.7.
Figures to the right indicate full marks.
Q.1 Choose correct alternatives. 10
When Java source code is each individual class is put into
its own output file named after the class and using the .class extension.
Executed Interpreted
Compiled Written
comment begins with a (double slash) and ends at the
end of the line.
Multiline End of line
Single line New line
Boolean group include boolean, which is as special type for representing
values.
integer character
true/false number
is a special that allocates memory.
Symbol Expression
Operator Control
The statement is used inside the switch to terminate a statement
sequence.
label break
continue case
The do while loop always executes its body at least because its
conditional expression is at the bottom of the loop.
twice once
none many
is being used, the programs must specify the throws
java.io.IOException clause.
System.in.Read() System.in.read()
system.in.read() System.In.Read()
When a member of a class is specified as then that
member can only be accessed by other members of its class.
protected public
private none of these
refers to the standard error stream, which also is the
console by default.
System.err System.error
Sysem.out.err System.in.err
Page 2 of 2
SLR-VG-214
10) A method that unregisters a keyboard event listener is called
removedKeylistener() removeKeyListenerType()
removeKeyListener() removeTypedKeyListener()
State True or False. 04
isAlive method is used to allow wait for a thread to terminate.
PipedWriter class is used to create Output stream that contains print()
and println()
The method that receive and process events are defined in set of
interfaces found in java.io.event.
Panel is a window that does not contain a title bar, menu bar, or border.
Q.2 Write a short note. 08
Final class
Interface
Answer the following. 06
What do you mean by StringBuffer?
State the usage of right shift operator.
Q.3 Answer the following. 14
State the meaning of array. Explain in detail one dimensional array with
suitable example.
What do you mean by Inheritance? Discuss types of Inheritance with
suitable example.
Q.4 Answer the following. 14
What is JDBC API? Demonstrate program to obtain the records from the
table created in the database with suitable example.
Enlist built in exception. Discuss in detail how to create your own exception.
Q.5 Answer the following. 14
What do you mean by Event Class? Write a program to demonstrate
MouseListener with suitable example.
Define the term Multi-threading? Discuss in detail how Java's multithreading
system is built upon the Thread class.
Q.6 Answer the following. 14
Discuss in detail how to add and handle Text editing AWT control with
suitable example?
Define the term Class and Objects. Discuss the concept of Constructor with
suitable example.
Q.7 Answer the following. 14
What do you mean by abstract class? Explain in detail process of defining
and execution package with abstract class to be extended by another class
being part of same package.
Define the term Byte and Character stream? Explain a process for reading
and writing from console and files with suitable example.
Computer Science
JAVA PROGRAMMING
Time: 2½ Hours Max. Marks: 70
Instructions: Question No.1 and 2 are compulsory.
Attempt any 3 questions from Q. no.3 to Q. no.7.
Figures to the right indicate full marks.
Q.1 Choose correct alternatives. 10
When Java source code is each individual class is put into
its own output file named after the class and using the .class extension.
Executed Interpreted
Compiled Written
comment begins with a (double slash) and ends at the
end of the line.
Multiline End of line
Single line New line
Boolean group include boolean, which is as special type for representing
values.
integer character
true/false number
is a special that allocates memory.
Symbol Expression
Operator Control
The statement is used inside the switch to terminate a statement
sequence.
label break
continue case
The do while loop always executes its body at least because its
conditional expression is at the bottom of the loop.
twice once
none many
is being used, the programs must specify the throws
java.io.IOException clause.
System.in.Read() System.in.read()
system.in.read() System.In.Read()
When a member of a class is specified as then that
member can only be accessed by other members of its class.
protected public
private none of these
refers to the standard error stream, which also is the
console by default.
System.err System.error
Sysem.out.err System.in.err
Page 2 of 2
SLR-VG-214
10) A method that unregisters a keyboard event listener is called
removedKeylistener() removeKeyListenerType()
removeKeyListener() removeTypedKeyListener()
State True or False. 04
isAlive method is used to allow wait for a thread to terminate.
PipedWriter class is used to create Output stream that contains print()
and println()
The method that receive and process events are defined in set of
interfaces found in java.io.event.
Panel is a window that does not contain a title bar, menu bar, or border.
Q.2 Write a short note. 08
Final class
Interface
Answer the following. 06
What do you mean by StringBuffer?
State the usage of right shift operator.
Q.3 Answer the following. 14
State the meaning of array. Explain in detail one dimensional array with
suitable example.
What do you mean by Inheritance? Discuss types of Inheritance with
suitable example.
Q.4 Answer the following. 14
What is JDBC API? Demonstrate program to obtain the records from the
table created in the database with suitable example.
Enlist built in exception. Discuss in detail how to create your own exception.
Q.5 Answer the following. 14
What do you mean by Event Class? Write a program to demonstrate
MouseListener with suitable example.
Define the term Multi-threading? Discuss in detail how Java's multithreading
system is built upon the Thread class.
Q.6 Answer the following. 14
Discuss in detail how to add and handle Text editing AWT control with
suitable example?
Define the term Class and Objects. Discuss the concept of Constructor with
suitable example.
Q.7 Answer the following. 14
What do you mean by abstract class? Explain in detail process of defining
and execution package with abstract class to be extended by another class
being part of same package.
Define the term Byte and Character stream? Explain a process for reading
and writing from console and files 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