Imagine you are tasked with creating a test plan for a new inventory management system for a company. Describe the steps and key elements you would include in your test plan to ensure comprehensive and effective coverage of the system.
Please sign-in to view the solution
Provide test data for a program whose functionality is to find the second smallest number in a set. Include various cases such as typical, edge, and erroneous scenarios to ensure comprehensive testing of the function.
Please sign-in to view the solution
Explain basic Linux commands, focusing on how to manage background tasks. Include examples to illustrate their usage.
Please sign-in to view the solution
- Provide detailed test cases for an Amazon Shopping Cart. Consider various functionalities and edge cases.
- You are hosting a web app on your server that is usually accessible only to a specific set of people. However, on an unusual day, the web app is accessible to everyone. How would you troubleshoot this issue? Describe the steps you would take.
Please sign-in to view the solution
Explain and provide examples of software testing and development coding questions that involve basic data structures. Consider questions that cover arrays, linked lists, stacks, and queues. Provide a detailed solution for each example.
Please sign-in to view the solution
Briefly explain the Software Testing Life Cycle (STLC). Describe each phase and its significance in the testing process.
Please sign-in to view the solution
You are working as a QA Analyst at Amazon and the company recently added a new feature to the Amazon Pay service that enables cryptocurrency transactions. Explain what regression testing is and how you would design a regression test plan for this new feature to ensure it does not break existing functionalities, particularly focusing on payment processing and account management.
Please sign-in to view the solution
You are analyzing sales data and notice that there are anomalies in the data for several key regions over the past quarter. Specifically, the sales figures for certain products are either too high or too low compared to historical data. Describe a step-by-step approach to identify and address these anomalies using SQL and Python.
Please sign-in to view the solution
What is software testing? Explain its importance in the software development lifecycle (SDLC) and highlight some common types of software testing.
Please sign-in to view the solution
Write the test case enumeration for PhonePe UPI.
Please sign-in to view the solution
Write a Python function that takes a string and returns a new string that contains only the characters at even indices. Demonstrate the function with an example.
Please sign-in to view the solution
What is functional testing? Explain its importance in software development and provide an example of a functional test case.
Please sign-in to view the solution
What is testing? Why is it required in SDLC?
Please sign-in to view the solution
Test scenario was Banking Application:
- Registration page
- Login page
- Transaction
- Ticket raise
types of testing: -> functional and non functional and its differences -> monkey testing -> guerrilla testing -> unit testing -> integration testing -> system testing -> acceptance testing and a lot more.
Please sign-in to view the solution
Write a function in any programming language you know to automate a test.
Please sign-in to view the solution
Given a string, write a function in Python to remove all duplicate characters while preserving the original order of characters.
Please sign-in to view the solution
Write a function in Python to traverse an array both from back to front and vice versa. Print the elements in both orders.
Please sign-in to view the solution
As a software engineer, you are tasked with optimizing a given piece of code to improve its efficiency in terms of Big O notation. Describe at least five general strategies you would employ to enhance the code's performance.
Please sign-in to view the solution
You are tasked with testing the login page of an e-commerce website. The login page requires two fields: Email and Password. Describe the test cases you would write to ensure the login functionality works correctly. Consider both functional and non-functional aspects.
Please sign-in to view the solution
Explain Positive Value Analysis, Negative Value Analysis, and Boundary Value Analysis with examples. Provide a scenario where these testing techniques would be applied and illustrate the expected outcomes.
Please sign-in to view the solution
What is the difference between Compatibility Testing and Integrity Testing in the context of software and data systems? Provide a detailed comparison highlighting the purpose, scope, and techniques used in each type of testing.
Please sign-in to view the solution
Explain the difference between database testing and backend testing in the case of the Amazon login page.
Please sign-in to view the solution
Write test cases for a function which implements the addition of two numbers.
Please sign-in to view the solution
Given a string, remove the consecutively repeated characters. For example - aabbbcabcbb
to cabc
.
Please sign-in to view the solution
Write a code to convert a string such as aaabbccdaa
to a3b2c2d1a2
.
Please sign-in to view the solution
Compress a string. For example, aaabbbcccccddddd
should be converted to a3b3c4d4
.
Please sign-in to view the solution
Given a scenario for a flight travel company write a test plan and test case.
Please sign-in to view the solution
Write test cases about the shopping cart.
Please sign-in to view the solution
What are the test cases for an elevator system?
Please sign-in to view the solution
Imagine you are a Data Analyst at Amazon working on improving the product recommendation algorithm. You are given a dataset with user_id, product_id, rating, and timestamp. Your task is to identify the top 5 most popular products (most purchased) in the last 30 days. What steps would you take to solve this problem using Python and SQL?
Please sign-in to view the solution
Given a string and a character, write a function in Python to count the number of times the character occurs in the string.
Please sign-in to view the solution
Given a sentence, write a function in Python to find the longest palindromic substring within it. A palindrome is a string that reads the same backward as forward.
Please sign-in to view the solution
As a QA Engineer, you encounter a situation where an issue could be either on the server-side or the client-side of an application. Describe the steps you would take to determine and prove that the issue is on the client side and not on the server side.
Please sign-in to view the solution
Explain the use of the HAVING clause and Aggregate Functions in SQL. Provide examples of SQL queries that demonstrate their usage with a detailed explanation for each.
Please sign-in to view the solution
Explain the concepts of Automation Frameworks with a focus on Cucumber and JUnit. Provide an overview of their functionalities and how they can be used together for effective testing. Include examples of how to set up and use these tools to automate test scenarios.
Please sign-in to view the solution
How is requirement gathering & analysis different in the Software Development Life Cycle (SDLC) and the Software Testing Life Cycle (STLC)?
Please sign-in to view the solution
You are analyzing sales data and notice that there are anomalies in the data for several key regions over the past quarter. Specifically, the sales figures for certain products are either too high or too low compared to historical data. Describe a step-by-step approach to identify and address these anomalies using SQL and Python.
Please sign-in to view the solution
What is Integrity Testing in the context of data systems? Describe its importance and a common approach to perform integrity testing when migrating data from one system to another.
Please sign-in to view the solution
What's the difference between test data and train data in your project?
Please sign-in to view the solution
What is performance testing? How is it different from functional testing?
Please sign-in to view the solution
Given an array, locate the three greatest numbers and print their product.
Please sign-in to view the solution
Find the number of occurrences of each character in a given string.
Please sign-in to view the solution
Given an array of strings, find the common prefix among them.
Please sign-in to view the solution
Write a test case about Amazon users' shopping process.
Please sign-in to view the solution
Provide Selenium automation code to locate the element through XPath and validate a given test case.
Please sign-in to view the solution
A thought question: think up as many tests and contingencies as you can if you were to design the Amazon web store review system from scratch.
Please sign-in to view the solution
Write a program that takes a list of integers and a list of pairs of indices as input. The program should swap the elements at the given indices for each pair. Provide an example to illustrate the functionality.
Please sign-in to view the solution
Write a program that takes a 2D matrix as input and outputs the elements in spiral order. Provide an example to illustrate the functionality.
Please sign-in to view the solution
Write a routine in Python to parse a log file. The routine should extract and display all log entries that match a specific log level (e.g., ERROR, WARNING, INFO). Provide an example of how the routine processes a sample log file and filters entries based on a given log level.
Please sign-in to view the solution
Write a Python program to read through a text file, extract telephone numbers and email addresses, and save them into another file. Provide an example of how the program works, including sample input and the expected output.
Please sign-in to view the solution
State and explain some key functions of popular machine learning libraries such as Scikit-Learn, TensorFlow, and PyTorch. Provide examples of how these functions are used.
Please sign-in to view the solution
What are the different types of testing involved in software testing?
Please sign-in to view the solution
Write a program to group anagrams from a given list of strings. This is a common problem on LeetCode.
Please sign-in to view the solution
Develop a test plan and test strategy for an Automated Parking Kiosk System.
Please sign-in to view the solution
Given a database table Sales
with columns Date
, Product_ID
, and Sales_Amount
, write an SQL query to calculate the monthly sales total for each product. Ensure the result is sorted by Product_ID
and Month
.
Please sign-in to view the solution
As a QA Engineer, you are tasked with writing test cases for the search button functionality on an e-commerce website. The search feature allows users to search for products using keywords. List and describe at least five test cases you would execute to ensure the search button works correctly.
Please sign-in to view the solution
Write a function in Python to find the sum of all digits in a given number.
Please sign-in to view the solution
- Given a number, find the nearest palindrome.
- Given an array of length
n
containing numbers between 1 to 99, print the last two digits of the result after multiplying alln
numbers in the array.
Please sign-in to view the solution
As a QA Engineer, you are tasked with testing the 'Add Pay Card' page of an application. Describe the key test cases you would write to ensure that this functionality works correctly.
Please sign-in to view the solution
Write a function in Python to check if the binary representation of a given number is a palindrome. A palindrome is a sequence that reads the same backward as forward.
Please sign-in to view the solution
Assume you are watching Amazon Prime on a laptop and all of a sudden it stops working. Describe the steps you would take to debug this issue.
Please sign-in to view the solution
How would you automate an API that retrieves bank and card holder information when given a credit card number as input?
Please sign-in to view the solution
- Write test cases for a video calling app on a mobile device.
- Write a program to find consecutive duplicate letters in each word of the sentence and print the sentence without duplicate letters.
- Find a series of numbers in an array which gives the sum value as 3.
Please sign-in to view the solution
Write a function in Python and Java to find the union of two strings. The union of two strings includes all unique characters present in either of the strings.
Please sign-in to view the solution
Given a list of integers, write a function to group all positive numbers, zeros, and negative numbers together without using any additional data structures like sets or collections. Maintain the original relative order of elements within the same group. For example, if the input list is [4, -1, 0, 3, -2, 0, 1]
, the output should be [4, 3, 1, 0, 0, -1, -2]
.
Please sign-in to view the solution
Given an unsorted list of integers, write a function to find the second largest value in the list. You are not allowed to sort the list or use any built-in functions that directly identify the largest or second largest values. For example, if the input list is [3, 1, 4, 1, 5, 9, 2, 6]
, the output should be 6
.
Please sign-in to view the solution
- How would you test the search form on Amazon?
- Write a simple program in Java to get the second greatest number in an array.
Please sign-in to view the solution
Write a function in Python to find a pair of numbers in an array such that their product is the maximum possible.
Please sign-in to view the solution
Write a function in Python to check if the first string is an anagram of the second string. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Please sign-in to view the solution
Write a function in any language that will print "AN" if a number is divisible by 8, "ANIM" if divisible by 16, and "ANIMAL" if divisible by 32.
Please sign-in to view the solution
Write a class representation of a deck of cards (52 cards) in Python and Java that includes shuffle and deal methods.
Please sign-in to view the solution
Write a function to reverse a linked list in groups of K (any number) in Python and Java.
Please sign-in to view the solution
Given a string sentence, write a function to reverse the order of words without using any library functions for reversing strings or splitting words. For example, if the input string is 'The quick brown fox', the output should be 'fox brown quick The'.
Please sign-in to view the solution
As a QA Engineer, you need to test a chat bot option integrated into a web page. Describe the key test cases you would write to ensure that the chat bot functions correctly and provides a good user experience.
Please sign-in to view the solution
Given a string in a character array, write a function in Java to remove subsequent duplicate characters until we get a unique set of characters.
Example:
- Input:
apple
- Expected Output:
ale
- Expected Output:
- Input:
appapple
- Expected Output:
le
- Expected Output:
The input will be in the form of a character array.
Function Signature:
char[] removeDupes(char[] inputString);
Please sign-in to view the solution
Write a function to find the shortest path between two points on a 2D matrix. The matrix contains cells that can either be empty (0) or blocked (1). You can move up, down, left, or right but cannot move through blocked cells.
Please sign-in to view the solution
What is binary search?
Please sign-in to view the solution
What is a Binary Search Tree? What is a Doubly Circular Linked List?
Please sign-in to view the solution
Imagine Amazon wanted a file uploader project from you. What would the detailed test plan for this project?
Please sign-in to view the solution
Write a function in Python and Java to check if parentheses are closed correctly in a given string. The function should support different types of parentheses: ()
, {}
, and []
.
Please sign-in to view the solution
Given a list of integers ranging from 1 to 100, write a function to identify and return the prime numbers from the list. For example, if the input list is [10, 15, 23, 50, 7]
, the output should be [23, 7]
.
Please sign-in to view the solution
As a QA Engineer, you encounter a bug that appears to affect some users, but you are unable to reproduce it. Describe the steps you would take to investigate and resolve this issue.
Please sign-in to view the solution
- Write a function to find the closest palindrome number to a given number.
- Write a function to determine if an array contains duplicate numbers.
- Write a function to print numbers in a rhombus shape:
1 121 12321 121 1
Please sign-in to view the solution
Given an array with numbers from 1 to 5, write a function in Python to subtract one number from each index.
Please sign-in to view the solution
As a QA Engineer, you need to write integration test cases for the WhatsApp application. What key scenarios would you include to ensure the application works correctly across different components?
Please sign-in to view the solution