Royal
BAN USER- 0of 0 votes
AnswersWhat are Unit and Integrationtesting.
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
Answershow do you test elevator
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 2 votes
AnswersDifference between blackbox and whitebox
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
AnswersWAP to check if a binary tree is balanced
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
AnswersWrite a program to check if a binary tree is balanced
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 1of 3 votes
Answerwrite test cases to test amazon website
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer - -2of 2 votes
Answerwhat is accessibility testing.how do you test a website,mobile app for accessbility
- Royal in United States| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer
public Node mergelists ( Node head1, Node head2 )
{
Node Temp;
Node Head_mln;
Head_mln = head1;
while ( head2.next != null && head1.next != null )
{
Temp = head2.next;
head2.next = head1.next;
head1.next = head2;
head1 = head2.next;
head2 = Temp;
}
if (head2.next == null)
{
Temp = head1.next;
head1.next = head2;
head2.next = Temp;
}
elseif (head1.next == null)
{
head1.next = head2;
}
return Head_mln;
}
public int findNumber2(int amount, int[] coins)
{
int a, b, c, d, count = 0;
a = amount / coins[0];
b = amount / coins[1];
c = amount / coins[2];
d = amount / coins[3];
for (int i = 0; i <= a; i++)
{
for (int j = 0; j <= b; j++)
{
for (int k = 0; k <= c; k++)
{
for (int l = 0; l <= d; l++)
{
if ((coins[0] * i + coins[1] * j + coins[2] * k + coins[3] * l) == amount)
count++;
}
}
}
}
return count;
}
public bool iswellformed(string str)
{
Stack<char> s = new Stack<char>();
if (str.Length == 0)
return false;
for (int i = 0; i < str.Length; i++)
{
if ((str[i]=='{') || (str[i]=='[') || (str[i]=='('))
{
s.Push(str[i]);
}
else if ((str[i] == '}') || (str[i] == ']') || (str[i] == ')'))
{
if (s.Count == 0)
return false;
char pop = s.Pop();
if ((str[i] != '}' && pop=='{') || ((str[i] != ']') && pop =='[') || ((str[i] != ')')&& pop=='('))
return false;
}
}
if (s.Count != 0)
return false;
return true;
}
UI validation:validate all fields in the page
Name
enter huge number of charecters
enter blank
enter numeric,alpha,special charecters,allphanumeric special
phone:
numeric
alphanumeric,special charecters
less than 10,more than 10 digits
invalid phone
valid phone
dob:
numerical input
charecter input
alphanumerical input
special charecter input
different types dateformat:mm/dd/yy
mm/dd/yyyy
dd/mm/yyyy
invalid date:month >12 date >31
negative date
upload pic:
upload Jpg,Tif,gif,bmp,png
upload non image formats .doc,pdf,xls,.txt etc
upload huge file
upload small file
upload empty file
chose exam center:
select radiobuton
select 2 or more radiobuttions
select nothing
check default value
highest degree:
select on option
select morethan one using control
select none
check default value
submit button
click submit with no values entered
click submit with valid values and validate the data stored
Did you read the question.. the output should be {12,12,10,10,10,2,10,10,3,2}
- Royal March 03, 2014