Solapur University Question Paper
P.G.D.C.A. (Semester – II) Examination, 2014
(Paper – IX) : JAVA PROGRAMMING (New)
Day and Date : Friday, 9-5-2014 Max. Marks : 80
Time : 3.00 p.m. to 6.00 p.m.
Instructions :1) Q. No. 1 and Q. No. 7 are compulsory.
2) Attempt any two questions from Q. No. 2, 3 and 4.
3) Attempt any one question from Q. No. 5 and 6.
4) Figures to the right indicate full marks.
1. Choose correct alternatives : 16
1) Java source code is compiled into ______________
a) .obj b) .exe c) source code d) byte code
2) Which of the tool is used to compile the java code ?
a) javadoc b) java c) javac d) jar
3) Which of the following tool is used to execute java code ?
a) java b) javac c) javadoc d) rmic
4) JVM is platform independent
a) True b) False
5) JAR stands for
a) Java Archive b) Java Archive Runner
c) Java Application Runner d) None of the above
6) Is the following way of commenting correct in Java ?
/* My Comment 1
/* Comment 2*/
*/
a) True b) False
SLR-R – 14 -2-
7) _______________ is a name given to a variable, class or method.
a) Constant b) Reference c) Identifier d) Modifier
8) Who is considered as the creator of JAVA ?
a) James Gosling b) Dennis Ritchie
c) Ken Thompson d) Bjarne
9) Which of the following statements about the Java language is true ?
a) Java supports only procedural approach towards programming
b) Both procedural and object oriented programming are supported
c) Java support only object oriented programming approach
d) None of the above
10) Java is an enhanced version of C++
a) True b) False
11) JVM stands for
a) Java Virtual Machine b) Java Verified Machine
c) Java Very Large Machine d) All of the above
12) JRE stands for
a) Java Real Environment b) Java Rapid Enterprise
c) Java Runtime Environment d) None of the above
13) What is the extension of java byte codes ?
a) .java b) .class c) .obj d) none of the above
14) What is the command to execute a java program ? (Let the file name be
myprogram .java)
a) java myprogram .java b) javac myprogram
c) java myprogram.class d) java myprogram
15) Garbage collection takes place automatically in JVM.
a) True b) False
16) Keywords and identifiers are same
a) True b) False
-3- SLR-R – 14
2. a) What is Object Oriented Programming ? Explain objects and classes in Java. 8
b) What is variable ? Explain data types in Java. 8
3. a) Explain This and Super keyword with suitable example. 8
b) Explain looping statement with suitable example. 8
4. a) Write a program to make addition, subtraction, multiplication of two numbers. 8
b) Write a program to print factorial of given number. 8
5. a) Write a note on exception handling. 8
b) Write a program to input any 5 values of one dimensional array and print
reverse order. 8
6. a) What is an Applet ? Explain life cycle of Applet. 8
b) What is thread ? Explain thread life cycle. 8
7. Write short notes on the following : 16
a) JDBC
b) Input and Output stream
c) JButton
d) If-else statement.
–––––––––––––––––
P.G.D.C.A. (Semester – II) Examination, 2014
(Paper – IX) : JAVA PROGRAMMING (New)
Day and Date : Friday, 9-5-2014 Max. Marks : 80
Time : 3.00 p.m. to 6.00 p.m.
Instructions :1) Q. No. 1 and Q. No. 7 are compulsory.
2) Attempt any two questions from Q. No. 2, 3 and 4.
3) Attempt any one question from Q. No. 5 and 6.
4) Figures to the right indicate full marks.
1. Choose correct alternatives : 16
1) Java source code is compiled into ______________
a) .obj b) .exe c) source code d) byte code
2) Which of the tool is used to compile the java code ?
a) javadoc b) java c) javac d) jar
3) Which of the following tool is used to execute java code ?
a) java b) javac c) javadoc d) rmic
4) JVM is platform independent
a) True b) False
5) JAR stands for
a) Java Archive b) Java Archive Runner
c) Java Application Runner d) None of the above
6) Is the following way of commenting correct in Java ?
/* My Comment 1
/* Comment 2*/
*/
a) True b) False
SLR-R – 14 -2-
7) _______________ is a name given to a variable, class or method.
a) Constant b) Reference c) Identifier d) Modifier
8) Who is considered as the creator of JAVA ?
a) James Gosling b) Dennis Ritchie
c) Ken Thompson d) Bjarne
9) Which of the following statements about the Java language is true ?
a) Java supports only procedural approach towards programming
b) Both procedural and object oriented programming are supported
c) Java support only object oriented programming approach
d) None of the above
10) Java is an enhanced version of C++
a) True b) False
11) JVM stands for
a) Java Virtual Machine b) Java Verified Machine
c) Java Very Large Machine d) All of the above
12) JRE stands for
a) Java Real Environment b) Java Rapid Enterprise
c) Java Runtime Environment d) None of the above
13) What is the extension of java byte codes ?
a) .java b) .class c) .obj d) none of the above
14) What is the command to execute a java program ? (Let the file name be
myprogram .java)
a) java myprogram .java b) javac myprogram
c) java myprogram.class d) java myprogram
15) Garbage collection takes place automatically in JVM.
a) True b) False
16) Keywords and identifiers are same
a) True b) False
-3- SLR-R – 14
2. a) What is Object Oriented Programming ? Explain objects and classes in Java. 8
b) What is variable ? Explain data types in Java. 8
3. a) Explain This and Super keyword with suitable example. 8
b) Explain looping statement with suitable example. 8
4. a) Write a program to make addition, subtraction, multiplication of two numbers. 8
b) Write a program to print factorial of given number. 8
5. a) Write a note on exception handling. 8
b) Write a program to input any 5 values of one dimensional array and print
reverse order. 8
6. a) What is an Applet ? Explain life cycle of Applet. 8
b) What is thread ? Explain thread life cycle. 8
7. Write short notes on the following : 16
a) JDBC
b) Input and Output stream
c) JButton
d) If-else statement.
–––––––––––––––––
0 comments:
Pen down your valuable important comments below