0 ratings 0% found this document useful (0 votes) 18 views 4 pages Java
This document outlines the end term examination details for the MCA course in Java Programming at Mewar University, including the exam format, duration, and marks distribution. It contains a series of multiple-choice questions covering key concepts in Java, such as object-oriented programming, exception handling, threading, and JDBC. Additionally, it includes essay-type questions related to software development concepts and Java's history.
AI-enhanced title and description
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
Go to previous items Go to next items
SETI
MEWAR UNIVERSITY, CHITTORGARH
DEPARTMENT OF COMPUTER APPLICATIONS
END TERM EXAMINATION: DEC: 2024
COURSE: MCA
YEAR: 2" SEM: 3"
PAPER NAME & CODE: JAVA PROGRAMMING
‘TIME: 3:00 HRS
MAX MARKS: 85
ise
PART.
Note: Attempt all Questions. All Question Carry oneMarks(CO1 to COS)
Which of the following is a characteristic of Object-Oriented Programming
‘a. Procedural Programming Global Variables
BD trcapsulation
What is the purpose of a constructor in a class?
d,_ None of the above
a. A) Todestroy an object eC) To createa new cass
8) To initialize an object ) To overload methods
a 3) WNch of the following is an example of polymorph
LBYN) Method Overlossing
4 ®. B) Data Encapsulation
sed to inherit a lass?
© C)Inheritance
4. _D) Allof the above
4) In Java, which keyword is u
ie 2. A) implements inher
4. D) includes
if eicnerss
ty ‘a A)To declare exceptions
2 Bie ra hance
a Pe aes cade da aby(aexPar exten
ia Zo) define anew exention
4) wnat the foowinginteracesis sed for excetion hang?
1° w= N Runnable €) seiliable
8) Comparable @ pexeoton
1) What does the Fletnputstrea clas do?
¢. C) Manipulates file metadata
a. A) Writes data toa file
d, 0) Deletesa file
@& 8 Readsdata trom fle
8) What isa package in Java
'A) A collection of classes and c. C)Atype of variable
4. D)Amethod
interfaces
b. B) Asingle class
9) Which keyword is used to create a thread in Java?
@) A) thread c. C)new
Dj extends
8) RunnableJe executed by a thre
€ Clexecute()
4. 0) thread()
mented to define the cod
10) What method must be implem
a A)start()
B vy rnp
11) 4.Which method is used to start a thread?
& Chexecute()
Sa 4. 0) begin()
€)°s) start)
12} hich ofthe lowing isNOTa sate ofa thread? mites
2. A) New
Sleeping
b. 8) Runnable 0) Sleeping...
13) What does the ini! method do?
Waits for a thread tof
hse one Bowe og
8. 8) Terminates tread 4. 0) Suspends a thread
“4 14) Which of the following can be us tocreatea thread?
3. A) Extending the Thread class eee
8 Implementing the Runnable intertece 26; wig folowing
3°) sotha ana fs) cian
‘d. D} None of the above Lae se
15) 1 Which ofthe falloning sued to creat a bation in ea? 27) what methods
YN) iButon © C)Chckable ae
8) Button 4. D) ActionButton 7 eal
16) What component would you use to accept singlein text input f 28) What cass
rom a user? py uscelRe!
a. AlsTentarea On qn
8) TextField eee eee
17) which ote following canbe wed to spay imagen alot ag oe 2) wha oes 108682
applet Re itor Det
a. A) abel aie pane
ee inaea 1st race's
18) Which component slows users to select miile options? xo write
A) Radio Button cach, a. Ast
or ne
8) Check Bor Come, ae
19) In ava, which layout manager arranges components in a erid? 10x
31) Which meth
SEA ret
A) Blowtaye BV6Hib 4 eos
b. 8) Bordertayout © D)eoxaye c
20) What isthe default avout manager fra JPanel? Re
+32) what type of 8
ois FlowLayout © Grid.avoue ns
7 8) edge @. Obra ee
21) Whats te purpose othe setae a
, 2. A)Tocreste acomporane ai * ye ne
8) Tomate component vi ne
= ¢] Tobia component so
Toe component cor
22) Whe clit 0c down dg
ofthe’
A) Wind 234) which
a. A) Windowfinish
al
c. €)Container 4. 0)JPane!
Dy To creat buttons
au wmepgronentalowste mrtotes Ast of options?
Qn) combobox Ae O Sextfield
b 8) ust 4.) sButton
2s) what sa TabedPane?
a. A)Atypeof button
fb. aconane nat ation forthe vention
Zc nlayout manage
SLD) Atype ot pane
zw cn ae ra tunconltytoa component?
:
) A) sseroliPane cc. Q)viewport
2-8) sSerollBar d._D) Allof the above
27) what method is used tose the sizeof a Frame?
1) setdimensions) . QsetBoundsi)
8) setSize() d,_ D)setDimensions()
28) Wrst class is used for custom rendering of ce5 78 ust?
1) ListcellRenderer © ‘C\CellRenderer
be) hhistRenderer 4, D)CustomRenderer
29) What does JDBC stand for?
a. A) Java Database Connection c. €)Java Data Connection
3) Java Database Connectivity d._ D) Java DataBase Code
30) Which interface is used to establish a connection 0 database?
c. €) ResultSet
a) statement
@ Diovivertanager
bB) Connection
31) Which method is used to create 2 SQL statement object?
pene c. C)generatestatement()
FB) newstatement() 4d. Dy executestatement()
32) what type of abject does vexecuteuery() return?
a. A)Statement
Ax. 8) Connection
333) What is the purpose of pesultSetMetaData?
na) To manage database connection”
Yo provide information about = PCS and properties of th
T ¢) To execute SAL statements
4. b) To prepare Sat statements
oto cose a database connection?
cyResultset *
J.D) Preparedstatement
‘e columns in a ResultSet
33a) Which of the following Is useXe
closer)
|) closeConnection\) . D)end()
b. 8) disconnect()
je with JOBC?
‘exception is thrown when there is an issue wit
€. C) ClassNotFoundeyes
Ree, 4d. D) Databasetxceptigg
) SQLException
o PART 2 hing Scheme
a week in hours),
tion from each Section. Aj | Tutorial |“ Pre-fin
ote: Attempt Five Questions and at least one ques | j fret
ae sc Equal Marks. | |
Question Carry Equal Marks. | i
ion A[CO Poe
QI. What are the key object-oriented concept in java and how do they facilitate softwar
E
e
Unit Name
development?
no iE Seat [ey
ae Computing Client
Fundamentals Cae
Q2What is the history of java and what are is key milestone
‘Arshitex
Section BICO.2) a
concept of Inheritaice 2 ae
_AS Explain Basic concept of inheritance ? And Types of Inheritance With Program. 9
i
jntrastr
4 ate mao mating ond rt Og. ow do thy ae
EN a x : '8 tyes and keywords.
6 What are the concept of Mukithreading in jay,
: F ce NRW Ticladog titi nd synchronizatie IAstraction aM
‘ and synchroni traction a
Section DICO.4 few, Rurvasio ua alization
Aer inated
ra f
Vent han
iit is the even delegation model (EDA) ng “ lng wots in java,
38d hog
oes i
Section FICO.5) i work?
Q9. Whatare swing componenets and how do they 4.
and development. ditt
on What
Disc,
te i Hifeeycle methods OPN apy “USS applet life
ean
Mate ty
tele
Purpo:
ses?