| Back to Questions Page |
| Question |
CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
t=0;
for(i=n; i>0; i--)
{
t|=(1<<p);
p++;
}
t=t&y;
x=x&t;  |
0 | Mohammed Sardar |
| |
| |
| Answer |
Sorry above answer ; I did a mistake
t=0;
for(i=n; i>0; i--)
{
t|=(1<<p);
p++;
}
x=x&~t
t=t&y;
x=x|t;  |
0 | Mohammed Sardar |
| |
| |
| Answer |
t =((~(~0<<n))<<p)
x = x & ~t;
y = y & t;
x=x|y;  |
0 | Yash |
| |
| |
|
|
| |
| Answer |
It should be p--, not p++. for example y = 217 (11011001)
and you want to extract the least 4 SB then n = 4 and p = 3
(remember the number start from 0 to 7 in memory). After
executing this you will get x = 9 i.e 1001.
t=0;
for(i=n; i>0; i--)
{
t |= (1<<p);
p--;
}
x=x&~t;
t=t&y;
x=x|t;  |
0 | Rakesh |
| |
| |
| Question |
Two's compliment of -5 |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
first write the given number in it's binary format.
am considering only 8 bit at a time ,
5- 0000 0101
step 1: convert this binary format to one's compliment (ie)
change 0 to 1 and 1 to 0.
1111 1010
step 2: add 1 to the above binary format.
1111 1010
1
-----------
1111 1011
so this binary format will get stored in memory and the sign
bit will be set to 1.
always the negative number will be stored only in 2's
compliment..........
thank u  |
2 | Vignesh1988i |
| |
| |
| Answer |
Or in other words
~5+1  |
0 | Ataraxic |
| |
| |
| Answer |
ans: +5
-5 will be stored as 2's complement of 5
2's complement of -5, is thus 2 times 2's complement of 5.
so the ans is 5 itself.  |
0 | Ramprasad G |
| |
| |
| Question |
Write code for finding depth of tree |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
/*
* Simple tree node representation
*/
struct node_t {
struct node_t *left;
struct note_t *right;
};
/*
* Return the maximum depth of the tree given a pointer
* to its root node.
*/
unsigned int
tree_depth (node_t *root)
{
return (NULL == root) ? 0 :
MAX(tree_depth(root->left, root->right)+1);
}  |
0 | Crispin |
| |
| |
| Question |
Write code for atoi(x) where x is hexadecimal string. |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
int n=strlen(x) // where x is pointer to hex string
int sum=0;
int leftshift=0;
while(n>0)
{
if((x[n-1]>='0') && (x[n-1]<='9'))
sum+=(x[n-1]-'0')<<leftshift;
if((x[n-1]>='A') && (x[n-1]<='F'))
sum+=(x[n-1]-'A'+10)<<leftshift;
if((x[n-1]>='f') && (x[n-1]<='f'))
sum+=(x[n-1]-'a'+10)<<leftshift;
n--;
leftshift+=4;
}  |
5 | Mohammed Sardar |
| |
| |
| Answer |
int n=strlen(x) // where x is pointer to hex string
int sum=0;
int leftshift=0;
while(n>0)
{
if((x[n-1]>='0') && (x[n-1]<='9'))
sum+=(x[n-1]-'0')<<leftshift;
if((x[n-1]>='A') && (x[n-1]<='F'))
sum+=(x[n-1]-'A'+10)<<leftshift;
if((x[n-1]>='a') && (x[n-1]<='f'))
sum+=(x[n-1]-'a'+10)<<leftshift;
n--;
leftshift+=4;
}  |
5 | John Huang |
| |
| |
| Question |
What are bit fields? What is their use? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Bit fields can only be declared inside a structure or a
union, and allow you to specify some very small objects of a
given number of bits in length. Their usefulness is limited
and they aren't seen in many programs, but we'll deal with
them anyway.  |
0 | Ravi Joshi |
| |
| |
| Question |
What are data breakpoints? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Superhuman |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Debuggers allow a user to halt a program and examine its
state. The debugger stops execution when some user-specified
condition is satisfied: Code breakpoints halt program
execution when a particular instruction is executed. Data
breakpoints halt program execution when a variable is
referenced. Code breakpoints are supported directly in
hardware on most machines and are fast. Data breakpoints,
however, are notoriously slow.  |
0 | Ravi Joshi |
| |
| |
| Question |
One very small question, If application/ website performing
all the function perfectly like submission, deletion,
editing etc, why do we require Data base testing
saparately. Please understand before reply thanks !! |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Less Than You |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Even when the application is working fine, we need to
ensure the performance of the application is good.
Hence performance testing has to be done.  |
0 | Priya |
| |
| |
| Answer |
Database testing is required to ensure the there is no constraint violence in the db. i.e while deleting any data, its not deleting any other data which is not supposed to be deleted. Again while adding we have to make sure that other than the expected tables, all tables remains intact.  |
0 | Neeo |
| |
| |
| Question |
How would you parameterize the text field "Country" and the
same "country" when it appears as combo field
on other page with text field city and same with City combo
field? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Reetha |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
I think the question says that , there are 2 diff combo
boxes with the same name , Now how to parametrize them ?
as far as parametrization is concerned it can be done
easily once the objects are diffrentiated .For the objects
to be diff. recognized by QTP. You can add properties to
the objects eg. index,size,hieght,width etc to difff. And
then apply any parametrization u like.  |
0 | Puneet |
| |
| |
| Question |
How to parameterize a text field and the same field as
combo field on next page. Means inserting values in Text
field will appear in the combo field. for example country
name, state name. Kindly reply it is urgent !!! |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Reetha |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
Try the insert outpot value feature of QTP. That is
designed for such scenarios only.
Please let me know if it helps.
Regards,
Jay Prakash  |
0 | Jay Prakash |
| |
| |
| Question |
Arrange the word MAIURAD to form a city. What would be the
starting character of the city?
|
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
M  |
1 | Yuva |
| |
| |
| Answer |
Madurai .......... starting character is M  |
3 | Rajeswari |
| |
| |
| Answer |
madurai  |
0 | Guest |
| |
| |
| Answer |
madurai  |
0 | Vishakha |
| |
| |
| Answer |
madurai  |
0 | Anitha Aswini |
| |
| |
| Answer |
Madurai  |
0 | Atul |
| |
| |
| Answer |
MADURAI. 'M' is the starting character
thank u  |
0 | Vignesh1988i |
| |
| |
| Answer |
M
Madurai
 |
0 | Guest |
| |
| |
| Answer |
the word is
MADURAI NO OTHER THAN  |
0 | Ustaad |
| |
| |
| Answer |
Madurai is the city name..
And starting letter is M..  |
0 | Namitha |
| |
| |
| Answer |
MADURAI.'M' would be the starting character  |
0 | Bavas Ahamed.r |
| |
| |
| Answer |
answer is madurai  |
0 | Vasu |
| |
| |
| Question |
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Manoj Jha |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
n&0x11111110  |
4 | Raj |
| |
| |
| Answer |
#define TURN_OFF_BIT_LAST(x) ((x) & ~1)  |
4 | Mohit Jain |
| |
| |
| Question |
Could someone answer the following testing Questions?
1)Give 5 reasons why a build can be released with bug
2)Write a bug report for a word processor program which
crashes when the
contents of 89th column is been sorted in assending order.
3)write test 10 cases for program which has a table with 2
fields of NAME
od char type and CLASS of INT type.NAME fields is truncated
after 26
charaters and CLASS takes value between 1 to 9 both included.
There are 3 possible opearations program can perform
a)When a new student joins the class the program adds a new
field
b)When student leaves the class the field get deleted
c)when student gets promoted then program incremts the class
by 1
Write 5 test cases for the scenario.
4)write 10 test cases for a program that takes date in
dd/mm/yyyy format
and prints it out with a increment of 1.
for dates (dd) can be given in the range 1<=dd>=30
for months (mm) can be given in the range 1<=mm>=12
for years(yyyy) can be given in the range 1600<=yyyy>=9999
5)Give 5 bugs that could cause a program to crash when it
printed the
999999 th pages 1000001th line.
|
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Arch |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
1)Give 5 reasons why a build can be released with bug
A:The build is not released with bugs.To know whether the
application is working according to requirements the build
is tested.but intentionally the build is not released with
bugs.
reasons may be:
1.poor requirements
2.developers may not have preior experience
3.mis communication between the team
4.changing requirements
5.time pressure
6.software complexity  |
0 | Shailaja |
| |
| |
| Answer |
Build can be released with bug only with the following
scenarios.
1 Bug severity is not effecting the functionality of
product.
2 Test team has got the update that in the next build this
bug will be fixed.
3 Time constraint.  |
0 | Kapil |
| |
| |
| Answer |
1)
a) Bug is of low severity and an alternate is available.
b) The module containing bug is isolated from the intended
users.
c) Bug is not on priority for the BAs to be resolved in
that release cycle.
d) Bug is cosmetic and of low priority.
e) Time constraing unless the bug is a major OR critical
one.
2)
Application: Word processor program i.e. WPP
Severty: Critical
Priority: Major
Platform: Microsoft XP (SP 3)
Reproducibility: Everytime
Issue: WPP which crashes when the contents of 89th column
is been sorted in assending order.
Steps to Reproduce:
1. Start WPP
2. Add 100 columns
3. Add 2 rows
4. Add data in rows
5. Apply Ascending filter on row 89th by navigating Data
tab > Filter
6. Click on Filter icon button on 89th column
7. Once data in the colmn is arranged in Descending order,
again click on Filter icon button on 89th column to have
data in ascending order
Instead of re arranding data, WPP crashes.
3)
1. Try to add a student for 15 for class 1-9, it should be
added.
2. Try to add a student for 0 character for class 1-9, It
should not be saved as name is required.
3. Try to add a student for 27 character for class 1-9 and
validate truncation of name upto 26th character.
4. Try to add a student for 1 character for class 1-9, It
should be added
5. Try to add a student for 26 character for class 1-9, It
should be added
6. Try to add a student for 1-26 characterm for class 0, It
should not be added
7. Try to add a student for 1-26 character for class 1, It
should be added.
8. Try to add a student for 1-26 character for class 5, It
should be added.
9. Try to add a student for 1-26 character for class 9, It
should be added.
10. Try to add a student for 1-26 character for class 10,
It should NOT be added as there is no class 10th.
Duplicacy:
While saving duplicate data for same class, system should
alert user to save the name in a different format? But
since it is character type only. how would we do that? May
be DOB, Mother's maiden name
Student leave the program
11. Validate that student Name field Against the Class 1-9.
Removing duplicate data? System should alert by giving
details like Father Name, DOB, Mother's maiden name to
confirm deletion
12. Student gets promotion....
1. Class 1-8 gets promotion: Validate if class is
incremented by 1.
2. Class 1-8 gets promotion: Student name is entered
against incremented class.
3. Class 1-8 gets promotion: Name is deleted from previous
class for the student who is just promoted.
4. Class 9 student gets promotion: Validate if student Name
is deleted from class 9 who is just promoted.
4)
ddmmyy Boundry value Analysis Negative
0/0/1599 > Not Allwoed
0/0/10000 > Not Allwoed
0/0/1700 > Not Allwoed
0/1/1700> Not Allwoed
31/1/1700 > Not Allowed
1/0/1700 > Not Allwed
30/13/1700 > Not Allowed
31/13/1700 > Not Allwoed
0/12/1700 > Not Allowed
30/12/1700 > Allowed and validate if it prints in 31/12/1700
30/10/1599 > Not Allowed
30/10/10000 > Not Allowed  |
0 | Sandeep Garg |
| |
| |
| Answer |
0/0/1599 > Not Allwoed
0/0/10000 > Not Allwoed
0/0/1700 > Not Allwoed
0/1/1700> Not Allwoed
31/1/1700 > Not Allowed
1/0/1700 > Not Allwed
30/13/1700 > Not Allowed
31/13/1700 > Not Allwoed
0/12/1700 > Not Allowed
30/12/1700 > Allowed and validate if it prints in 31/12/1700
30/10/1599 > Not Allowed
30/10/10000 > Not Allowed  |
0 | Akhil |
| |
| |
| Answer |
Hi,
I am aware of these questions thanks for posting and these
are very helpful , one query can anybody post latest
question asked in August 2009 in Adobe
Thankful to all!!!!!
satijaa.tarun@gmail.com
Regards
Tarun  |
0 | Tarun |
| |
| |
|
| |
|
Back to Questions Page |