Siemens
300+ Dainik Jagran Interview Questions and Answers
You are given an array (ARR) of length N, consisting of integers. You have to find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.
A subarray is a ...read more
For a given integer array/list 'ARR' of size 'N', find the total number of 'Inversions' that may exist.
An inversion is defined for a pair of integers in the array/list when the following two co...read more
You are given an array consisting of 'N' positive integers where each integer is either 0 or 1 or 2. Your task is to sort the given array in non-decreasing order.
Note :
1. The array consists of only ...read more
For a given string(str) and a character X, write a function to remove all the occurrences of X from the given string and return it.
The input string will remain unchanged if the given character(...read more
You are given ‘N’ pairs of integers in which the first number is always smaller than the second number i.e in pair (a,b) -> a < b always. Now we define a pair chain as the continuous ar...read more
You are given a singly Linked List of integers. Your task is to return true if the given singly linked list is a palindrome otherwise returns false.
For example:
The given linked list is 1...read more
You have been given a sorted array/list ARR consisting of ‘N’ elements. You are also given an integer ‘K’.
Now the array is rotated at some pivot point unknown to you. For example,...read more
You are given an array/list ‘ARR’ of ‘N’ positive integers and an integer ‘K’. Your task is to check if there exists a subset in ‘ARR’ with a sum equal to ‘K’.
Note: Return true if there ex...read more
Given the head node of the singly linked list, return a pointer pointing to the middle of the linked list.
If there are an odd number of elements, return the middle element if there are eve...read more
You are given a matrix ‘MAT’. Print the transpose of the matrix. The transpose of a matrix is obtained by changing rows to columns and columns to rows. In other words, transpose of a matrix...read more
You are given the root node of a binary tree consisting of ‘N’ nodes and an integer value ‘TARGET’. Your task is to find the number of leaf nodes in the given binary tree such that the sum of all nodes ...read more
8 balls problem : You are provided with 8 identical balls and a measuring instrument. 7 of the eight balls are equal in weight and one of the eight given balls is defective and weighs less. The task is to...read more
Q13. How to run a docker command remotely. i.e. Docker is installed on both your laptop and a remote linux server. You need to run docker command on the linux server but without taking a separate ssh session to the ...
read moreYou can use the Docker API to remotely run Docker commands on a Linux server without taking a separate SSH session.
Use the Docker API to interact with the Docker daemon on the remote Linux server.
Make sure Docker is installed and running on both your laptop and the remote server.
Authenticate with the remote server using appropriate credentials.
Establish a connection to the Docker daemon on the remote server using the Docker API.
Send the desired Docker command to the remote se...read more
You have been given the start and end times of 'N' intervals. Write a function to check if any two intervals overlap with each other.
Note :
If an interval ends at time T and another interv...read more
You have been given two numbers 'a' and 'b'. Write a function that checks if the given numbers are co-prime.
Input format :
The first line contains an Integer 't' which denotes...read more
You are given an array Arr consisting of N integers. You need to find the equilibrium index of the array.
An index is considered as an equilibrium index if the sum of elements of the array to t...read more
Q17. If were to write a function to tell if the number is odd or even, how would u code it * The output of the below program is ____ struct base {int a,b; base(); int virtual function1();} struct derv1:base {int b,c...
read moreYou are given a number 'N'. Your task is to find Nth prime number.
A prime number is a number greater than 1 that is not a product of two smaller natural numbers. Prime numbers have only two facto...read more
Given two sequences, find the length of longest subsequence present in both of them. A subsequence is a sequence that appears in the same relative order, but not necessarily contiguous...read more
Find the defective ball in minimum possible comparison?
Given 8 balls all look identical all ball have same weight except for one ball which is heavier than the rest of the ball, you need to fin...read more
Q21. Puzzle - A drawer contains 10 pairs each of red and blue socks. What is the minimum number of socks that should be picked to obtain at least 1 rightly colored pair?
The minimum number of socks to be picked to obtain at least 1 rightly colored pair is 3.
Pick 2 socks of different colors first, then the next sock picked will definitely match one of the colors already picked.
In the worst case scenario, the first 2 socks picked will be of different colors.
Therefore, the minimum number of socks to be picked is 3.
Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:
1. get(key) - Return the value of the key if the key exists in the cache, o...read more
Q23. What's the purpose of alloy steel and types of it ?
Alloy steel is used for its high strength and durability. It is made by adding other elements to iron.
Alloy steel is made by adding other elements to iron to improve its properties.
It is used for its high strength, durability, and resistance to corrosion.
Some common types of alloy steel include stainless steel, tool steel, and high-strength low-alloy steel.
Stainless steel contains chromium and nickel, making it resistant to rust and corrosion.
Tool steel is used for making too...read more
Two numbers A and B are said to be Co-Prime or mutually prime if the Greatest Common Divisor(GCD) of them is 1. You have been given two numbers A and B, find if they are Co-pri...read more
Q25. 2) In case of transformer, if current to the primary side is 50A and voltage is 400 V , then how many current will be flow through secondary if secondary voltage will be 10 V??
The current through the secondary side of a transformer can be calculated using the turns ratio.
The turns ratio of a transformer is the ratio of the number of turns in the primary winding to the number of turns in the secondary winding.
The current in the primary and secondary windings of a transformer is inversely proportional to the turns ratio.
To calculate the current in the secondary winding, use the formula: I2 = (I1 * V1) / V2, where I1 is the current in the primary wind...read more
What are the features of HTML-5?
What is Continuous Testing (CT)?
Q28. If you will be given a task of technical calculation on the first day of job, How will you proceed ?
I would first gather all the necessary information and data required for the calculation and then proceed with the calculation process.
Gather all the necessary information and data required for the calculation
Understand the problem statement and requirements
Identify the relevant formulas and equations
Check for any assumptions or constraints
Perform the calculation accurately
Verify the results and ensure they meet the requirements
PCA is ML algorithms which is mainly used for dimensionality reduction
My final year project was on Computer Vision using instance segmentation on 'Pothole Detection', so the interviewer asked...read more
What is LVM and why is it required?
Q32. If you're given two CSV files, containing 2 columns each, how would you merge the two files using Python?
To merge two CSV files with 2 columns each in Python, use the pandas library.
Import the pandas library
Read the two CSV files into pandas DataFrames
Merge the DataFrames using a common column as the key
Save the merged DataFrame to a new CSV file
Q33. what is the disadvantage or drawback in S7 controller?
The S7 controller has limited scalability and flexibility compared to other controllers.
Limited number of I/O points
Limited memory capacity
Limited processing power
Limited communication options
Limited support for advanced programming languages
Limited compatibility with third-party devices
Limited ability to handle complex control algorithms
Limited fault diagnostics capabilities
How does AWS contribute to DevOps?
How many Docker components are there?
What is the command used to delete a branch?
How to monitor the Kubernetes cluster?
What is Prototype Chaining in JS?
Q40. What are most important tabs are important for demand planner
The most important tabs for demand planner are sales history, forecast, inventory, and promotions.
Sales history tab helps in analyzing past sales data to forecast future demand.
Forecast tab is used to create a demand plan based on historical data and market trends.
Inventory tab helps in managing stock levels and ensuring availability of products.
Promotions tab tracks the impact of marketing campaigns on demand and sales.
What do you know about git reflog?
Can you tell the difference between CMD and ENTRYPOINT?
Q43. Problem Solving - How would you reduce the vehicle congestion at a junction?
To reduce vehicle congestion at a junction, implement traffic signal optimization, encourage public transportation, and create dedicated lanes for buses and bicycles.
Implement traffic signal optimization to improve traffic flow and reduce wait times.
Encourage the use of public transportation by providing incentives such as discounted fares or improved services.
Create dedicated lanes for buses and bicycles to reduce the number of vehicles on the road and promote alternative mo...read more
What are the advantages and disadvantages of S7 controller?
What are the differences between Component and Directive?
What is Kubernetes Load Balancing?
What are some of the prerequisites that you should consider while building a Selenium Cucumber automation application?
Why should Selenium be selected as a testing tool for web applications or systems?
Q49. how global variable work , how its shared by all function
Global variables are accessible from any part of the program and can be modified by any function.
Global variables are declared outside of any function.
They can be accessed and modified by any function in the program.
If a function modifies the value of a global variable, the new value is visible to all other functions.
Global variables can be useful for sharing data between functions.
However, overuse of global variables can make code harder to understand and maintain.
Q50. Mention the difference between microcontroller and microprocessor?
Microcontroller is a compact computer on a single chip with built-in memory and peripherals, while microprocessor is just a CPU.
Microcontroller has on-chip memory and peripherals, while microprocessor requires external memory and peripherals.
Microcontroller is used in embedded systems, while microprocessor is used in personal computers.
Examples of microcontrollers include Arduino, PIC, and AVR, while examples of microprocessors include Intel Pentium, AMD Ryzen, and ARM Cortex...read more
Describe the lifecycle of Docker Container
What is meant by XPath in Selenium. Explain XPath Absolute and XPath Relative.
What is dependency injection in Angular?
What is meant by static and dynamic polymorphism?
Q55. what is difference between JavaScript and Angular
JavaScript is a programming language used for web development, while Angular is a JavaScript framework for building web applications.
JavaScript is a programming language that allows developers to add interactivity and dynamic features to websites.
Angular is a JavaScript framework that provides a structure for building web applications.
JavaScript can be used independently to create web functionality, while Angular is built on top of JavaScript and provides additional features ...read more
Q56. 1. Which module in SAP are you most familiar with? 2. What is inco terms? 3. What are the basic things needed to create PO? 4. What are the KPI parameters for delivery performance?
Q57. What do you understand by the phrase 'pass-by-value'?
Pass-by-value is a method of passing arguments to a function where the actual value of the argument is copied to a new variable.
In pass-by-value, a copy of the actual value of the argument is passed to the function.
Any changes made to the parameter inside the function do not affect the original value outside the function.
Primitive data types like integers, floats, and characters are typically passed by value.
Example: int x = 10; foo(x); // the value of x (10) is copied to a n...read more
What are lifecycle hooks in Angular?
What are the differnet types of PLC inputs & outputs ?
Q60. How would you find the maximum and second-maximum numbers in an array? (Pseudo-code)
Use a loop to iterate through the array and keep track of the maximum and second-maximum numbers.
Initialize two variables to store the maximum and second-maximum numbers.
Iterate through the array and update the variables accordingly.
Handle edge cases like when the array has less than two elements.
Q61. Explain the working of integrator and differentiator and internal structure of op amp.
Integrator and differentiator are circuits used in signal processing. Op amp is an electronic component used in amplification.
Integrator circuit performs mathematical integration of input signal over time.
Differentiator circuit performs mathematical differentiation of input signal over time.
Op amp has three terminals - inverting input, non-inverting input, and output.
Op amp amplifies the voltage difference between its two input terminals.
Op amp has high input impedance and lo...read more
What are tags in Cucumber and why are they important?
When is a good time to automate a test?
Q64. How to manage or reduce inventory
To manage or reduce inventory, companies can implement strategies such as demand forecasting, optimizing order quantities, improving supply chain visibility, and implementing just-in-time inventory management.
Implement demand forecasting to accurately predict customer demand and adjust inventory levels accordingly
Optimize order quantities by using economic order quantity (EOQ) models to determine the most cost-effective order size
Improve supply chain visibility by collaborati...read more
Q65. Derive the expression of hoop stress and longitudinal stress in pressure vessel ?
Derive expressions for hoop stress and longitudinal stress in a pressure vessel.
Hoop stress is the circumferential stress in the cylindrical wall of the vessel and is given by σh = pd/2t
Longitudinal stress is the axial stress in the cylindrical wall of the vessel and is given by σl = pd/4t
Where p is the internal pressure, d is the diameter of the vessel, and t is the thickness of the wall
These stresses are important in designing pressure vessels to ensure they can withstand t...read more
What are the general functions of a PLC?
What do you mean by Baseline Testing and Benchmark testing?
What are some of the best practices in test automation?
Can you explain the architecture of Jenkins?
Q70. Suppose there are two processes communicating via TCP ports One of them on one machine dies. What will happeen to the port? If another process is allocated that port will it receive garbage?
Q71. how to check the induction motor if multi meter & meger are not avaliable?
To check an induction motor without a multimeter or meger, you can perform visual inspections, listen for abnormal sounds, and check for overheating.
Perform a visual inspection of the motor for any visible damage or loose connections.
Listen for any abnormal sounds such as grinding, buzzing, or rattling noises.
Check for overheating by feeling the motor casing. If it is excessively hot, there may be an issue.
Observe the motor's performance during operation. Look for any irregul...read more
Q72. What is Circuit breaker?
A circuit breaker is an electrical switch that automatically interrupts the flow of current in a circuit in case of an overload or short circuit.
It is a safety device used to protect electrical circuits from damage caused by excess current flow.
It works by detecting the excess current and interrupting the flow of electricity to prevent damage to the circuit.
Circuit breakers are commonly used in homes, buildings, and industrial settings.
Examples of circuit breakers include the...read more
What is unit testing?
What is boundary value analysis?
What Are The Types Of Interrupts In Intel 8051 Microcontroller?
Explain Hoisting in javascript.
Q77. Mention various diodes used in electronic circuits.
Diodes are electronic components that allow current to flow in one direction. Various types of diodes are used in electronic circuits.
Rectifier diodes
Zener diodes
Schottky diodes
LEDs
Varactor diodes
Tunnel diodes
Photodiodes
PIN diodes
Q78. How to give forecast to vendors?
Forecast should be communicated clearly and in advance to vendors to ensure smooth supply chain operations.
Provide accurate and reliable forecast data
Communicate forecast in a timely manner
Discuss any changes or updates to the forecast with vendors
Use a collaborative approach to ensure alignment between vendor and company expectations
Consider vendor lead times and production capacity when providing forecast
Provide feedback to vendors on their performance based on forecast acc...read more
Q79. Whats the logic behind safety stock?
Safety stock is a buffer inventory kept to mitigate the risk of stockouts due to unexpected demand or supply chain disruptions.
Safety stock helps to ensure that there is enough inventory to meet customer demand even during unexpected events.
It is calculated based on factors such as lead time, demand variability, and service level.
The level of safety stock required varies depending on the industry, product, and supply chain complexity.
For example, a company that sells seasonal...read more
Q80. Which data structures are used in Dynamic memory allocation?
What do you mean by Data flow testing?
What are annotations in Cucumber?
What are the different components of Selenium?
Difference between git revert and git reset.
How would you differentiate between a String, StringBuffer, and a StringBuilder?
What is Thread Scheduler and Time Slicing?
MCQ’s (10 Aptitude, 5 English, 3 Data structures - 18 MCQ’s)
3 Ants and Triangle
Q89. which insulation is necessary for proper function and basic protection?
Thermal insulation is necessary for proper function and basic protection.
Thermal insulation helps regulate temperature and prevent heat loss or gain.
Common types of insulation include fiberglass, foam, and cellulose.
Insulation is used in buildings, vehicles, and various industrial applications.
Examples of insulation materials include fiberglass batts, spray foam, and mineral wool.
Proper insulation improves energy efficiency and reduces utility costs.
Q90. What exactly is analyzing a circuit
Analyzing a circuit involves studying its components, connections, and behavior to understand its functionality and performance.
Analyzing a circuit involves examining its components, such as resistors, capacitors, and transistors, to determine their values and characteristics.
It also involves studying the connections between components to understand how they interact and affect each other.
Analyzing a circuit includes analyzing its behavior under different conditions, such as ...read more
Q91. Why did you use such a high degree polynomial fit?
Used high degree polynomial fit for better accuracy
Higher degree polynomial fits can capture more complex relationships between variables
May be necessary for accurate predictions in certain scenarios
However, can lead to overfitting if not used carefully
What is Angular Bootstrap?
Q93. What kind of an operating system is Microsoft Windows?
Q94. What is the difference between a Router and a Bridge?
A router and a bridge are both network devices, but they have different functions and operate at different layers of the network.
A router is a networking device that connects multiple networks and forwards data packets between them. It operates at the network layer (Layer 3) of the OSI model.
A bridge is a networking device that connects multiple network segments and forwards data packets between them. It operates at the data link layer (Layer 2) of the OSI model.
Routers are u...read more
Q95. HOW WILL YOU HANDLE CUSTOMERS WHO DOES NOT REQUIRE OUR SERVICE?
I will handle customers who do not require our service by providing them with alternative solutions and maintaining a positive relationship.
Listen to the customer's needs and understand their requirements
Offer alternative solutions or recommend other service providers if applicable
Maintain a positive and professional attitude
Thank the customer for considering our service and express willingness to assist in the future
Keep records of customer interactions for future reference
What are the different types of VPN?
Q97. How is is a keystroke interpreted in Microsoft Windows?
Difference b/w var and let.
Q100. What different in Acb, vcb breaker
ACB and VCB breakers are both types of circuit breakers used in electrical systems, but they differ in their operating mechanisms.
ACB stands for Air Circuit Breaker, while VCB stands for Vacuum Circuit Breaker.
ACB breakers use air as the medium for arc extinction, while VCB breakers use vacuum.
ACB breakers are typically used for low voltage applications, while VCB breakers are used for medium to high voltage applications.
ACB breakers are more commonly found in industrial and ...read more
Top HR Questions asked in Dainik Jagran
Interview Process at Dainik Jagran
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month