Bankai Infotech
MoonPay Interview Questions and Answers
Q1. Right positive or negative coupon code based on minimum amount and maximum amount
Generate a coupon code based on minimum and maximum amount
Determine the range of amounts for the coupon code
Generate a random code within that range
Assign positive or negative based on the criteria
Q2. SQL query for order all the employees in ascending order
Use SQL query with ORDER BY clause to order employees in ascending order.
Use SELECT statement to retrieve employee data
Add ORDER BY clause with the column you want to order by
Specify ASC keyword for ascending order
Example: SELECT * FROM employees ORDER BY employee_id ASC;
Q3. Write the xpath for MakeMyTrip datepicker
The xpath for MakeMyTrip datepicker can be written using unique attributes of the datepicker element.
Use unique attributes like class, id, or data-testid to locate the datepicker element
Consider the structure of the datepicker and its parent elements when writing the xpath
Use indexes or sibling relationships if necessary to pinpoint the datepicker element
Q4. Difference between smoke and sanity testing
Smoke testing is a subset of regression testing, focusing on basic functionality, while sanity testing is a subset of acceptance testing, focusing on specific areas.
Smoke testing is performed to check if the critical functionalities of the application are working fine after changes.
Sanity testing is performed to check if the specific areas of the application are working fine after changes.
Smoke testing is a shallow and wide approach, while sanity testing is a deep and narrow ...read more
Q5. Reverse string in java
Reverse a string in Java using StringBuilder or iterative approach.
Use StringBuilder to reverse the string: StringBuilder sb = new StringBuilder(str); sb.reverse().toString();
Iterative approach: Convert the string to char array, swap characters from start and end indexes until middle is reached.
Q6. Post and Get Method difference
Post method is used to send data to a server while Get method is used to retrieve data from a server.
Post method is used to submit data to a server for processing.
Get method is used to retrieve data from a server.
Post method is more secure than Get method as it does not expose data in the URL.
Get method has a limit on the amount of data that can be sent while Post method does not have any such limit.
Examples of Post method include submitting a form, uploading a file, etc.
Exam...read more
Interview Process at MoonPay
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month