Interview Questions-2 - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions) +--- Thread: Interview Questions-2 (/Thread-Interview-Questions-2) |
Interview Questions-2 - supputuri - 06-02-2012 Hi Friends, I want to post Interview Questions every day. So that the people who are under trails can get familiarize with the QTP and it's related questions. So here are the questions for today...... '******************************************************** 1) How you will write a recursive function to get the Fibonacci series? 2) How you will display all the upper case alphabet characters in reverse order except the characters mentioned in the string. Eg: if my string is "Sri" then the result should have all the alphabets from "Z to A" except the following letters "S","R" and "I". 3) What is the difference between byte comparison and text comparison in instr function? 4) What is ANSI character code, how "a" is different from "A"? 5) How you will get the number of ".xls" files present in all the sub-folders present in the specified path? '******************************************************** RE: Interview Questions-2 - eswar - 07-27-2012 For 2nd Question the reply is Code: 'Taking All the Alphabets at iniative and reversing the string Now Enjoy RE: Interview Questions-2 - elango87 - 12-07-2012 For the 1st question, 1) How you will write a recursive function to get the Fibonacci series? Code: Dim i,j,k RE: Interview Questions-2 - kotaramamohana - 06-24-2014 1) How you will write a recursive function to get the Fibonacci series? ANS: Code: Fibonacci(inputbox("Enter Number")) |