Filter interviews by
Updating the third element of an array modifies its content and retains the same size.
Identify the original array, e.g., ['apple', 'banana', 'cherry', 'date'].
Update the third element: array[2] = 'orange'.
The new array becomes ['apple', 'banana', 'orange', 'date'].
The size of the array remains 4.
The ternary operator is a concise way to perform if-else logic in programming, improving code readability and reducing lines of code.
Syntax: condition ? expressionIfTrue : expressionIfFalse;
Example: int max = (a > b) ? a : b; // assigns max to a if a is greater than b, otherwise assigns b.
Can be nested: int result = (a > b) ? (a > c ? a : c) : (b > c ? b : c); // finds the maximum of three numbers.
Usef...
Script in Selenium is a set of instructions written in programming language to automate web browser actions.
Selenium scripts can be written in various programming languages such as Java, Python, C#, etc.
Scripts can be used to automate repetitive tasks such as filling out forms, clicking buttons, etc.
Selenium provides various methods and functions to interact with web elements such as findElement(), click(), sendKe...
SQL is a programming language used to manage and manipulate relational databases.
SQL stands for Structured Query Language
It is used to create, modify, and query databases
Common commands include SELECT, INSERT, UPDATE, and DELETE
SQL is used in various industries including finance, healthcare, and e-commerce
Java is a high-level programming language used for developing applications and software.
Java is an object-oriented language
It is platform-independent
Java code is compiled into bytecode
Java Virtual Machine (JVM) executes the bytecode
Java is used for developing web applications, mobile applications, desktop applications, and games
Joins in SQL are used to combine data from two or more tables based on a related column between them.
There are different types of joins: inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables.
Left join returns all the rows from the left table and matching rows from the right table.
Right join returns all the rows from the right table and matching rows from ...
I applied via Job Fair and was interviewed in May 2023. There were 4 interview rounds.
Normal Aptitude test, in this test, these are the topics Number System, Profit loss, Simple and Compound Interest, train problem, age problem, average, probability etc.
Updating the third element of an array modifies its content and retains the same size.
Identify the original array, e.g., ['apple', 'banana', 'cherry', 'date'].
Update the third element: array[2] = 'orange'.
The new array becomes ['apple', 'banana', 'orange', 'date'].
The size of the array remains 4.
The ternary operator is a concise way to perform if-else logic in programming, improving code readability and reducing lines of code.
Syntax: condition ? expressionIfTrue : expressionIfFalse;
Example: int max = (a > b) ? a : b; // assigns max to a if a is greater than b, otherwise assigns b.
Can be nested: int result = (a > b) ? (a > c ? a : c) : (b > c ? b : c); // finds the maximum of three numbers.
Useful fo...
Percentage ,time and work,time and distance sql
I applied via Campus Placement and was interviewed in Apr 2023. There were 2 interview rounds.
Simple DSA qus related to recursion
Javascript questions and java questions
I applied via Recruitment Consultant and was interviewed in Apr 2021. There were 5 interview rounds.
SQL is a programming language used to manage and manipulate relational databases.
SQL stands for Structured Query Language
It is used to create, modify, and query databases
Common commands include SELECT, INSERT, UPDATE, and DELETE
SQL is used in various industries including finance, healthcare, and e-commerce
Joins in SQL are used to combine data from two or more tables based on a related column between them.
There are different types of joins: inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables.
Left join returns all the rows from the left table and matching rows from the right table.
Right join returns all the rows from the right table and matching rows from the l...
Java is a high-level programming language used for developing applications and software.
Java is an object-oriented language
It is platform-independent
Java code is compiled into bytecode
Java Virtual Machine (JVM) executes the bytecode
Java is used for developing web applications, mobile applications, desktop applications, and games
Script in Selenium is a set of instructions written in programming language to automate web browser actions.
Selenium scripts can be written in various programming languages such as Java, Python, C#, etc.
Scripts can be used to automate repetitive tasks such as filling out forms, clicking buttons, etc.
Selenium provides various methods and functions to interact with web elements such as findElement(), click(), sendKeys(),...
Top trending discussions
I applied via Naukri.com and was interviewed before Apr 2020. There was 1 interview round.
I am a passionate software developer with 5 years of experience in developing web applications using various technologies.
5 years of experience in software development
Proficient in developing web applications
Skilled in using various technologies
Passionate about coding and problem-solving
Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.
Deadlock occurs when two or more processes are stuck in a circular waiting state.
It happens when processes compete for resources and each process holds a resource that another process needs.
Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and ...
Code for rand7 using rand5 function
Use rand5 twice to generate a number in [1,25] with equal probability
If the number is greater than 21, discard and try again
Otherwise, return (number mod 7) + 1
LRU cache is implemented using a doubly linked list and a hash map.
Create a doubly linked list to keep track of the order of elements in the cache.
Create a hash map to store the key-value pairs of the cache.
When a new element is added, check if the cache is full. If it is, remove the least recently used element from the linked list and the hash map.
When an element is accessed, move it to the front of the linked list to...
Function to randomly select pivot element in Quick Sort
Generate a random index within the range of the array
Return the element at the randomly generated index as the pivot
I appeared for an interview before Nov 2020.
Round duration - 90 minutes
Round difficulty - Medium
Timing was around 10am
It was quite a normal online examination kind of environment
People from the company were there to invigilate
All were quite nice and helpful in case the exam got stuck
An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...
Determine the order of characters in an alien language based on a list of words.
Create a graph data structure to represent the relationships between characters in the words.
Perform a topological sort on the graph to find the order of characters.
Return the smallest lexicographical order of characters as the result.
Given an array of integers arr
of size N
and an integer K
, determine if there are any duplicate elements within a distance of K
from each other in the array. Return "true...
Check if there are any duplicate elements within a distance of K from each other in the array.
Iterate through the array and keep track of the indices of elements using a hashmap.
For each element, check if it already exists in the hashmap within distance K.
Return true if a duplicate is found within distance K, otherwise return false.
Round duration - 30 minutes
Round difficulty - Medium
Timing was 2pm when it started
Interviewer was polite
Ninja enjoys working with numbers, and Alice challenges him to find the Kth largest value from a given list of numbers.
The first line contains an integer 'T...
The task is to find the Kth largest element in a given list of numbers for each test case.
Read the number of test cases 'T'
For each test case, read the number of elements 'N' and the Kth largest number to find 'K'
Sort the array in descending order and output the Kth element
Round duration - 20 minutes
Round difficulty - Easy
Timing was 9 am onwards
Interviewer was good enough
Tip 1 : Focus on specialization of any one skill and keep a basic knowledge of all the skills you mention in your resume
Tip 2 : Gain confidence in presenting yourself by practicing well before
Tip 3 : Gain a basic knowledge of the company you go for selection
Tip 1 : Resume should be simple and precise but pretty smart to cover your skills
Tip 2 : Mention what you really know,no false things
I appeared for an interview in Apr 2017.
Firmware is a type of software that is embedded in hardware devices to control their functionality.
Firmware is a combination of hardware and software.
It is used to control the behavior of hardware devices.
Firmware is typically stored in non-volatile memory, such as ROM or flash memory.
Examples of devices that use firmware include routers, printers, and digital cameras.
I am a passionate software developer with experience in building web applications and solving complex problems.
Experienced in programming languages such as Java, JavaScript, and Python
Familiar with front-end technologies like HTML, CSS, and React
Strong problem-solving skills and ability to work in a team environment
Previous projects include developing a customer management system for a small business
I appeared for an interview in May 2017.
based on 3 interview experiences
Difficulty level
Duration
based on 16 reviews
Rating in categories
Software Developer
21
salaries
| ₹3 L/yr - ₹8.4 L/yr |
Assistant System Engineer
13
salaries
| ₹3.5 L/yr - ₹4.5 L/yr |
Softwaretest Engineer
6
salaries
| ₹3 L/yr - ₹5 L/yr |
Software Engineer
5
salaries
| ₹4.8 L/yr - ₹26 L/yr |
Software Tester
5
salaries
| ₹4 L/yr - ₹6 L/yr |
Cognizant
Infosys
Wipro
Tech Mahindra