How can your reverse a sentence("I LOVE MY COUNTRY" to
"COUNTRY MY LOVE I")
Answers were Sorted based on User's Feedback
Answer / tanmoy saha
<?php
$main = 'I LOVE MY COUNTRY';
$main_arr = explode(' ',$main);
$rev_arr = array_reverse($main_arr);
echo implode(' ',$rev_arr);
?>
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / uday
arr=split(str," ")
for i=ubound(arr-1) to 0 step-1
revstr=arr(i)&" "
next
| Is This Answer Correct ? | 5 Yes | 3 No |
Answer / ravi yellasiri
string s = "I LOVE MY COUNTRY";
// reverse string s
// "YRTNUOC YM EVOL I";
s = string.reverse(s);
// Split s with " " delimiter
string[] arr = s.split(" ");
// process till last-1 token
for(int i = 0; i < arr.Length-1; i++)
{
print (arr[i]);
print (" ");
}
// Print the last token...
print (arr[arr.Length-1]);
| Is This Answer Correct ? | 1 Yes | 3 No |
what is the way to explain about project of 3 years experianced
what is equivalence partition? what is the use of it?
5 Answers Microsoft, Ready Test Go, Syntel,
What would be a person who is looking for a job in testing should put his jobprofile in some jobs websites like Naukri,Times,Monster,Etc,Etc.... as a QA or QC if He/She is trying for Manual or Automation Testing?
How you will report a bug if u r doing adhoc testing..u are hopping from 1 link to 2nd...so on till 100th link and then there is bug..how will u report this bug...will you write all 100 steps?
explain fault based testing technique.
Description--->There are 5 modules in my application. On every module there is a date box. In 1st module, date box is used for 2 submenus. My Question is ---> Should I have to write test cases for date box for every modules & submenus?
What is the diff. Between Waterfall and Spiral model?
17 Answers Covansys, IBM, Wipro,
what is basis for testcase review?
If someone had 2 months experience in manaul testing but not that much effetive knowledge then what he should do show experience or not in his C.V.
Hi, Below is a question on white box testing. Kindly help me in answering it. How many test cases are needed to obtain 100% branch coverage. This question was asked in ISTQB foudation level exam - Dec21 2008. Read(A,C) If(A<10) then Print A; Endif If(C>100) then Print C is greater then A else if(C<100) then print only C Endif else Options - a. 4 b. 3 c. 2 d. 1 Kindly answer with explanation so that it would be easy to understand
can u plz give an example for regression testing with example.
Is an "A fast database retrieval rate" a testable requirement?