How can your reverse a sentence("I LOVE MY COUNTRY" to
"COUNTRY MY LOVE I")

Answers were Sorted based on User's Feedback



How can your reverse a sentence("I LOVE MY COUNTRY" to "COUNTRY MY LOVE I")..

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

How can your reverse a sentence("I LOVE MY COUNTRY" to "COUNTRY MY LOVE I")..

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

How can your reverse a sentence("I LOVE MY COUNTRY" to "COUNTRY MY LOVE I")..

Answer / sushma

strReverse function in VB can reverse string

Is This Answer Correct ?    3 Yes 5 No

How can your reverse a sentence("I LOVE MY COUNTRY" to "COUNTRY MY LOVE I")..

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

Post New Answer

More Manual Testing Interview Questions

what is boundary value analysis?

4 Answers  


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?

1 Answers   Vertex,


How can you optimize the Test Case.

1 Answers   Subex,


give me some example for high severity and low priority defect?

18 Answers   Sigma Software Solutions, Verizon,






Define Non-functional testing?

2 Answers   Crea,


how to maintain review reports

0 Answers   CTS,


Write testcase for delete functionality?

1 Answers   IBIT PU,


What is the difference between QA and QC?

9 Answers  


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?

2 Answers  


what is Middleware? can anybody explain me?

2 Answers   AZTEC,


Hi, Please answer this qns. "What is the test strategy and list of design characteristics for a login screen?" thank u

1 Answers  


Categories