0 ratings0% found this document useful (0 votes) 73 views8 pagesCore Java Questions For Semester Exam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
PULUdUUUELOOUU ECU UE TEE EEK
vou
Total Pages : 4 Roll No. «...-+
Serial No. : 2600
BCA 4" Semester
1126
BCA-401 Core Java
(from the sess. 2015-16)
Time allowed : 3 Hours Maximum Marks : 60
Note : Attempt five quetsions in all. Question 1 is
compulaory. Attempt four more questions selecting at
least one question from each section. All questions
carry equal marks.
1. @) Explain conditional operators.
i) Define AWT controls.
2600/20 PIO.(ii) What are inner classes ?
(iv) Differentiate between local applet and remote applet.
(vy) Describe the arguments used in method drawOval().
(vi) Differentiate between throw and throws. 2*6=12
SECTION-A
2. (a) What is Java Virtual Machine ? Explain the process
of compilation and bytecode conversion in Java.
6+6
(b) Differentiate between JAVA and C+.
2600/20 2
PHAAHRHHOHHOANNANNRARDA DR De emer nr nr mrnne 2Explain decision control statements used in java. Write a
Program to find whether a number is even or odd using If
Else statement, 12
4. Explain the concept of method overloading with suitable
example. 12
SECTION-B
5. Illustrate the concept of multiple catch blocks in exception
handling with suitable example. 12
5. Explain the following 646
@ Lifecycle of an applet
2600/20 3 PTO.
fe)(ii) How applets are different from applications ?
SECTION-C
7. Explain AWT controls. Write an applet to display an oval.
12
8. Write notes on : 6+6
@ Event listener interface
Gi) Event adapter classes
2600/20
PPPP ORIOL EERO REEL ERARAEIEVIEEESJsvvIVsvVvVwvVvuUuWVVUUUUUYVMUYVMOVMYNUVvOOCCOTCTreL
Total Pages : 4 ROLL NO. ssssssessssssseeensssneeesecenents
Serial No. : 2656
BCA 6" Semester
1116
BCA-601 Java Programming
(From the Session 2013-14)
Time allowed : 3 Hours Maximum Marks : 60
Note : Q. No. 1 is compulsory. Attempt four questions from
section A, B and C by selecting at least one question
from each section. All questions carry equal marks.
1. (a) Write various data types used in Java 2
(b) What is the use of Keyword Super ?
(c) How many types of parameters are passed to an
applet ?
2656/20 PTO.(d) Whatis an Exception ?
(©) What is an adapter class ?
(@® What is AWT ?
SECTION-A
2. (a) Write impact of access specifiers public, private and
protected on packages in java.
(b) State the necessity of StringBuffer class & write the
use of (1) setCharAt() (2) append() methods.
3. (a) Write in detail the various features of Java.
2656/20 2
Beane a ae & «xX 2 ws 2b) is
(b) What is constructor ? How it is implemented in Java?
Explain,
Explain the concept of Classes, Objects and Methods in
JAVA. Also write a program to explain the concept of
Overriding Methods with reference to classes.
SECTION-B
5. What is Applet ? How Applet are executed in a Web
Page ? Explain with the help of example.
6. What is an Exception ? How it is handled in a program ?
Write a program to handle an exception having multiple
catch clauses.
§(0b405606000000066666600000000%
b
2656/20 3 PTO.
,SECTION-C
7. What is an Event ? How it is handled ? Discuss various
Mouse and Keyboard events that are handled in java.
8. (a) Write syntax and use of following methods :
(1) drawString()
(2) drawOval(,
(3) drawRect()
(4) drawPolygon()
(b) Write a short note on the following :
@ AWT Controls
Gi) Layout Managers
2656/20 4
Mla
Roi