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

Write positive and negative test cases for forgot password?

0 Answers   Liftoff,


What is meant by preconditions and postconditions in a Test Case? Can anyone give an example?

22 Answers   CLG, JDA, Zestwings Informatics,


what is the need for testing?

3 Answers  


can you tell me test case for whatsapp?

7 Answers   AFour Technologies, InfoBeans,


What do you mean by offshore and onshore testing?pls tell the models of this testing?

1 Answers  






There is a field in the form...if i will put a number it will give the square of the number as output..it takes numbers from 1 to 100!!! how to test it???

6 Answers   ACS,


Mapping the test cases with the requirement. What is this process called?

6 Answers   iSoft,


What techniques will cause double-byte problems to show up?

0 Answers  


Hi, Plz have a look on the following questions? Test Life Cycle, Regression,Performance, diff b/w system & integration, SDLC..

2 Answers   Virtusa,


what is CMMI and CMM standards and what r software Quality certifications.please explain me clearly

3 Answers  


What is CRUD testing

2 Answers   IBM,


1.what is function incrementation and Bing- Bang 2. Drivers are also known as: a. Spade b. Test harness c. scaffolding

1 Answers   ISTQB,


Categories