Premium Employer

Maersk

4.3
based on 2.8k Reviews
Filter interviews by

10+ 20Cube Logistics Interview Questions and Answers

Updated 6 Jun 2024
Popular Designations
Q1. Sort 0 1 2

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' ...read more
View 5 more answers
Q2. Fourth Largest Element in the Array

You are given an array consisting of 'N' integers. You have to find the fourth largest element present in the array.

If there is no such number present in the array, then prin...read more

View 3 more answers
Q3. Is node present?

For a given Binary Tree of type integer and a number X, find whether a node exists in the tree with data X or not.

Input Format:
The first line of each test case contains elements of the first...read more
View 2 more answers
Q4. Remove Duplicates

Ninja is playing with numbers but hates when he gets duplicate numbers. Ninja is provided an array, and he wants to remove all duplicate elements and return the array, but he has to maintain th...read more

View 3 more answers
Discover 20Cube Logistics interview dos and don'ts from real experiences
Q5. Shortest path in an unweighted graph

The city of Ninjaland is analogous to the unweighted graph. The city has ‘N’ houses numbered from 1 to ‘N’ respectively and are connected by M bidirectional roads. If a road ...read more

View 2 more answers
Q6. Operating System

What is a semaphore?
What is race condition?

Add your answer
Q7. DBMS

Describe all the joins in SQL with a Venn diagram.

Add your answer

Q8. What is decorator in python

Ans.

Decorator in Python is a design pattern that allows adding new functionality to an existing object without modifying its structure.

  • Decorators are functions that take another function as an argument and extend its behavior without explicitly modifying it.

  • They are commonly used to add logging, timing, caching, or authentication to functions.

  • Syntax for using decorators in Python involves using the @ symbol followed by the decorator function name above the function definition.

  • Exa...read more

Add your answer

Q9. What is yeild in python

Ans.

yield is a keyword in Python used in generator functions to return a value without terminating the function

  • yield is used in generator functions to produce a series of values over time

  • When a generator function is called, it returns an iterator object but does not start execution immediately

  • Each time the yield statement is reached, the function's state is saved, and the value is returned to the caller

  • Execution of the function is paused until the next call to the generator's __n...read more

Add your answer

Q10. Architecture of current project

Ans.

The current project follows a microservices architecture.

  • The project is divided into multiple small services that communicate with each other through APIs.

  • Each service is responsible for a specific functionality.

  • The services are deployed independently and can be scaled as per the demand.

  • The project uses Docker containers for easy deployment and management.

  • The communication between services is secured using HTTPS protocol.

  • The project uses a message broker for asynchronous comm...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.1
 • 42 Interview Questions
2.0
 • 22 Interview Questions
4.0
 • 20 Interview Questions
4.1
 • 14 Interview Questions
3.5
 • 10 Interview Questions
4.0
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter