Oracle Financial Services Software
30+ Sciometrix Interview Questions and Answers
Given an array/list 'ARR' of ‘N’ distinct integers, you are supposed to find the third largest element in the given array 'ARR'.
Input Format :
The first line contains a single integer ‘T’...read more
The task is to find the third largest element in an array of distinct integers.
Read the number of test cases 'T'
For each test case, read the number of elements 'N' and the array 'ARR'
Sort the array in descending order
Return the element at index 2 as the third largest element
Ninja has to implement an ‘AVL_TREE’ from scratch.
He is given ‘N’ values, representing the values of nodes to be inserted. Ninja has to insert these values into the ‘AVL_TREE’ and return i...read more
The question asks to implement an AVL_TREE from scratch and insert given values into it.
AVL_TREE is a self-balancing binary search tree
The height difference between left and right subtrees of all nodes should not be more than one
Implement the AVL_TREE data structure and insertion algorithm
Return the root of the AVL_TREE after inserting all the nodes
You have been given an integer array/list 'ARR' of size 'N'. Your task is to return the total number of those subsequences of the array in which all the elements are equal.
A subsequence of a ...read more
You are given a string EXP which is a valid infix expression. Convert the given infix expression to postfix expression.
Infix expression is of the form a op b. Where operator is is between the ...read more
Which is the correct SQL query to select the top 5 numbers from the given data?
The correct SQL query to select the top 5 numbers from the given data is 'SELECT TOP 5 number FROM table_name ORDER BY number DESC'.
Use the 'SELECT' statement to specify the columns you want to retrieve.
Use the 'TOP' keyword followed by the number of rows you want to select.
Specify the column name in the 'ORDER BY' clause to sort the data in descending order.
Q6. How to create a table in SQL and elements to it.
To create a table in SQL, use the CREATE TABLE statement and define its elements.
Use CREATE TABLE statement followed by table name
Define columns with data types and constraints
Add primary key constraint to uniquely identify each row
Example: CREATE TABLE customers (id INT PRIMARY KEY, name VARCHAR(50), email VARCHAR(50))
Asked me to write a query to select some data from large collection of it.
Write a query to select data from a large collection.
Use the SELECT statement to specify the columns you want to retrieve.
Use the FROM clause to specify the table or tables from which to retrieve the data.
Use the WHERE clause to specify any conditions that the retrieved data must meet.
Use the ORDER BY clause to sort the retrieved data in a specific order.
Use the LIMIT clause to limit the number of rows returned, if necessary.
Q8. How to use JOIN operation on tables. Give an Example.
JOIN operation is used to combine rows from two or more tables based on a related column between them.
JOIN can be used with different types like INNER, LEFT, RIGHT, FULL OUTER, etc.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column;
JOIN can be used to fetch data from multiple tables in a single query.
Q9. Bubble sort algorithm and how to optimize it.
Bubble sort repeatedly swaps adjacent elements if they are in wrong order.
Bubble sort has a time complexity of O(n^2).
It is not efficient for large datasets.
Optimizations include adding a flag to check if any swaps were made in a pass and stopping if none were made.
Another optimization is to keep track of the last swapped index and only iterate up to that index in the next pass.
Q10. Write a code on triggers, HashMap (no. of alphabets in a string).
Code to count the number of occurrences of each alphabet in a string using HashMap and triggers.
Create a HashMap to store the count of each alphabet in the string.
Iterate through the string and update the count in the HashMap.
Handle both uppercase and lowercase alphabets by converting them to a consistent case.
Use triggers to update the HashMap whenever a new alphabet is encountered.
Q11. Reason for selecting certain technologies in the project
We selected technologies based on project requirements, team expertise, scalability, and cost-effectiveness.
Considered project requirements and objectives
Leveraged team expertise in certain technologies
Chose scalable technologies for future growth
Evaluated cost-effectiveness of different options
Q12. Kth largest element in an array
Finding the Kth largest element in an array.
Sort the array in descending order and return the Kth element.
Use a max heap to find the Kth largest element.
Use quickselect algorithm to find the Kth largest element.
Q13. What do you know about Java?
Java is a popular programming language used for developing various applications.
Java is an object-oriented language
It is platform-independent
Java code is compiled into bytecode
Java has a vast library of pre-built classes and functions
Java is used for developing web applications, mobile apps, desktop applications, and more
Q14. Swap two numbers without using two variables
Swap two numbers without using two variables
Use arithmetic operations like addition and subtraction
Example: Swap 3 and 5 - 3 = 3 + 5, 5 = 8 - 5, 3 = 8 - 3
Q15. Balanced Parenthesis using Stack
Balanced Parenthesis using Stack is a problem to check if the given expression has balanced parentheses or not.
Create an empty stack
Traverse the expression string and for each character, check if it is an opening parenthesis
If it is an opening parenthesis, push it onto the stack
If it is a closing parenthesis, check if the stack is empty or if the top element of the stack is the corresponding opening parenthesis
If the stack is empty or the top element is not the corresponding ...read more
Q16. Given a number is prime or not.
A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.
Check if the number is greater than 1.
Iterate from 2 to the square root of the number and check if it divides the number evenly.
If no divisor is found, the number is prime.
Q17. What is SDLC life cycle
SDLC life cycle is a process used by software development teams to design, develop, and test high-quality software.
SDLC stands for Software Development Life Cycle
It includes phases like planning, analysis, design, implementation, testing, and maintenance
Each phase has specific goals and deliverables to ensure the successful completion of the project
Examples of SDLC models include Waterfall, Agile, and DevOps
Q18. Describe Operating System.
An operating system is a software that manages computer hardware and software resources.
It acts as an interface between the user and the computer hardware.
It manages memory, processes, and input/output devices.
Examples include Windows, macOS, and Linux.
It provides a platform for other software to run on.
It ensures security and manages user accounts.
Q19. What is Derivative Market
Derivative market is a financial market where contracts are traded whose value is derived from an underlying asset.
Derivatives include options, futures, forwards, and swaps.
Investors use derivatives to hedge risk or speculate on price movements.
Derivative market helps in price discovery and liquidity in the market.
Example: A farmer can use a futures contract to lock in a price for his crops before harvest.
Q20. what is Inheritance in java
Inheritance in Java allows a class to inherit properties and behavior from another class.
Inheritance enables code reusability and promotes a hierarchical relationship between classes.
Subclasses inherit attributes and methods from a superclass.
Java supports single and multiple inheritance through classes and interfaces.
Example: class Car extends Vehicle {}
Q21. how does hashmap works
HashMap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
HashMap uses a hash function to map keys to indices in an array.
It allows for constant-time retrieval, insertion, and deletion of key-value pairs.
Collisions can occur when multiple keys map to the same index, which is resolved using techniques like chaining or open addressing.
Q22. explain oop concepts in detailed manner
OOP concepts refer to the principles of Object-Oriented Programming, including encapsulation, inheritance, and polymorphism.
Encapsulation: bundling data and methods that operate on the data into a single unit (object)
Inheritance: allows a class to inherit properties and behavior from another class
Polymorphism: the ability for objects of different classes to respond to the same method call in different ways
Q23. find 4th highest salary, sql related
Use SQL query with ORDER BY and LIMIT to find 4th highest salary
Use ORDER BY clause to sort salaries in descending order
Use LIMIT 1 OFFSET 3 to get the 4th highest salary
Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 3
Q24. What are DML commands
DML commands are Data Manipulation Language commands used to manage data in a database.
DML commands include INSERT, UPDATE, DELETE, and SELECT.
INSERT is used to add new rows of data into a table.
UPDATE is used to modify existing data in a table.
DELETE is used to remove rows of data from a table.
SELECT is used to retrieve data from a database.
Q25. What are DDL COMMANDS
DDL commands are Data Definition Language commands used to define, modify, and delete database objects.
DDL stands for Data Definition Language
Common DDL commands include CREATE, ALTER, and DROP
CREATE is used to create new database objects like tables
ALTER is used to modify existing database objects
DROP is used to delete database objects
Q26. diff between comparator and comparable
Comparator is used to define custom sorting order for objects, while Comparable is an interface used to implement natural ordering of objects.
Comparator is used to define custom sorting order for objects, while Comparable is used to implement natural ordering of objects
Comparator interface has a compare() method, while Comparable interface has a compareTo() method
Comparator can be used to sort objects based on multiple criteria, while Comparable can only be used for single cr...read more
Q27. pseudocode for fibonacci sequence
Fibonacci sequence pseudocode
Start with two variables set to 0 and 1
Loop through desired number of times, adding previous two numbers to get next number
Store each number in an array
Q28. What is Equity Marke
Equity market refers to the market where shares of companies are issued and traded.
Equity market is also known as stock market.
Investors buy and sell shares of publicly traded companies in the equity market.
Prices of shares in the equity market are determined by supply and demand.
Equity market provides companies with a way to raise capital by issuing shares to investors.
Major stock exchanges like NYSE and NASDAQ are examples of equity markets.
Q29. Explain concepts of OOPs
OOPs stands for Object-Oriented Programming concepts which include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object).
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features of ...read more
Q30. pseudocode for palindrome
Palindrome pseudocode for array of strings
Iterate through each string in the array
For each string, compare the characters from start to end and end to start
If all characters match, it is a palindrome
Q31. 4 Pillars of OOPS DBMS
The 4 pillars of OOPS are Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation refers to the bundling of data with the methods that operate on that data.
Abstraction focuses on hiding the implementation details and showing only the necessary features of an object.
Polymorphism allows objects to be treated as instances of their parent class.
Top HR Questions asked in Sciometrix
Interview Process at Sciometrix
Top Associate Consultant Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month