Tag: technology
Questions Related to technology
-
Sum up value in the fields specified in the SORT FIELDS statement and keep it as only one occurence in the o/p
-
Removes the duplicates for the fields specified in the SORT FIELDS statement and keeps only the 1st occurence of it
-
Works only for those records in the i/p file where no duplicates for the fields specified in SORT FIELDS statement,
-
None of the above
-
Arun 50 Arun 20 Naveen10 Naveen40 Priya 25 Priya 35
-
Priya 60 Naveen50 Arun 70
-
Arun 70 Naveen50 Priya 60
-
Naveen50 Priya 60 Arun 70
-
SORT FIELDS = (1,10,CH,A),SKIPREC= 10
-
SORT FILEDS = (1,10,CH,A),SIZE = 10
-
Sort FIELDS = (1,10,CH,A),STOPAFT = 10
-
Sort FIELDS = (1,10,CH,A),EQUALS = 10
-
F (Fixed), V (Variable), D (ISCII/ASCII Variable)
-
F (Fixed), V (Variable)
-
No types are specified in the Record Statement
-
FI (Fixed), VA (Variable)
-
Function call:- changeName(im); Function implementation :- { im.name = "Done"; return null; }
-
Function call:- changeName(im); Function implementation :- { im = new Item("Done"); return null; }
-
Function call :- im = changeName(im); function implementation :- { Item otherObject = new Item("Done"); return otherObject; }
-
All of the above
-
im.name = "Done";
-
Item otherObject = new Item(“Done”); itemList.set(49, otherObject);
-
((Item)itemList.get(49)).name = “Done”;
-
None of above is correct as they are not changing 50th element.
-
Item im = new Item(null); im = (Item ) itemList.get(0);
-
Item im = new Item(“Done”); im = (Item ) itemList.get(0);
-
Item im = null; im = (Item ) itemList.get(0);
-
All of the above.
-
itemMap.remove("orange"); itemMap.put("orange", new Item("Orange") );
-
((Item)itemMap.get(“orange”)).name = “Orange”;
-
itemMap.put("orange", new Item("Orange") );
-
None of above
-
code attribute cannot be changed as Item class doesn’t have setter method for it.
-
for (int i = 0; i < itemList.size(); i++) { if(itemList.get(i) != null) { ((Item)itemList.get(i)).code = 50+i; } }
-
int i = 0; Item im = null; while (i < itemList.size()) { im = (Item)itemList.get(i); if(im != null) { im.code = 50+i; } i++; }
-
int i = 0; Item im = null; Iterator itr = itemList.iterator(); while (itr.hasNext()) { im =(Item) itr.next(); im.code = 50+i; i++; }
-
SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:SEQNUM,5,ZD,6:6,295)
-
SORT FIELDS=(1,5,BI,A) OUTREC FIELDS=(1:SEQNUM,5,BI,6:6,295)
-
SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:RESEQ,5,ZD,6:6,300)
-
None of the above