pal
BAN USER- 1of 1 vote
AnswersThere is a king, who has got 1000 bottles of Rum with him, of which One bottle contains poison. And he has any number of slaves. He has got 1 hour to decide which bottle contains Poison, and any slave who even takes a sip of the poison, dies within an hour. How many least number of slaves does the king need to use, to make out which bottle contains poison.
- pal in India| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Problem Solving - 0of 0 votes
AnswersYou need to write this program again, without using any library methods. Take the following inputs from user and print the following output.
- pal in India
1 1
1 11
0 011
1 0111
0 00111
0 000111
0 0000111
i.e if user types 1 then 1 will be at printed right shift, and 0 will be printed left shift.
Note: There is no definite count of number of Inputs user wants to give, or sequence of inputs user wants to give. User can give any number of inputs, and it should display the result as above.| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Coding - 0of 0 votes
AnswersYou have got 2 strings(S1, S2) and 1 character(c1). All inputs to be taken from user. You need to check for the character c1 in String S1, and wherever you find the character, you need to replace it with the string S2.
- pal in India
Next Write all possible test cases to test the program.
It can be possible that the character c1 is appearing more than once in the String s1.
Clause - You are not allowed to use any Java Library methods in it. Not even charAt() method.| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Coding - 0of 0 votes
AnswersA company has developed a browser. The browser has a Private browsing mode, like Incognito mode in Chrome browser. How will you test that browser on a mobile. Write all possible test cases for it.
- pal in India| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Testing - 0of 0 votes
AnswersWrite all test cases and Test data to test BODMAS rule in Maths.
- pal in India| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Testing - 0of 0 votes
AnswersYou are given a 3 * 3 Matrix -
- pal in India
3 -5 10
6 2 -1
2 6 1
Q: Find the sum of the elements of each rows, and each column, and then display row number \ column number having the maximum sum and the minimum sum.| Report Duplicate | Flag | PURGE
Amazon Quality Assurance Engineer Testing
a) Ping the Website Url from the local machine in india, to see if that website is up and running, by checking packets returned.
b) Check if the correct website URL is typed in the browser address bar.
c) Check if the port at which the website is hit, is supported by the host website. e.g. if user is trying to hit on https mode, and the website is actually hosted on http mode only.
d) Check for browser compatibility. Check if the browser or the version of the browser in which the website url is hit, is supported by the application.
e) Check for OS compatibility. Check for the OS on which the website url is hit, is supported by the application. for e.g we are trying to hit the url on a Windows XP (32-bit machine), but application is supported on a 64 bit machine.
f) Check if the application is not restricted on the www domain, and is registered on the US country dns only.
g) Check if the application has sensitive content which is not supposed to be shared with other countries, hence meant to be used in US only.
h) Check if the application is registered on US country domain like - Dot us, and thus not being accessible from India.
i) Check if the website is blocked on the India Country DNS to be used in India, and hence not accessible.
j) Check if the system from where user is trying to access the website, has firewall activated, which is restricting the site to be opened.
k) Check, if the time, when User is trying to access the system, is peak business hours \ usage hours, and the application is not hosted on a high performance server, thus it takes too much time to be loaded and user thinks its not working.
l) Probably there is some module in the application, which when accessed by some user in US, consumes too much system memory on server, or might be several threads which are consuming too much server memory, and thus slowing down the performance of the server. And Users from India trying to access that machine at that time faces performance issues, and application not opening.
m) User trying to use the application on some device like ipad, mobile on which it is not supported.
static String s ="";
- pal March 03, 2014public static void main(String args[])
{
Scanner in = new Scanner(System.in);
while (in.hasNext())
{
String str = in.nextLine();
if(str.equals("1") || str.equals("0"))
{
String s1 = testmethod(str);
System.out.println("s= "+s1);
}
else
return; // break; can also be used here.
}
}
public static String testmethod(String args)
{
if(args.equals("0"))
{
s = args+s;
}
else if(args.equals("1"))
{
s = s+args;
}
return s;
}