Siemens Healthineers
Rajasthan Liquors Interview Questions and Answers
Q1. Print sentence word in reverse order without using default function. eg: input:-> I live in New York. output:-> I evil ni weN kroY.
Reverse each word in a sentence without using default function.
Split the sentence into words
Iterate through each word and reverse it
Join the reversed words back into a sentence
Q2. Programming question: Find 1st 2nd and 3rd highest from array of integer.
Find 1st, 2nd, and 3rd highest integers from an array.
Sort the array in descending order.
Retrieve the first three elements from the sorted array.
Handle cases where array length is less than 3.
Q3. Data structure question find all leaf node from tree.
Use depth-first search to traverse the tree and identify leaf nodes.
Implement depth-first search algorithm to traverse the tree.
Identify nodes with no children as leaf nodes.
Store leaf nodes in an array for retrieval.
Q4. Programming question :Fibonacci series using recursion.
Fibonacci series using recursion is a classic programming problem where each number is the sum of the two preceding ones.
Define a recursive function that takes an integer n as input
Base case: if n is 0 or 1, return n
Recursive case: return the sum of the previous two Fibonacci numbers
Call the function recursively with n-1 and n-2 until base case is reached
Q5. How threads were handled?
Threads are handled by creating and managing lightweight processes within a program to improve performance and responsiveness.
Threads are managed by the operating system or a thread library.
Threads share the same memory space within a process.
Threads can communicate with each other through shared memory or message passing.
Thread synchronization is important to prevent race conditions and ensure data consistency.
Examples of thread handling in programming languages include Java...read more
Q6. Multithreading concepts in Java
Multithreading in Java allows multiple threads to execute concurrently within a single program.
Java provides built-in support for multithreading through the java.lang.Thread class.
Threads can be created by extending the Thread class or implementing the Runnable interface.
Synchronization is used to prevent race conditions and ensure thread safety.
Java also provides several classes and interfaces for managing thread execution, such as Executor, ExecutorService, and Future.
Examp...read more
Q7. Which stack used?
We primarily use the MERN stack for our web development projects.
MERN stack includes MongoDB, Express.js, React, and Node.js
MongoDB is used as the database to store data
Express.js is used as the backend framework for building APIs
React is used for building the user interface
Node.js is used as the server-side runtime environment
Q8. Coding a sorting algorithm
Sorting algorithm arranges elements in a specific order.
Choose an appropriate sorting algorithm based on the data size and type.
Common sorting algorithms include bubble sort, insertion sort, merge sort, quicksort, and selection sort.
Implement the chosen algorithm in the programming language of choice.
Test the algorithm with various input sizes and types to ensure correctness and efficiency.
Interview Process at Rajasthan Liquors
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month