Premium Employer

Siemens

4.1
based on 4.7k Reviews
Filter interviews by

20+ Sumo Logic Interview Questions and Answers

Updated 4 Sep 2024
Popular Designations

Q1. Maximum Subarray Sum Problem Statement

Given an array arr of length N consisting of integers, find the sum of the subarray (including empty subarray) with the maximum sum among all subarrays.

Explanation:

A sub...read more

Add your answer

Q2. Count Inversions Problem Statement

Given an integer array ARR of size N, your task is to find the total number of inversions that exist in the array.

An inversion is defined for a pair of integers in the array ...read more

Add your answer

Q3. Remove Character from String Problem Statement

Given a string str and a character 'X', develop a function to eliminate all instances of 'X' from str and return the resulting string.

Input:

The first line contai...read more
Add your answer

Q4. Maximum Length Pair Chain Problem Statement

You are provided with 'N' pairs of integers such that in any given pair (a, b), the first number is always smaller than the second number, i.e., a < b. A pair chain i...read more

Add your answer
Discover Sumo Logic interview dos and don'ts from real experiences

Q5. Palindrome Linked List Problem Statement

You are provided with a singly linked list of integers. Your task is to determine whether the given singly linked list is a palindrome. Return true if it is a palindrome...read more

Add your answer

Q6. Search In Rotated Sorted Array Problem Statement

Given a rotated sorted array ARR of size 'N' and an integer 'K', determine the index at which 'K' is present in the array.

Note:
1. If 'K' is not present in ARR,...read more
Add your answer
Are these interview questions helpful?

Q7. Subset Sum Equal To K Problem Statement

Given an array/list of positive integers and an integer K, determine if there exists a subset whose sum equals K.

Provide true if such a subset exists, otherwise return f...read more

Add your answer

Q8. Middle of a Linked List

You are given the head node of a singly linked list. Your task is to return a pointer pointing to the middle of the linked list.

If there is an odd number of elements, return the middle ...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Matrix Transpose Problem Statement

Given a matrix MAT, your task is to return the transpose of the matrix. The transpose of a matrix is obtained by converting rows into columns and vice versa. Specifically, the...read more

Add your answer

Q10. Path Sum Calculation

You are provided with the root node of a binary tree containing 'N' nodes and an integer value 'TARGET'. Your task is to determine the number of leaf nodes for which the sum of the nodes al...read more

Add your answer

Q11. Overlapping Intervals Problem Statement

You are given the start and end times of 'N' intervals. Write a function to determine if any two intervals overlap.

Note:

If an interval ends at time T and another interv...read more

Add your answer

Q12. Check If Numbers Are Coprime

Determine if two given numbers 'a' and 'b' are coprime, meaning they have no common divisors other than 1.

Input:

t
a_1 b_1
a_2 b_2
...
a_t b_t

Output:

true / false
...

Example:

Input:
3...read more
Add your answer
Q13. What is meant by static and dynamic polymorphism?
Add your answer
Q14. You have 3 ants located at the corners of a triangle. The challenge is to determine the movement pattern of the ants if they all start moving towards each other. What will be the outcome?
Add your answer
Q15. What is abstraction in Object-Oriented Programming?
Add your answer

Q16. Do you know anything about cloud computing?

Ans.

Yes, cloud computing refers to the delivery of computing services over the internet.

  • Cloud computing allows users to access data and applications from anywhere with an internet connection.

  • It offers scalability, flexibility, and cost-effectiveness compared to traditional on-premises computing.

  • Examples of cloud computing services include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.

Add your answer

Q17. What is new in C# 10

Ans.

C# 10 introduces new features like file-scoped namespaces, global using directives, and interpolated string handlers.

  • File-scoped namespaces allow defining namespaces at the file level instead of wrapping everything in a namespace block.

  • Global using directives simplify the process of importing namespaces across the entire project.

  • Interpolated string handlers provide a way to customize how interpolated strings are processed.

Add your answer

Q18. What is oops concepts

Ans.

OOPs concepts are the principles of Object-Oriented Programming that help in designing and implementing software systems.

  • Encapsulation - bundling of data and methods that operate on that data

  • Inheritance - ability of a class to inherit properties and methods from its parent class

  • Polymorphism - ability of objects to take on multiple forms or behaviors

  • Abstraction - hiding of complex implementation details and showing only the necessary information

  • Examples: Java, C++, Python, Rub...read more

Add your answer

Q19. write program for finding duplicates

Ans.

Program to find duplicates in an array of strings

  • Iterate through the array and store each element in a hash set

  • If an element is already in the hash set, it is a duplicate

  • Return a list of all duplicates found

Add your answer

Q20. Implementation of OOPS

Ans.

OOPS (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.

  • OOPS focuses on the use of classes and objects to organize code and data

  • Encapsulation, inheritance, polymorphism, and abstraction are key principles of OOPS

  • Example: Inheritance allows a class to inherit properties and methods from another class

Add your answer

Q21. Design Patterns in C#

Ans.

Design patterns in C# are reusable solutions to common problems in software design.

  • Design patterns help in creating maintainable and scalable code.

  • Some common design patterns in C# include Singleton, Factory, Observer, and Strategy.

  • Each design pattern has its own purpose and can be applied in different scenarios.

  • Design patterns promote code reusability and improve code organization.

Add your answer

Q22. Write basic code

Ans.

Basic code example using an array of strings

  • Declare an array of strings in the preferred programming language

  • Initialize the array with some string values

  • Access and manipulate elements in the array as needed

Add your answer

Q23. Write simple profram

Ans.

A simple program to print 'Hello, World!'

  • Create a new file with a .py extension

  • Write 'print('Hello, World!')' inside the file

  • Save the file and run it using a Python interpreter

Add your answer

Q24. Oops concept in C#

Ans.

Oops concept in C# refers to Object-Oriented Programming principles like Inheritance, Polymorphism, Encapsulation, and Abstraction.

  • Inheritance allows a class to inherit properties and behavior from another class.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • Encapsulation hides the internal state of an object and only exposes necessary functionalities.

  • Abstraction focuses on the essential features of an object while hiding unne...read more

Add your answer

Q25. Explain oops concept

Ans.

OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.

  • OOPs focuses on creating objects that interact with each other to solve a problem

  • Key principles include Inheritance, Encapsulation, Polymorphism, and Abstraction

  • Inheritance allows a class to inherit properties and behavior from another class

  • Encapsulation hides the internal state of an object and only exposes necessary functionality

  • Polymorphism allows o...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Sumo Logic

based on 23 interviews
4 Interview rounds
Technical Round - 1
Technical Round - 2
HR Round - 1
HR Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.0
 • 131 Interview Questions
4.0
 • 105 Interview Questions
4.4
 • 85 Interview Questions
4.0
 • 35 Interview Questions
3.8
 • 35 Interview Questions
3.6
 • 12 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

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