Font size
Worksheetsjava.util – Collections Framework-9
Total questions: 147
Worksheet time: 49mins
What will be the output of the following Java program? https://gyazo.com/33f13b49749f6661b34ad51e60ca84b0
[A, B, C, D]
[A, D, B, C]
[A, D, C]
[A, B, C]
What will be the output of the following Java program?
0
1
2
Any Garbage Value
What will be the output of the following Java program?
1
2
3
4
What will be the output of the following Java program?
1
2
3
4
What will be the output of the following Java code snippet?
{1=null, 2=null, 3=null, 4=null, 5=null}
{5=null}
Exception is thrown
{1=null, 5=null, 3=null, 2=null, 4=null}
What will be the output of the following Java code snippet?
Test - 10 Test - 10
Test – 10
c) Runtime Exception
d) Compilation Failure
What will be the output of the following Java code snippet?
[A, B, C]
[D, B, C]
[A, B, C, D]
[D, A, B, C]
What will be the output of the following Java program?
[A, B]
[B, C]
[A, B, C, D]
[A, B, C]
What will be the output of the following Java program?
ABC 3
[A, B, C] 3
ABC 2
[A, B, C] 2
What will be the output of the following Java program?
[1, 3, 5, 8, 9]
[3, 4, 1, 8, 9]
[9, 8, 4, 3, 1]
[1, 3, 4, 8, 9]
What will be the output of the following Java program? https://gyazo.com/63fc228a37a3bbfc92af0b0ccef450a9
{A 1, B 1, C 1}
{A, B, C}
{A-1, B-1, C-1}
{A=1, B=2, C=3}
What will be the output of the following Java program?
a) [A, B, C]
b) {A, B, C}
c) {1, 2, 3}
d) [1, 2, 3]
What will be the output of the following Java program?
1
2
3
Null
What will be the output of the following Java program?
[A, B, C]
[1, 2, 3]
{A=1, B=2, C=3}
[A=1, B=2, C=3]
What will be the output of the following Java code?
0
3
2
5
What will be the output of the following Java code?
2
3
4
6
What will be the output of the following Java code?
[3, 2, 6]
[3, 2, 8]
[3, 2, 6, 8]
[3, 2, 8, 6]
What will be the output of the following Java code?
0
1
True
False
What will be the output of the following Java code?
[3, 5]
[3, 2]
[3, 2, 5]
[3, 5, 2]
What will be the output of the following Java code? https://gyazo.com/d8c03968897dc79eeeb722f1986459df
0
1
True
False
What will be the output of the following Java code?
0
1
2
3
What will be the output of the following Java code? https://gyazo.com/83504454951d75c8473940339dc910d1
{C=8, B=2}
[C=8, B=2]
{A=3, C=8, B=2}
[A=3, C=8, B=2]
What will be the output of the following Java code? https://gyazo.com/6ebd23b4096423bec0158d330bef6493
{C=8, B=2}
[C=8, B=2]
{A=3, C=8, B=2}
[A=3, C=8, B=2]
What will be the output of the following Java code? https://gyazo.com/4ad241951990545e7cd63573662c2339
{AB, BC, CD}
[AB, BC, CD]
[3, 2, 8]
{3, 2, 8}
What will be the output of the following Java code? https://gyazo.com/7b8f36b3397e48c780d401b14f5534e9
{0, 1, 3, 4}
{0, 1, 2, 4}
{0, 1, 2, 3, 4}
{0, 0, 0, 3, 4}
What will be the output of the following Java code? https://gyazo.com/a8e6352cc536e3e86c773082e88e745a
4 64
5 64
5 128
4 128
What will be the output of the following Java code? https://gyazo.com/b1a05e5abf557ff8bce8b100b423cebe
2
3
4
5
What will be the output of the following Java code? https://gyazo.com/72d10c06066e64615d82acfa9b212a33
a) Prints Present Date
Runtime Error
c) Any Garbage Value
d) Prints Present Time & Date
What will be the output of the following Java code? https://gyazo.com/b9c0ddfad67c1398ebb1aab4e1248ed8
{0, 1}
{2, 4}
{3, 4}
{3, 4, 5}
What will be the output of the following Java code? https://gyazo.com/8d26609330124913a4f46ed4b13e8116
Program prints all the constructors of ‘java.awt.Dimension’ package
Program prints all the possible constructors of class ‘Class’
Program prints “Exception”
Runtime Error
What will be the output of the following Java code? https://gyazo.com/6bcd91421fb1ce0eb954cc7dfa3ad6a6
Program prints all the constructors of ‘java.awt.Dimension’ package
Program prints all the methods of ‘java.awt.Dimension’ package
Program prints all the data members of ‘java.awt.Dimension’ package
program prints all the methods and data member of ‘java.awt.Dimension’ package
What is the length of the application box made in the following Java program? https://gyazo.com/b09a90264c6181577496bd4681001c3d
20
Default value
Compilation Error
Runtime Error
What will be the output of the following Java program? https://gyazo.com/9be8c0917036942cc50e4102d0731018
Program prints all the constructors of ‘java.awt.Dimension’ package
Program prints all the methods of ‘java.awt.Dimension’ package
Program prints all the data members of ‘java.awt.Dimension’ package
program prints all the methods and data member of ‘java.awt.Dimension’ package
What will be the output of the following Java program? https://gyazo.com/f7a1fec6c1f19ccefc6adff8ef84fdcc
12885
12845
58881
54881
What will be the output of the following Java program? https://gyazo.com/9df5e6ed65fe9dd552ef65b6ef610133
{0, 1, 3, 4}
{0, 1, 2, 4}
{0, 1, 2, 3, 4}
{0, 0, 0, 3, 4}
What will be the output of the following Java program? https://gyazo.com/ce35498896fa5c5bb6ea040a5002dcdb
0
1
-1
EMPTY
What will be the output of the following Java program? https://gyazo.com/3afcc88b2f1b2a00cd191cbf76540e1c
2 8 5 1
1 5 8 2
2
2 1 8 5
What will be the output of the following Java program? https://gyazo.com/9f996d335c49f0e5493cf34ecbddb37b
2 8 5 1
1 5 8 2
1 2 5 8
2 1 8 5
What will be the output of the following Java program? https://gyazo.com/d31fb342ff0ef2325814f6cea65ecc7c
2 8 5
2 1 8
2 5 8
8 5 1
What will be the output of the following Java program? https://gyazo.com/ac98d75bb258b45c0e407b3a32703d64
0
1
True
False
What will be the output of the following Java program? https://gyazo.com/a6389a6b82510253524a2925754d37e8
12345
54321
1234
5432
What will be the output of the following Java program? https://gyazo.com/2f9cab99d29f6bca39285457a2659b2e
2
3
4
5
What will be the output of the following Java program? https://gyazo.com/576eea852f266c02cd5021dd10a1ff79
12345
54321
1234
5432
What will be the output of the following Java program? https://gyazo.com/29f74df2f82a35795807d7a59867424e
2 8 5 1
1 5 8 2
1 2 5 8
2 1 8 5
What will be the output of the following Java program? https://gyazo.com/8afedde1e51abd3217a9b8f07d0ebdc3
2 8 5 1
1 5 8 2
1 2 5 8
Any random order
What will be the output of the following Java program? https://gyazo.com/a86ecadecbc4ab1d0753c0cbc2ad08c5
2 8 5 1
1 5 8 2
2
2 1 8 5
What will be the output of the following Java program? https://gyazo.com/109b4f80227f50c8671e063e954107eb
2 8 5 1
1 5 8 2
2
2 1 8 5
