Jio Platforms
20+ Sarsa Financial Advisory Services Interview Questions and Answers
You are given an array “A” of N integers. Your task is to find the total number of distinct subarrays of A having at most K odd elements.
Note :
Two subarrays...read more
Q2. Is is possible to implement stack using queues ?
Yes, it is possible to implement stack using queues.
Implement push operation by enqueueing elements to the queue.
Implement pop operation by dequeuing all elements except the last one and enqueueing them again.
The last element in the queue will be the top element of the stack.
Example: Queue: 1 2 3 4 5, Stack: 5 4 3 2 1
Q3. Tell me something about recursion also do you have idea about time and space complexity.
Recursion is a process in which a function calls itself. Time and space complexity are important factors to consider while using recursion.
Recursion is used to solve problems that can be broken down into smaller sub-problems.
It involves a base case and a recursive case.
Time complexity refers to the amount of time taken by an algorithm to run, while space complexity refers to the amount of memory used by an algorithm.
Recursion can have high time and space complexity, so it's i...read more
1) What is class?
2) Difference between static IP and dynamic IP?
3) Is static public valid in java and why?
4) Difference between SQL and MySQL?
5) Difference between group by and order by?
6) Qu...read more
Q5. What is Frontend, Do you know Node js ?
Frontend is the part of a website or application that users interact with. Node.js is a JavaScript runtime environment.
Frontend refers to the user interface and user experience of a website or application.
It includes the design, layout, and functionality of the website or application.
Node.js is a JavaScript runtime environment that allows developers to run JavaScript on the server-side.
It is commonly used for building scalable and high-performance web applications.
Node.js can...read more
Q6. what is the difference between list and tuple?
List and tuple are both data structures in Python, but list is mutable while tuple is immutable.
List is defined using square brackets [], while tuple is defined using parentheses ().
Elements in a list can be added, removed, or modified, while elements in a tuple cannot be modified.
Lists are used for collections of data that may change over time, while tuples are used for fixed collections of data.
Lists are generally faster for iteration and appending, while tuples are faster ...read more
Q7. What is the use of marquee tag?
Marquee tag is used to create scrolling text or images on a web page.
It is an HTML tag that is used to create a scrolling effect.
It is commonly used to display news headlines or advertisements.
It can be used to create scrolling images as well.
It is not recommended to use as it is not supported in HTML5.
Q8. What is SDLC ? DDL and DML commands? What is right join explain it with an example? What is LIFO and LILO ? Real time application of python? What is linked list?
A set of questions related to software development, database management, and data structures.
SDLC stands for Software Development Life Cycle and is a process used to design, develop, and test software.
DDL (Data Definition Language) commands are used to create, modify, and delete database objects like tables, indexes, etc.
DML (Data Manipulation Language) commands are used to insert, update, and delete data in a database.
Right join is a type of SQL join that returns all the row...read more
Q9. What are constructors and destructors?
Constructors and destructors are special member functions in object-oriented programming languages.
Constructors are used to initialize the object's data members when an object is created.
Destructors are used to free up the memory allocated to the object when it is destroyed.
Constructors have the same name as the class and no return type.
Destructors have the same name as the class preceded by a tilde (~) and no return type.
Example: class Car { public: Car(); ~Car(); };
Construc...read more
Q10. Find nth smallest and largest element (optimal solution)
Finding nth smallest and largest element in an array
Sort the array and return the nth smallest/largest element
Use quickselect algorithm for optimal solution
For nth smallest element, partition the array around pivot until pivot index is n-1
For nth largest element, partition the array around pivot until pivot index is len(array)-n
Handle edge cases like n being greater than array length
Q11. Which is fast c or python during execution? Difference between malloc and calloc ? What is memory allocation? What is method overriding? Why Jio?
Questions related to programming and Jio
Python is slower than C during execution
malloc allocates memory without initializing it, while calloc allocates and initializes memory to zero
Memory allocation is the process of reserving a portion of the computer's memory for a program to use
Method overriding is when a subclass provides a different implementation of a method that is already defined in its superclass
Jio is a popular Indian telecommunications company known for its afford...read more
Q12. What are data types in python?
Data types in Python are the classification of data items that determine the operations that can be performed on them.
Python has several built-in data types such as integers, floats, strings, booleans, and complex numbers.
Lists, tuples, and dictionaries are also data types in Python.
Each data type has its own set of operations that can be performed on it.
For example, arithmetic operations can be performed on integers and floats, but not on strings.
Boolean data types can only ...read more
Q13. Write a query to print the no of employees having salary more than 5000/-
Query to print the number of employees with salary > 5000/-
Use SELECT COUNT(*) to count the number of employees
Add WHERE clause to filter employees with salary > 5000/-
Q14. Is there difference between SQL and MySQL
Yes, there is a difference between SQL and MySQL.
SQL is a standardized language for managing relational databases, while MySQL is a specific relational database management system (RDBMS) that uses SQL as its language.
SQL is a language used to communicate with databases, while MySQL is a software that implements and manages databases.
MySQL is one of the many RDBMS options available, while SQL is a language used across different RDBMS platforms.
SQL can be used with other RDBMS ...read more
Q15. Why is dbms used?
DBMS is used to manage and organize large amounts of data efficiently.
DBMS provides a centralized and secure way to store and retrieve data.
It allows multiple users to access and modify data simultaneously.
It ensures data integrity and consistency through various constraints and rules.
It provides backup and recovery mechanisms to prevent data loss.
Examples of DBMS include Oracle, MySQL, SQL Server, and PostgreSQL.
Q16. what is a foreign key?
A foreign key is a column or set of columns in a database table that refers to the primary key of another table.
It establishes a link between two tables
It ensures referential integrity
It helps in maintaining data consistency
Example: CustomerID in Orders table refers to Customer table's primary key
Q17. Difference between python and java.
Python is a dynamically typed, interpreted language while Java is a statically typed, compiled language.
Python is easier to learn and write code quickly.
Java is more efficient and faster due to its compilation process.
Python is better for data analysis and machine learning while Java is better for enterprise applications.
Python has a simpler syntax and is more readable while Java has a more complex syntax.
Python has a larger library of pre-built modules while Java has a large...read more
Q18. Write code for inorder triversal without using recursion.
Iterative inorder traversal using a stack
Create an empty stack to store nodes
Initialize current node as root
While current is not null or stack is not empty, keep traversing left subtree and pushing nodes onto stack
Pop a node from stack, print its value, and set current to its right child
Repeat until all nodes are traversed
Q19. Find middle node in Linkedin List.
To find the middle node in a linked list, use the slow and fast pointer approach.
Initialize two pointers, slow and fast, at the head of the linked list.
Move the slow pointer by one step and the fast pointer by two steps until the fast pointer reaches the end of the list.
The node pointed to by the slow pointer at this point is the middle node.
Q20. Explain decorators in python
Decorators in Python are functions that modify the behavior of other functions or methods.
Decorators are denoted by the @ symbol followed by the decorator function name.
They are commonly used for logging, timing, authentication, and more.
Decorators can be used to add functionality to existing functions without modifying their code.
They allow you to wrap another function in order to extend or modify its behavior.
An example of a decorator is the @staticmethod decorator in Pytho...read more
Top HR Questions asked in Sarsa Financial Advisory Services
Top Graduate Engineer Trainee (Get) Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month