Recro | SDE-2 | Bangalore | August 2023 | Reject
Anonymous User
755

Online Assessment

Total 12 questions.

  1. 10 MCQ questions.
  2. 2 coding questions.image
    image

Technical Interview

  1. Given a input array of houses {0, 31, 65, 80, 121, 190, 203} and maxDistanceOfMailBox from house is 50.
    come up with minimum number of mailboxes needs to be installed in the city.

  2. Given a linked list.

     Input : 1->2->3->4->5->null , n=2
     Ouptut: 2->1->4->3->5->null
    
     Input : 1->2->3->4->5->null , n=3
     Output : 3->2->1-.5->4->null
     
  3. Predict Output.

     interface DemoA
     {
     	public void demo();
     }
    
     class DemoB implements DemoA
     {
     	public void demo()
     	{
     		//
     	}
     }
     
     class DemoC implements DemoA
     {
     	public void demo()
     	{
     		//
     	}
     }
    
     class D
     {
     	@Autowired
     	private DemoA demoA
    
     	public void demoMine()
     	{
     		demoA.demo();
     	}
     }
     
  4. Given User entity come up with URL and method types for following use cases.

     1. findAllUsers
     2. findUserById
  5. Come up with ShoppingCart modelling to support following use cases,

     1. User should be able to add product in the cart
     2. user should be able to remove product in the cart
     3. user should be able to list products in the cart
  6. Explain Garbage Collection and its types.

Comments (1)