How many times does 'str' get added to the following list?  - ProProfs Discuss
Topics
Products
Follow Us:

How many times does 'str' get added to the following list? 
List strLst = new List(); for(Integer i=0;i<99;i++) {    strLst.add('str'+i);} strLst.add('str'+'100');



A. 101
B. 102
C. 100
D. 0

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: Feb 10, 2020

+ Answer
Request

3 Answers

matias.alessandrini

Matias.alessandrini

Answered Jan 13, 2020

Yes 100 is, wrong test

 

John Adney

John Adney

Answered Dec 05, 2017

100 is the answer :) I swear 100 is the answer

 

catherine halcombe

Catherine halcombe

Answered Nov 25, 2017

101
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.