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

Java Questions

The document appears to be a fragmented and incomplete instructional text regarding Java programming concepts, including definitions of terms, programming structures, and data types. It covers topics such as Java syntax, variable declaration, data types, and the role of packages in Java. The content is heavily redacted and lacks coherence, making it difficult to extract specific information.

Uploaded by

tunipradhan.027
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Java Questions

The document appears to be a fragmented and incomplete instructional text regarding Java programming concepts, including definitions of terms, programming structures, and data types. It covers topics such as Java syntax, variable declaration, data types, and the role of packages in Java. The content is heavily redacted and lacks coherence, making it difficult to extract specific information.

Uploaded by

tunipradhan.027
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

I

. Fi
l
lint
hebl
anks:

1.Asetofi
nst
ruct
ionsi
sknownas_
___
___
___
_.

2._
___
___
___
_isamedi
um ofcommuni
cat
ion.

3.___
____
____meanswr
it
ingi
nst
ruct
ioni
nthel
anguaget
hatt
hecomput
er
under
stands.

4.Asetofr
ulest
hatpr
ovi
desawayoft
ell
i
ngacomput
erwhatoper
ati
onst
o
per
for
miscall
ed___
___
___
__.

5.Jav
aisa_
___
___
___
_language.

6.Jav
aisdev
elopedby_
___
___
___
_at_
___
___
___
_in_
___
___
___
_.

7.Thei
nit
ial
nameofj
avawas_
___
___
___
_.

8.Jav
apr
ogr
amsar
ebot
h__
___
___
___and_
___
___
___
_.

9.Jav
acanaccessdat
afr
om _
___
___
___
_aswel
las_
___
___
___
_.

10.
Jav
apr
ogr
ammi
ngi
swr
it
tenwi
thi
na_
___
___
___
_.

11.
Thevari
abl
esandf
unct
ionsar
edecl
aredanddef
inedwi
thi
nthe
___
____
____
.

12.
Jav
apr
ogr
amscancr
eat
e__
___
___
___and_
___
___
___
_.

13.
Thepr
ogr
amswhi
chr
unont
hewebbr
owseri
sknownas_
___
___
___
_.

14.
Jav
adoesnotr
equi
reany_
___
___
___
_or_
___
___
___
_.

15.
Acompi
l
eri
snotcapabl
eofi
ndi
cat
ing_
___
___
___
_er
ror
s.

16.Acompi
l
ercani
dent
if
y__
___
___
___i
napr
ogr
am.

17.
Thesof
twarebywhichthehi
ghlev
eli
nst
ruct
ionsareconver
tedi
nto
machi
nelev
ellanguageli
nebyl
i
neiscal
l
edas_ __
______
__.

18.
At r
anslat
orthatconvert
stheent
iresour
cepr
ogr
am i
ntot
heobj
ect
program atonceiscall
ed____
___
____.

19.
___
___
___
__i
sacol
l
ect
ionofv
ari
ouscl
assesandi
nter
faces.

20.
Apackagecanbei
ncl
udedi
ntoapr
ogr
am byt
heuseof_
___
___
___
_
key
word.

21.
___
___
___
__i
sthedef
aul
tpackage.

22.
___
___
___
__,
___
___
___
__and_
___
___
___
_ar
etheexampl
esofj
avapackage.
23.
Tosuppor
tmat
hemat
ical
funct
ions_
___
___
___
_packagei
sused.

24.
___
_ _
____
__packageisusedt
osuppor
tcl
assest
odeal
wit
hinputand
outputst
atements.

25.
___
___
___
_key
wor
disusedt
oincl
udeapackagei
napr
ogr
am.

26.
____
_ _
_____packagei
susedt
osuppor
tcl
assescont
aini
ngst
ri
ngor
character
.

27.
___
___
___
__conv
ert
sthesour
cecodei
ntoby
tecode.

28.
Thei
nter
medi
atebi
nar
ycodei
sknownas_
___
___
___
_.

29.
___
___
___
__conv
ert
saby
tecodei
ntoamachi
necode.

30.
Jav
aint
erpr
eteri
sal
sor
efer
edt
oas_
___
___
___
_

31.
___
___
___
__st
atementi
susedt
odi
spl
ayt
hemessageont
hescr
een.

32.
Themessagesar
ewr
it
tenwi
thi
n__
___
___
___andencl
osedwi
thi
n
___
___
___
__.

33.
Whenamessageistodi
spl
ayedal
ongwi
thv
ari
abl
etheyar
etobe
separ
atedwi
th_
____
____
__si
gn.

34.
Ther
eser
vewor
dwhi
chcar
ryaspeci
almeani
ngi
sknownas_
___
___
___
_.

35.
___
___
___
__ar
enotusedf
ornami
ngav
ari
abl
eint
hepr
ogr
am.

36.
Thet
wowayofwr
it
ingj
avapr
ogr
amsar
e__
___
___
___and_
___
___
___
_.

37.
___
____
____i
sthemostcommont
ypeofj
avapr
ogr
ammi
ngbasedon
soft
wareappl
icat
ions.

38.
Standal
onepr
ogr
amsar
eal
soknownas_
___
___
___
_.

39.
Theprogr
amsaredesignedandexecut
edbyusi
ngt
hewebbr
owseri
s
knownas___
___
_____
.

40.
___
___
___
__and_
___
___
___
_ar
ethemostcommonusedwebbr
owser
s.

41.
Eachi
ndi
vi
dual
elementi
napr
ogr
am i
scal
l
ed_
___
___
___
_.

42.
Thesmal
l
esti
ndi
vi
dual
uni
tofacl
assi
scal
l
ed_
___
___
___
_.

43.
___
___
___
__ar
etheconst
ant
susedi
njav
apr
ogr
am.

44.
Thenumber
swhichar
erepr
esent
edwi
thoutusi
ngdeci
mal
poi
nti
scal
l
ed
as___
___
___
__.

45.
Thenumber
swi
thdeci
mal
poi
ntar
ecal
l
edas_
___
___
___
_.
46.
Ther
eal
li
ter
alsar
eal
soknownas_
___
___
___
_.

47.
Asingl
echar
act
erencl
osedwi
thi
nsi
ngl
equot
ati
onmar
kisknownas
___
____
___
_.

48.
Asetofchar
act
ersencl
osedwit
hinapai
rofopeni
ngandcl
osi
ngdoubl
e
quot
esisknownas____
____
___
.

49.
___
___
___
__i
sagl
obal
ter
m usedt
oident
if
yapr
ogr
am el
ement
.

50.
Ident
if
ier
srepr
esent
s__
___
___
___
,__
___
___
___
,__
___
___
___and_
___
___
___
_.

51.
A_____
____
__isanamedmemor yl
ocati
onwhi
chcont
ainsav
alueandcan
bechangedduri
ngpr
ogram execut
ion.

52.
Thedatat
ypeswhi
char
efundament
alori
ndependenti
nnat
urear
esai
dto
be___
____
___.

53.
___
___
___
_dat
aty
pesar
ether
efer
encedat
aty
pes.

54.
Numer
icv
ari
abl
esar
eusedt
oassi
gn_
___
___
___
.

55.
Nonnumer
icv
ari
abl
esar
eusedt
oassi
gn_
___
___
___
.

56.
Avar
iabl
enamecont
ain_
___
___
___
,__
___
___
__and_
___
___
___
.

57.
Avar
iabl
enameshoul
dnotst
artwi
th_
___
___
___and_
___
___
___
.

58.
Thel
engt
hofachar
act
erdat
aty
pei
s__
___
___
__.

59.
___
___
___
_isusedasassi
gnmentoper
ator
.

60.
___
____
___sy
mbol
isusedt
ost
oreorassi
gnconst
ant
sorv
aluesi
na
var
iabl
e.

61.
Thedat
aty
peofav
ari
abl
edependupon_
___
___
___
.

62.
Thedat
aty
pet
ohol
dnonnumer
icconst
anti
scal
l
ed_
___
___
___
.

63.
Whenwedecl
areav
ari
abl
ebydef
aul
titmaycont
ain_
___
___
___
.

64.
Avar
iabl
emaybei
nit
ial
i
zedbyassi
gni
nga_
___
___
___t
oit
.

65.
___
___
___
_mustbeusedal
ongwi
tht
hev
ari
abl
esaccor
dingl
y.

66.
___
___
___
_ar
ethesy
mbol
susedt
odef
ineanoper
ati
on.

67.
___
_______ar
ethesy
mbol
susedt
oper
for
m ar
it
hmet
icandl
ogi
cal
operat
ion.

68.
intt
akes_
___
___
___by
tesofmemor
y.
69.
byt
etakes_
___
___
___by
tesofmemor
y.

70.
shor
ttakes_
___
___
___by
tesofmemor
y.

71.
longt
akes_
___
___
___by
tesofmemor
y.

72.
doubl
etakes_
___
___
___by
tesofmemor
y.

73.
fl
oatt
akes_
___
___
___by
tesofmemor
y.

74.
chart
akes_
___
___
___by
tesofmemor
y.

75.
bool
eant
akes_
___
___
___by
tesofmemor
y.

76.
Nonpri
miti
vedat
aty
pesar
eal
soknownas_
___
___
___
,__
___
___
__and
___
___
____
.

77.
___
___
___
_expr
essi
oncont
ainsdat
aofv
ari
oust
ypes.

78.
Whenadat
aty
pei
sconv
ert
edt
oanot
herdat
aty
pei
sknownas_
___
___
___
.

79.
Whenadatatypeisconver
tedt
oanot
herdat
aty
pewi
thoutany
int
erv
ent
ionofuserisknownas__
___
____
_.

80.
Whendatagetconver
tedt
oanotherdat
aty
peasperuser
’schoi
ceand
requi
rement
sisknownas___
___
_ _
__.

81.
___
___
___
_ar
eusedf
oreasydev
elopmentofpr
ogr
am l
ogi
c.

82.
___
___
___
_isani
nter
medi
atebi
nar
ycodei
ndependentofanymachi
ne.

83.
Theuserfor
cesthesy
stem t
ogetbacki
ntot
hedesi
reddat
aty
pei
sknown
as_____
_____.

84.
___
___
___
_funct
ionr
etur
nst
hesquar
erootofaposi
ti
venumber
.

85.
___
___
___
_funct
ionr
etur
nst
hesmal
l
ernumber
sbet
weent
wonumber
sa
andb.

86.
___
___
___
_funct
ionr
etur
nst
hegr
eat
ernumber
sbet
weent
wonumbera
andb.

87.
___
___
___
_funct
ionr
etur
nst
hev
aluexr
aiset
othepowery
.

88.
___
___
___
_funct
ionr
etur
nst
hev
alueofanat
ural
logar
it
hm number
.

89.
___
___
___
_funct
ionr
etur
nst
heabsol
utev
alue(
magni
tude)ofanynumber
.

90.
___
___
___
_funct
ionr
etur
nst
her
oundedv
alueoft
othenear
esti
nteger
.

91.
Ther
etur
nty
peofr
oundf
unct
ioni
s__
___
_
92.
___
___f
unct
ionr
etur
nst
her
oundedv
aluedownt
othenear
esti
nteger
.

93.
___
___f
unct
ionr
etur
nst
her
oundedv
aluet
othenear
esthi
gheri
nteger
.

94.
Theangl
eofsi
n,cosandt
anar
eexpr
essedi
n__
___
_.

95.
Mat
h.r
int
(a)r
etur
ns_
___
__.

96.
Theel
ement
sonwhi
chanoper
ati
oni
scar
ri
edi
sknownas_
___
__.

97.
___
___oper
atori
susedwi
thasi
ngl
eoper
and.

98.
___
___oper
atorusest
wooper
andst
ocar
ryoutanyoper
ati
on.

99.
___
___oper
atorusedt
hreeoper
andt
ocar
ryoutanyoper
ati
on.

100. _
___
__oper
atorar
eal
soknownast
ernar
yoper
ator
.

101. _
___
__and_
___
__oper
ator
sincr
easeordecr
easet
hev
alueofan
oper
andby1.

102. _
_____i
sani
ntegr
alpar
toft
hepr
ogr
am andmakesi
tmor
e
meani
ngful
.

103. _
___
__i
susedf
orsi
ngl
eli
necomment
.

104. _
___
__i
susedf
ormul
til
i
necomment
.

105. __
____
__oper
atori
susedt
oshowt
her
elat
ionshi
pamongt
he
oper
ands.

106. _
_____
__operat
ori
susedt
ocompar
ethev
aluesoft
heoper
ands
andr
esult
saBooleanval
ue.

107. _
___
___
_oper
atori
susedt
oret
urnt
hei
ntegr
alpar
torquot
ient
.

108. _
___
___
_oper
atori
susedt
oret
urnr
emi
nderofadi
vi
sion.

109. _
___
___
_rev
ert
sthev
alueofanoper
and.

110. _
___
___
_incr
easet
hev
alueofanoper
andbyone.

111. _
___
___
_decr
easet
hev
alueofanoper
andbyone.

112. Whenani
ncr
ementordecr
ementoper
atori
sappl
i
edbef
oret
he
oper
andi
sknownas__
____
__oper
ator
.

113. Whenani
ncr
ementordecr
ementoper
atori
sappl
i
edaf
tert
he
oper
andi
sknownas__
____
__oper
ator
.

114. Theoper
atorwor
ksont
hepr
inci
ple“
Changebef
oret
heact
ion”i
s
knownas__
____
__.
115. Theoper
atorwor
ksont
hepr
inci
ple“
Changeaf
tert
heact
ion”i
s
knownas__
____
__.

116.

I
I.Expandt
hef
oll
owi
ng:

JVM BASI
C FORTRAN COBOL HLL MLL
ALL JDK ASCI
I UNI
CODE ISO

I
II
.Namet
hem:

1. Twoexampl
esofhi
ghl
evel
languages:

2.Twoexampl
esofl
anguagepr
ocessor
s:

3.Fourj
aval
i
brar
ies:

4.Fi
vekey
wor
ds:

5.Twot
ypesofj
avapr
ogr
ams:

6.Fi
vet
ypesoft
okens:

7.Fourt
ypesofl
i
ter
als

8.Twot
ypesofv
ari
abl
es:

9.Twot
ypesofnumer
icv
ari
abl
es:

10.
Twot
ypesofnonnumer
icv
ari
abl
es:

11.
Eightt
ypeofpr
imi
ti
vedat
aty
pes:

12.
Thr
eet
ypesofnonpr
imi
ti
vedat
aty
pes:

13.
Fourt
ypesofi
ntegerdat
aty
pes:

14.
Twot
ypesoff
loat
ingdat
aty
pes:

15.
Twot
ypesoft
ypeconv
ersi
ons:

16.
Anyf
ourmat
hemat
ical
funct
ions:

17.
Twoexampl
esofi
ntegerl
i
ter
al

18.
Twoexampl
esofr
eal
li
ter
al

19.
Twoexampl
esofchar
act
erl
i
ter
al

20.
Twoexampl
esofst
ri
ngl
i
ter
al
21.
Twoexampl
esofBool
eanl
i
ter
al

22.
Nameapackaget
hati
sinv
okedbydef
aul
t

23.
Twowayofper
for
mingdat
aty
peconv
ersi
on

24.
Exampl
eofi
mpl
i
citt
ypeconv
ersi
on

25.
Exampl
eofexpl
i
citt
ypeconv
ersi
on

26.
Twot
ypesofcomment

27.
Thr
eeaccessspeci
fi
er/modi
fi
er

28.
FourUnar
yOper
ator
s

29.
EightBi
nar
yOper
ator
s

30.
OneTer
nar
yOper
ator
s

31.
Twot
ypesofAr
it
hmet
icOper
ator

32.
Exampl
esofAr
it
hmet
icOper
ator

33.
Exampl
esofRel
ati
onal
Oper
ator

34.
Exampl
esofLogi
cal
Oper
ator

35.
Exampl
esofCondi
ti
onal
Oper
ator

36.
Exampl
esofI
ncr
ementOper
ator

37.
Exampl
esofDecr
ementOper
ator

38.
Exampl
esofAssi
gnmentOper
ator

39.
Exampl
esofShor
thandOper
ator

40.

I
V.Jav
aExpr
essi
ons

V.Fi
ndt
heout
put

VI
.Jav
aPr
ogr
ams

VI
I.Al
lquest
ionanswer
sofBookExer
cise

VI
I.Al
lquest
ionanswer
sofBookSol
vedQuest
ions
I
X.Ev
aluat
etheExpr
essi
ons

X.Di
ff
erent
iat
ethef
oll
owi
ng

1.

You might also like