Barclays
10+ Mroads Interview Questions and Answers
Preeti has decided to go to the Grand Mall to buy some stuff for her father’s birthday. On reaching the place, she found a fascinating shop that has an unlimited quantity of each item they sell. T...read more
Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the change? The order of coins doesn’t ma...read more
It was a Technical round. The level was medium.
Technical Questions-
1. What is Multi-Threading?
2. Give differences between Java and C++
3. OOPs Concepts.
4. Some basic SQL Queries.
5. Why is Ja...read more
Given a boolean 2D matrix. The task is to find the number of distinct islands where a group of connected 1s (horizontally or vertically) forms an island. Two islands are considered to be distinct...read more
Ninja has been given a dictionary of words ‘WORDS’ of length ‘N’ and a sentence ‘SENTENCE’ consisting of words separated by a single space. Ninja has to make the ‘SENTENCE’ as small as poss...read more
Given a graph with N nodes, numbered from 1 to N and M edges. Determine if it is a tree ?
Q7. A shot fired from a gun pointing towards a tree full of birds. All birds left except one. Why ?
The one bird was already dead.
The bird was already dead before the shot was fired.
The bird was injured and unable to fly away with the rest of the birds.
The bird was a decoy bird used for hunting purposes.
The bird was a trained bird used for falconry.
10 were of aptitude, 5 from Data Structures and Algorithms, 3 from time complexity, 10 from Maths ( statistics, probability) , 10 from Database management system & Operating System.
Q9. Cut cake into 8 pieces .You can use knife 3 times only
Cut cake into 8 pieces using knife 3 times only.
First, cut the cake horizontally into two equal halves.
Then, cut the cake vertically into four equal pieces.
Finally, cut the cake horizontally again into eight equal pieces.
Make sure to use the knife efficiently to minimize the number of cuts.
Practice visualization before making the cuts to avoid mistakes.
Q10. Explain the background process that takes place during an atm transaction
ATM transaction involves multiple background processes including authentication, authorization, and communication with bank servers.
Customer inserts card and enters PIN
ATM authenticates the card and PIN
ATM requests authorization from bank server
Bank server verifies account balance and approves or denies transaction
ATM dispenses cash or completes other requested transaction
ATM updates account balance and sends transaction details to bank server
Q11. Give two tables perform different type of joins
Two tables performing different types of joins
Inner join: Returns rows when there is a match in both tables
Left join: Returns all rows from the left table and the matched rows from the right table
Right join: Returns all rows from the right table and the matched rows from the left table
Full outer join: Returns all rows when there is a match in either table
Q12. Can you catchup with new stack
Yes, I can catch up with new stack.
I have a strong foundation in software development and can quickly learn new technologies.
I have experience in adapting to new programming languages and frameworks.
I am proactive in keeping up with industry trends and continuously learning new skills.
I have successfully transitioned to new stacks in previous projects.
I can provide examples of projects where I quickly learned and utilized new technologies.
Q13. what is data encapsulation?
Data encapsulation is the concept of bundling data and methods that operate on the data into a single unit, known as a class.
Encapsulation hides the internal state of an object and only exposes the necessary functionalities through methods.
It helps in achieving data abstraction and information hiding.
Example: A class 'Car' encapsulates data like speed, color, and methods like accelerate() and brake().
Q14. multiple inheritance allowed in java?
No, multiple inheritance is not allowed in Java.
Java does not support multiple inheritance for classes to avoid the diamond problem.
However, multiple inheritance is allowed for interfaces in Java.
Example: class A extends B, C is not allowed, but interface X extends Y, Z is allowed.
Q15. diff btw static and final
Static is used to define class-level variables and methods, while final is used to define constants and prevent inheritance or modification.
Static variables and methods belong to the class itself, while final variables cannot be changed once initialized.
Static members can be accessed without creating an instance of the class, while final members must be accessed through an instance.
Static variables are shared among all instances of a class, while final variables are unique to...read more
Q16. expalin the project
Developed a web-based project management tool for tracking tasks and deadlines.
Used HTML, CSS, and JavaScript for front-end development
Implemented backend functionality using Node.js and MongoDB
Incorporated user authentication and authorization features
Utilized RESTful APIs for communication between front-end and back-end
Top HR Questions asked in Mroads
Interview Process at Mroads
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month