| Q1 |
How do you center a form? |
| Q2 |
Palindrome no?
|
| Q3 |
Remember to be yourself, know your strengths and be honest with the interviewer
7.Practice is the ... |
| Technical Interview Questions |
| Q.6 |
How do you center a form? |
| Ans. |
In the form properties, the startup position property is having two option regarding Center the form. |
| Q.6 |
Palindrome no?
|
| Ans. |
palindromes also offer another great string question.
write a function that tests for palindromes
bool isPalindrome( char* pStr )
if you start a pointer at the beginning and the end of the string and keep comparing characters while moving the pointers closer together, you can test if the string is the same forwards and backwards. notice that the pointers only have to travel to the middle, not all the way to the other end (to reduce redundancy).
bool isPalindrome( char* pStr )
{
if ( pStr == NULL )
return false;
char* pEnd = pStr;
while ( *pEnd != '\0' )
pEnd++;
pEnd--;
while(pEnd > pStr)
{
if ( *pEnd != *pStr )
return false;
pEnd--;
pStr++;
}
return true;
}
|
| Q.6 |
Remember to be yourself, know your strengths and be honest with the interviewer
7.Practice is the keys to interviewing
|
| Ans. |
35/45 |
| |