0% found this document useful (0 votes)
290 views

Final Exam Java Quiz

https://vrsecsources.blogspot.com/2016/04/new-java-quiz-real-time-score-to-email.html Goto this link

Uploaded by

maroom1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
290 views

Final Exam Java Quiz

https://vrsecsources.blogspot.com/2016/04/new-java-quiz-real-time-score-to-email.html Goto this link

Uploaded by

maroom1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

FinalExam

40questionsx2Marks
60Min
Yourusername([email protected])willberecordedwhenyousubmitthis
form.Notgoduguluri15200?Signout
*Required

1.Selecttheseatnumber*
Markonlyoneoval.
Option1

Afterthelastquestioninthissection,skiptoquestion4.

Option2

Afterthelastquestioninthissection,skiptoquestion4.

Option3

Afterthelastquestioninthissection,skiptoquestion15.

Option4

Afterthelastquestioninthissection,skiptoquestion4.

Option5

Afterthelastquestioninthissection,skiptoquestion15.

Option6

Afterthelastquestioninthissection,skiptoquestion4.

Option7

Afterthelastquestioninthissection,skiptoquestion15.

Option8

Afterthelastquestioninthissection,skiptoquestion4.

Option9

Afterthelastquestioninthissection,skiptoquestion15.

Option10

Afterthelastquestioninthissection,skiptoquestion4.

Option11

Afterthelastquestioninthissection,skiptoquestion15.

Option12

Afterthelastquestioninthissection,skiptoquestion4.

Option13

Afterthelastquestioninthissection,skiptoquestion15.

Option14

Afterthelastquestioninthissection,skiptoquestion4.

Option15

Afterthelastquestioninthissection,skiptoquestion15.

Option16

Afterthelastquestioninthissection,skiptoquestion4.

Option17

Afterthelastquestioninthissection,skiptoquestion15.

Option18

Afterthelastquestioninthissection,skiptoquestion4.

Option19

Afterthelastquestioninthissection,skiptoquestion15.

Option20

Afterthelastquestioninthissection,skiptoquestion4.

Option21

Afterthelastquestioninthissection,skiptoquestion15.

Option22

Afterthelastquestioninthissection,skiptoquestion4.

Option23

Afterthelastquestioninthissection,skiptoquestion15.

Option24

Afterthelastquestioninthissection,skiptoquestion4.

Option25

Afterthelastquestioninthissection,skiptoquestion15.

Option26

Afterthelastquestioninthissection,skiptoquestion4.

Option27

Afterthelastquestioninthissection,skiptoquestion15.

Option28

Afterthelastquestioninthissection,skiptoquestion4.

Option29

Afterthelastquestioninthissection,skiptoquestion15.

Instructor

Afterthelastquestioninthissection,skiptoquestion4.

2.WhatisyourName?*

3.WhatisyourID?*

QuestionPaper1

4.Whichofthefollowingreturntrue?*
Markonlyoneoval.
"john"=="john"
"john".equals("john")
"john"="john"
"john".equals(newButton("john"))
5.Whichistrue?
Markonlyoneoval.
PublicStaticVoidMain(Stringargs[])
publicstaticvoidmain(string[]args)
publicMainvoidstatic(String[]args)
publicstaticvoidmain(Stringargs[])
6.Whichofthefollowingiscorrect:
Markonlyoneoval.
Stringtemp[]=newString{"j""a""z"}
Stringtemp[]={"j""b""c"}
Stringtemp={"a","b","c"}
Stringtemp[]={"a","b","c"}
7.Whatisthemeaningofthereturndatatypevoid?*
Markonlyoneoval.
Anemptymemoryspaceisreturnedsothatthedeveloperscanutilizeit
voidisnotsupportedinJava
voidreturnsnodatatype.
null
8.WhichofthefollowingareJavakeywords?
Markonlyoneoval.
throw
void
private
this
new
alloftheabove
9.AlowerprecisioncanbeassignedtoahigherprecisionvalueinJava.Forexample
abytetypedatacanbeassignedtointtype.
Markonlyoneoval.
True
False

10.Whichofthefollowingstatementsisfalseaboutobjects?
Markonlyoneoval.
Aninstanceofaclassisanobject
Objectscanaccessbothstaticandinstancedata
Objectsdonotpermitencapsulation
Objectisthesuperclassofallotherclasses
11.Givenaonedimensionalarrayarr,whatisthecorrectwayofgettingthenumberof
elementsinarr.Selecttheonecorrectanswer.
Markonlyoneoval.
arr.length
arr.length1
arr.size
arr.length()
12.Thenewoperator
Markonlyoneoval.
returnsapointertoavariable
createsavariablecallednew
obtainsmemoryforanewvariable
tellshowmuchmemoryisavailable
13.Commandtoexecuteacompiledjavaprogramis:
Markonlyoneoval.
java
javac
run
execute
14.Isthisyourlastsectionoutoftwoquestionpapers?*
Markonlyoneoval.
Yes
No

Stopfillingoutthisform.
Skiptoquestion15.

Questionpaper2
15.Thejavacompiler
Markonlyoneoval.
createsexecutable
translatesjavasourcecodetobytecode
createsclasses
producesjavaInterpreter

16.Theorderofthethreetoplevelelementsofthejavasourcefileare
Markonlyoneoval.
Package,Import,Class
Package
Import,Class.Package,
Import,Class
17.Javaprogramsare
Markonlyoneoval.
platformindependent
platformdependent
platformbuilder
platformdestructor
18.InJavaInheritance
Markonlyoneoval.
allfieldsofaclassareprivate
allfieldsofaclassareprotected
anewclassisderivedfromanexistingclass
Alltheabove
19.ArraysinJavaareimplementedas?
Markonlyoneoval.
class
variable
object
alltheabove
20.Ifs1="textbook",whatisthevaluereturnedbys1.length()?
Markonlyoneoval.
8
9
7
10
21.WhichofthesemethodofStringclasscanbeusedtotesttostringsforequality?
Markonlyoneoval.
isEqual()
isequal()
Equals()
equals()

22.EveryJavaprogramrequiresatleastoneclass.
Markonlyoneoval.
True
False
Dunno
23.Aclasscannotoverloaditsconstructors.
Markonlyoneoval.
True
False
Maybe
Dunno
24.Aninterfacemustbedeclaredexplicitlyasabstract.
Markonlyoneoval.
True
False
Depends

UnknownDiagramnameit

25.WhatisOption2inaboveDiagram

26.WhatisthenameoftheaboveDiagram?

27.Whatcommandisusedforoption1in
aboveDiagram?

28.For(intx=0x<10x=x+3)statementwillbeexecuted
Markonlyoneoval.
3
5
7
9
4

Program

29.Whatistheoutputofaboveprogram?
Markonlyoneoval.
Hello
Hello(willbeprinted10times)
compileerror
Noneoftheabove
30.Whichofthefollowingistrueaboutinterfacesinjava.
Markonlyoneoval.
Aninstanceofinterfacecanbecreated.
Aclasscannotimplementmultipleinterfaces.
31.whatistheuseofaddALL()methodinArraylist?
Markonlyoneoval.
addsoneelementsofanotherarraylistobject
addsalltheelementsofanotherarraylistobjecttothecurrentobject
removeallthecurrentobjectandaddsotherobjects
Noneoftheabove

32.Collectionisa
Markonlyoneoval.
Class
AbstractMethod
Interface
consturctor
33.Listisa
Markonlyoneoval.
Method
Variable
constructor
inheritance
Alltheabove
Noneoftheabove
34.whichisnotArrayListMethods
Markonlyoneoval.
add()
addALL()
entrySet()
Size()
35.Howtoaddvalue/objecttotheHashMapcollectionobject?
Markonlyoneoval.
insert()
push()
put()
add()
keep()

Analysetheprogram

36.Whatistheoutputoftheaboveprogram
?

37.howtoprintvaluesofHashMaph?
Writeasinglestatement
system.out.ptintln(h.********)

38.Howtoprintalltheelementsofthe
Hashmaph?
Writeasinglestatement
system.out.ptintln(h.********)

39.whatistheoutputofSystem.out.println(h.get(1))?
Markonlyoneoval.
2
Apple
None
[Apple,1]
40.Whichinterfaceisusedforiteratingtheobjectsinthecollection?
Markonlyoneoval.
Accelarator()
Iterator()
Rotator()
Collector()

41.Ifaclassisdefinedasfinal,theclasscannotbeextended.
Markonlyoneoval.
True
False
Maybe
Dunno
42.Ihave3classandtwoTestclassinoneapplication,Howmanymainmethods
shouldneedtoimplement?
Markonlyoneoval.
3
1
4
2
5
NOmainclassisneededaccordingtotheTestclass
43.Mainmethodcanbeoverriden
Markonlyoneoval.
True
False
44.Everyconstructormusthavevoidinplaceofareturntypebecauseaconstructor
cannotreturnavalue.
Markonlyoneoval.
Yes
No
Dunno

UntitledSection
45.Isthisyourlastquestionpaperoutof2questionpapers?*
Markonlyoneoval.
Yes
No

Skiptoquestion46.
Skiptoquestion4.

FeedbackForm
Itwonteffectyoubyanymeans.
46.Howdoyoufeelabouttheexam?

47.Howmuchratingwillyougivefortheexam?
Markonlyoneoval.
1

48.HowwastheJavaLabInstructor?

49.HowMuchwillyouratefortheInstructor?
5isVerygood,4isgood,3ismoderate,2ispoor,1isverypoor,0isnotinterstedto
rate
Markonlyoneoval.
0

Sendmeacopyofmyresponses.

Poweredby

You might also like