Programology – Telegram
Programology
7.29K subscribers
1.94K photos
771 videos
6 files
2.08K links
Pro·​gram | \ ˈPrō-ˌgram , -grəm \
:A Sequence Of Coded Instructions That Can Be Inserted Into A Mechanism (Such As A Computer)

Who We Are : https://msha.ke/programmerjokesofficial
Download Telegram
Options
Anonymous Quiz
26%
A
4%
B
67%
C
2%
D
I accept all the cookies/biscuits
😁10
Comment Output
Options
Anonymous Quiz
44%
A
9%
B
43%
C
4%
D
Output:

[]
Explanation:
As one would expect, attempting to access a member of a list using an index that exceeds the number of members (e.g., attempting to access list[10] in the list above) results in an IndexError. However, attempting to access a slice of a list at a starting index that exceeds the number of members in the list will not result in an IndexError and will simply return an empty list.
👍2👏1
The backend dev and the frontend dev ..!!😂😂
😁9👍2
Comment Output
1👍1
Options
Anonymous Quiz
35%
A
9%
B
14%
C
42%
D
Answer: d
Explanation: obj is an object of class ArrayLists hence it is an dynamic array which can increase and decrease its size. obj.add(“X”) adds to the array element X and obj.add(1,”X”) adds element x at index position 1 in the list, Hence obj.add(1,”D”) stores D at index position 1 of obj and shifts the previous value stored at that position by 1.
Output:
$ javac Arraylist.java
$ java Arraylist
[A, D, B, C].
👎1
Thank you IT Guy..!!♥️♥️
17🥰3🔥1
Comment Output
Options
Anonymous Quiz
26%
A
40%
B
16%
C
18%
D