0% found this document useful (0 votes)
3 views5 pages

Array Worksheet

The document appears to contain a mix of Java code snippets and output predictions related to various programming concepts, including array initialization, selection sort, and output formatting. It includes examples of integer and double arrays, as well as character arrays, and discusses the expected output for certain operations. The content is fragmented and contains numerous typographical errors, making it difficult to interpret fully.

Uploaded by

saraswathiggowda
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)
3 views5 pages

Array Worksheet

The document appears to contain a mix of Java code snippets and output predictions related to various programming concepts, including array initialization, selection sort, and output formatting. It includes examples of integer and double arrays, as well as character arrays, and discusses the expected output for certain operations. The content is fragmented and contains numerous typographical errors, making it difficult to interpret fully.

Uploaded by

saraswathiggowda
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

Wite a jawa Skateent fos the folewing

Syatem..out Pridn Cm lengtk);


2) int evenNus J= new int [sl:

) Dhame [o]ol: 'D';


i) so-pln (name [9J):
4) ) doub le a L]: new cbobk lis];
Li) all4] - lo 5)
S.o-pula lo] t
Lv) double a z0
fon Cint i-o;iA 15;it+)
a-aCil+a;
5) double amoun tCJ - hew double Ca]:
) chat figures[J =new char C3o]:

1) int a lJ : fa,+,6, 8, /0
=heas long n];
g) ong balanaC] :ne
Zo plnCbalanai);
Fxtension, Hulimavu, Bangalore - 76, Ph: 26482376/77, Fax: 26486699,uiu ultragro
8)i) int ac]=heo intlas];
) int mat[JJ=neuw int C3J[4]:
u) int acJrI : fo,o, o'y io,o,o;
Phedict he output
Selection $orl
)a) Pa ’ 15, 3, 8, 44.
3, 15, 8,4
Pass a>3, 4, 8, 15
b) Pastb |>3, 15, 8,+
3,8,15, 4
3, 8,4, 5
Pas ’3, 8, 4, 15
3,+, 8, 15
2) o [since defaulk value oe int is oJ
3) Slepl > /:0 <3 >T
aYLo] - kol kata Dukpul
Step 2 =>i=l<3 >T
arli] gong kok Kolkata
gangok
ax[a] bnjalose
Slep 4 i: 343 >ale.
ALo] 8 AC]-a5, ACa]: 49 ,AC3l: 16, ACJ: 64
4) S.opCAC4J = 64.
outpub
644
m 5 + 8 * l6 7
153
|53

C(ol-I,¬[J:2, [2]:3, []=4


5) 0 Q:0410o >T CCA]-5, eloJ:6, et6]:1
b- o+c[ol &l7l:8, elsl:9, el]:10

e | l o =>T

3) a -alo >

b-1+E[2
|+3

30lo2 0 >F

4 Klo 7
a
4 olo2-0
[Link]
482376/77. Fax: [Link]
b btc [41
4 +5

5o/o 2 0 =>F

a610 >

output

7°o 2=0 ’f

)
8olo 2 - :0
b: 1649

(l0

a- lolo )
() x 5 > 0 >T a[o] =6
aLi] 5
a[2] =4
(2) x =8 4 >0 ’T a[3]: 3

(3) I 3 > 0 ’ 7
- 3
4) L: 2>o-’T

(5) |>o ’ T Cukput


2
(6) = o so =)T 3
+
5
6

(o0) (o1) (0 2)
5 3 6

(") C2)
2 3 8
output
Omleng h 2.
[Link] 3 3
6) m[2)

You might also like