Join Regular Classroom : Visit ClassroomTech

Razorpay Overall Interview Questions – codewindow.in

Hot Topics

Razorpay Solution

Technical Round

Design a modal from scratch.

To design a modal from scratch, you will need to consider several key elements:
  1. The trigger: This is the element that will initiate the modal, such as a button or link.
  2. The modal container: This is the element that will hold the content of the modal, such as a div.
  3. The modal content: This is the actual content that will be displayed within the modal container, such as text, images, or form fields.
  4. The close button: This is the element that will allow the user to close the modal, such as an “X” button.
<button id="modal-trigger">Open Modal</button>

<div id="modal-container" style="display: none;">
  <div id="modal-content">
    <p>Modal Content</p>
    <button id="modal-close">Close</button>
  </div>
</div>
You can then add some CSS to style the modal and JavaScript to toggle the modal’s visibility when the trigger button is clicked and close the modal when the close button is clicked.
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px #000;
}
const trigger = document.getElementById("modal-trigger");
const container = document.getElementById("modal-container");
const close = document.getElementById("modal-close");

trigger.addEventListener("click", () => {
  container.style.display = "block";
});

close.addEventListener("click", () => {
  container.style.display = "none";
});
This is a simple example, but you can use JavaScript libraries such as jQuery UI or Bootstrap to create more advanced modals with additional functionality.

Designing parking lot

Important features of OOPs are 
  • Inheritance: It is a concept of Object Oriented Programming in which a new class is created from the existing one.
  • Polymorphism: Poly means many and morph means form. A concept that enables programmers to assign a different meaning or usage to a variable, function or an object in different context.
 
Polymorphism can be of two types:
  1. Runtime Polymorphism
  2. Compile Time Polymorphism
  • Abstraction: Creating a new data type using encapsulated items that is well suited for an application.
  • Encapsulation: It is called data hiding and encapsulation is the way of packing data and function into a single unit to hide the implementation details of a class from outer world.
  • Method Overriding: In place of inheritance if the parent class and child class both have the same method signature then child class method overrides the parent class method.
  • Method Overloading: If a class has more than one method with the same method name with variety of parameter list then method will be overloaded.
  • Object: Object is the reality of a class.
  • Class: Class is a blue print of similar type of objects.
  • Constructor: Constructor is a special member function that is automatically invoked at the time of object creation and does not have any return type.

Tell me about the project that you have done but it is unsuccessful.

Tell about that project in which you get unsucess.

Which payment gateway is better for integration process for an android development company? Razorpay or Paytm

The choice between Razorpay and Paytm as a payment gateway for an Android development company depends on several factors. Both Razorpay and Paytm are popular payment gateway options in India and offer a range of payment options including credit/debit cards, net banking, UPI, and wallets. Here are some factors to consider when choosing between the two:
  1. Integration Process: Both Razorpay and Paytm offer easy integration processes for Android apps, but you should check which one provides better documentation and support for developers.
  2. Fees: Compare the fees charged by both gateways for transactions, as well as any additional costs for features such as subscriptions or refunds.
  3. Security: Ensure that the payment gateway you choose has robust security measures in place to protect sensitive customer information and prevent fraud.
  4. Customization: Check if the gateway provides customizable checkout pages, the ability to add logos and branding, and other customization options.
  5. Customer Support: Consider the level of support provided by the payment gateway, including online resources, email support, and phone support.
Ultimately, the best payment gateway for your Android development company will depend on your specific needs and requirements. It’s a good idea to do a thorough comparison of the features and costs offered by both Razorpay and Paytm before making a decision.

N Queens problem and puzzle.

The N Queens problem is a classic computer science problem that involves finding all possible ways to place N chess queens on an NxN chessboard such that no two queens threaten each other. A queen can attack horizontally, vertically, and diagonally. The problem can be framed as a constraint satisfaction problem, where the goal is to find a placement of N queens on the board that satisfies the constraints (i.e., no two queens share the same row, column, or diagonal).
The N Queens puzzle is a variant of the N Queens problem that involves finding a single solution instead of all possible solutions. It can be solved using a search algorithm such as backtracking, which starts by placing a queen in the first row and first column and then tries to place queens in subsequent rows and columns while keeping track of which positions are occupied and which are not. If a position is occupied or the queen threatens another queen, the algorithm backtracks and tries a different position. The algorithm continues until all N queens are placed on the board, or all possible positions have been tried and none work.
The N Queens problem has applications in various fields, including artificial intelligence, optimization, and computer graphics. It’s also a common example used to teach algorithms, especially for constraint satisfaction and backtracking.

Nagarro Solved

Automata Fixing

      

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories