Oracle
600+ Suma Soft Interview Questions and Answers
Q601. Heap Sort with Max Heap
Heap Sort is a comparison-based sorting algorithm that uses a binary heap data structure.
Heap Sort involves building a max heap from the input array, then repeatedly removing the maximum element and rebuilding the heap.
The time complexity of Heap Sort is O(n log n) in the worst case scenario.
Example: Given an array [4, 10, 3, 5, 1], after applying Heap Sort, the sorted array would be [1, 3, 4, 5, 10].
Q602. detect cycle in directed graph
Detect cycle in directed graph using depth-first search algorithm.
Use depth-first search (DFS) algorithm to traverse the graph.
Maintain a visited set to keep track of visited nodes.
If a node is visited again during traversal, there is a cycle in the graph.
Q603. Write polyfill for array map
Polyfill for array map function in JavaScript
Create a function called myMap that takes a callback function as an argument
Loop through the array and apply the callback function to each element
Return a new array with the results of the callback function applied to each element
Q604. Challenging project so far
Designing a sustainable housing project in a remote area with limited resources
Overcoming logistical challenges such as transportation of materials
Finding innovative solutions for energy and water supply
Working closely with local community to ensure project sustainability
Q605. Race condition simulation
Race condition simulation involves creating scenarios where multiple processes access shared resources simultaneously.
Use multithreading to simulate concurrent access to shared variables
Introduce delays or randomization to increase likelihood of race conditions
Monitor for unexpected behavior or data corruption
Example: Simulating multiple threads incrementing a shared counter without proper synchronization
Q606. all oops concepts in detail
Object-oriented programming concepts like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q607. Find median of 2 arrays
To find median of 2 arrays, merge them and sort. Then return middle element or average of middle 2 elements.
Merge the 2 arrays into a single array
Sort the merged array
If the length of the merged array is odd, return the middle element
If the length of the merged array is even, return the average of the middle 2 elements
Q608. Sort using frequency
Sort an array of strings based on their frequency of occurrence.
Create a frequency map to count the occurrences of each string
Sort the strings based on their frequency in descending order
If two strings have the same frequency, sort them lexicographically
Return the sorted array
Q609. Handle objects in webtable
To handle objects in a webtable, you can use methods like findElement, getText, getAttribute, etc.
Use findElement method to locate the object in the webtable
Use getText method to retrieve the text of the object
Use getAttribute method to get specific attribute value of the object
Iterate through rows and columns to handle multiple objects in the webtable
Q610. Multiple window handles
Multiple window handles allow a QA engineer to interact with multiple browser windows during testing.
Window handles are unique identifiers assigned to each browser window opened by the application.
QA engineers can switch between window handles to perform actions on different windows.
Example: driver.getWindowHandles() in Selenium returns a set of window handles.
Example: driver.switchTo().window(handle) is used to switch to a specific window handle.
Q611. exception found while testing
When an exception is found while testing, it means that the software did not behave as expected.
Identify the root cause of the exception by analyzing the code and test cases.
Reproduce the exception to ensure it is consistent.
Document the exception with detailed information such as steps to reproduce, environment details, and screenshots.
Collaborate with developers to fix the issue and retest after the fix is implemented.
Q612. What is vcn in cloud
VCN stands for Virtual Cloud Network, which is a customizable and private network in the cloud.
VCN allows you to define your own IP address range, subnets, route tables, and gateways.
It provides isolation and security for your cloud resources.
You can connect multiple VCNs together or to your on-premises network using VPN or dedicated connections.
Q613. P2P Cycle explanation
P2P cycle involves the process of procuring goods or services from a supplier.
P2P stands for Procure to Pay cycle
It includes steps like requisition, purchase order, goods receipt, invoice receipt, and payment
Ensures proper controls and compliance with company policies
Integration with suppliers and financial systems is crucial
Q614. linux booting process
Linux booting process involves several stages from power on to user login.
BIOS/UEFI firmware initializes hardware
Bootloader (GRUB) loads kernel into memory
Kernel initializes system processes and mounts root filesystem
Init process starts user space processes and services
User login prompt is displayed
Q615. OOPS concept with examples
OOPS concept refers to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: Parent class 'Animal' and child class 'Dog'.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: Class 'Car' with private variables like 'speed' and methods like 'accelerate'.
Polymorphism: Ability to present the same inte...read more
Q616. design payments infrastructure
Designing a robust and scalable payments infrastructure for efficient transactions.
Identify the requirements of the payments system, including transaction volume, security, and integration with existing systems.
Choose appropriate payment methods such as credit/debit cards, digital wallets, and bank transfers.
Implement secure payment gateways to process transactions securely and efficiently.
Consider compliance with regulations such as PCI DSS for handling payment card data.
Ens...read more
Q617. explain your framework
My framework is a data-driven framework using Selenium WebDriver and TestNG for automated testing.
Utilizes Selenium WebDriver for interacting with web elements
Uses TestNG for test case management and execution
Employs data-driven approach for test data management
Supports parallel execution for faster testing
Includes reporting features for test results analysis
Q618. Major issues faced
Major issues faced include data quality, lack of resources, and changing regulations.
Data quality issues leading to inaccurate analysis
Lack of resources such as budget or skilled staff
Changing regulations impacting analysis and decision-making
Q619. Explain urself
I am a detail-oriented business analyst with strong analytical skills and experience in data analysis and project management.
Experienced in conducting market research and identifying business opportunities
Skilled in data analysis and visualization using tools like Excel and Tableau
Proficient in project management methodologies like Agile and Waterfall
Strong communication and interpersonal skills for effective collaboration with stakeholders
Passionate about continuous learning...read more
Q620. Multiply to strings
To multiply two strings, convert them to integers, multiply them, and convert the result back to a string.
Convert the strings to integers using parseInt()
Multiply the integers together
Convert the result back to a string using toString()
Q621. Camel banana problem
The Camel Banana problem is a puzzle that involves calculating the number of bananas a camel can eat.
The problem involves a camel that can carry a certain weight and a number of bananas with different weights.
The camel can only carry a maximum weight and can only eat a certain number of bananas.
The goal is to determine the maximum number of bananas the camel can eat without exceeding its weight limit.
Q622. design custom load balancers
Q623. ADP vs SDP difference
ADP stands for Automatic Data Processing, while SDP stands for Secure Data Processing. ADP focuses on automating data-related tasks, while SDP focuses on ensuring data security.
ADP focuses on automating data-related tasks such as payroll processing, time and attendance tracking, and benefits administration.
SDP focuses on ensuring data security through encryption, access controls, and secure transmission protocols.
ADP is more about efficiency and streamlining processes, while ...read more
Q624. Direction of moves.
The question is likely asking about the direction of movement in a software project or codebase.
Discuss the importance of having a clear direction in software development.
Explain how changes in direction can impact project timelines and outcomes.
Provide examples of how effective communication and planning can help maintain a consistent direction in a project.
Q625. system design on hackerrank
Q626. Explain OTC cycle
OTC cycle refers to the order-to-cash process in supply chain management where a customer order is received and fulfilled.
Customer places an order for a product or service
Order is processed and fulfilled by the company
Invoice is generated and sent to the customer
Payment is received from the customer
Order is closed and recorded in the system
Q627. unit tests in JAVA
Unit tests in JAVA are used to test individual units or components of a software application.
Unit tests are written to verify the behavior of a specific piece of code in isolation.
They help ensure that each unit of code works correctly on its own.
JUnit is a popular Java framework for writing and running unit tests.
Mockito is often used in conjunction with JUnit for mocking dependencies in unit tests.
Q628. Design pattern used
The design pattern used is the Factory Method pattern.
Creates objects without specifying the exact class of object that will be created
Defines an interface for creating objects, but lets subclasses decide which class to instantiate
Q629. Reverse a LinkedLis
To reverse a LinkedList, iterate through the list and change the direction of pointers.
Iterate through the LinkedList and keep track of the previous, current, and next nodes.
Update the pointers to reverse the direction of the nodes.
Repeat until the end of the list is reached.
Q630. CAPA explanations
CAPA explanations in material planning involve identifying root causes of issues and implementing corrective actions to prevent recurrence.
CAPA stands for Corrective and Preventive Actions
It involves investigating issues, determining root causes, and implementing solutions to prevent recurrence
Examples include conducting root cause analysis, implementing process improvements, and monitoring effectiveness of corrective actions
Q631. Check if tree is BST
Check if a binary tree is a binary search tree
Check if the left subtree is a valid BST
Check if the right subtree is a valid BST
Check if the current node's value is greater than all nodes in the left subtree and less than all nodes in the right subtree
Q632. Dijkstras algorithm
Dijkstra's algorithm is a graph search algorithm that finds the shortest path between nodes in a graph.
Dijkstra's algorithm is used to find the shortest path from a starting node to all other nodes in a weighted graph.
It works by maintaining a priority queue of nodes based on their distance from the starting node.
The algorithm iteratively selects the node with the smallest distance, updates the distances of its neighbors, and continues until all nodes have been visited.
Exampl...read more
Q633. Full Java Theories
Full Java Theories cover the core concepts of Java programming language.
Object-oriented programming
Inheritance, polymorphism, encapsulation, and abstraction
Exception handling
Multithreading
Collections framework
Q634. java union of arrays
To find the union of two arrays in Java, use a HashSet to store unique elements from both arrays.
Create two arrays of strings.
Convert arrays to HashSet to remove duplicates.
Combine both HashSets to get the union of arrays.
Q635. Longest palindrome
Find the longest palindrome in an array of strings.
Iterate through each string in the array
For each string, check if it is a palindrome
Keep track of the longest palindrome found so far
Return the longest palindrome
Q636. Normal o2c process
The normal o2c process refers to the order to cash process, which involves receiving and fulfilling customer orders, invoicing, and receiving payment.
Receive customer order
Prepare and deliver goods or services
Generate invoice
Receive payment
Record transaction in accounting system
Q637. Explain framework
A framework is a set of guidelines, libraries, and tools that help in developing and executing automated tests efficiently.
Provides structure and organization for test automation projects
Promotes reusability of code and components
Offers built-in functionalities for common testing tasks
Supports integration with different tools and technologies
Q638. Create dumic website
Creating a dummy website involves designing and developing a basic website for testing purposes.
Choose a simple layout and design for the website
Include placeholder content and images
Ensure basic functionality like navigation and links work
Use dummy data for testing purposes
Consider using a website builder or coding from scratch
Q639. Leecode Hard Problem
Leetcode Hard Problem - Find the answer to a challenging coding problem.
Understand the problem statement thoroughly before attempting to solve it.
Break down the problem into smaller subproblems if possible.
Consider different approaches and analyze their time and space complexity.
Test your solution with different test cases to ensure correctness.
Q640. Sorting an array
Sorting an array of strings
Use built-in sorting functions like sort() in most programming languages
Consider the case sensitivity of the strings when sorting
You can customize the sorting order by providing a comparison function
Q641. Implement LRU cache
LRU cache is a data structure that stores the most recently used items, discarding the least recently used items when full.
Use a doubly linked list to keep track of the order of items based on their usage.
Use a hashmap to quickly access items in the cache.
When an item is accessed, move it to the front of the linked list to mark it as the most recently used.
Q642. Webapp vs app ui
Webapp UI is accessed through a web browser, while app UI is accessed through a mobile application.
Webapp UI is designed for use on a web browser, while app UI is designed for use on a mobile device.
Webapp UI can be accessed on any device with a web browser, while app UI is specific to the mobile platform it is designed for.
Webapp UI may require an internet connection to access, while app UI may have offline functionality.
Examples: Webapp UI - Gmail accessed through a browser...read more
Q643. Design short url
More about working at Oracle
Top HR Questions asked in Suma Soft
Interview Process at Suma Soft
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month