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 boundary value analysis?
IF ASCII_CODE_OF_ENTERED_CHAR is less than 44 THEN reject it ELSE IF ASCII_CODE_OF_ENTERED_CHAR is greater than 56 THEN reject it ELSE it's a digit, so accept it Which one of the following sets of ASCII codes do you use to test the sample code above WITHOUT redundant coverage?
0 Answers CA, Dish Network, Wipro,
Explain severity with example and expalin each example?
How can you optimize the Test Case.
give me some example for high severity and low priority defect?
18 Answers Sigma Software Solutions, Verizon,
Define Non-functional testing?
how to maintain review reports
Write testcase for delete functionality?
What is the difference between QA and QC?
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?
what is Middleware? can anybody explain me?
Hi, Please answer this qns. "What is the test strategy and list of design characteristics for a login screen?" thank u