Cisco
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
The code snippet defines a macro called clrscr() and then calls it in the main function.
The macro clrscr() is defined as 100, so when it is called, it will be replaced with 100.
The printf statement will print the value returned by clrscr(), which is 100.
The output of the code will be '100'.
The question asks about the ratio of the area of a triangle to the area of a trapezium formed by a parallel line cutting the triangle.
The given line DE is parallel to the base side of triangle ABC.
The ratio of DE to BC is 3:5.
We need to find the ratio of the area of triangle ABC to the area of the trapezium formed by DE and the base side of the triangle.
To access x, use the following syntax: y.s3.s2.x
Accessing x requires navigating through the nested structures
Start with y, then access s3, followed by s2, and finally x
The method returns the least common multiple (LCM) of two numbers m and n.
The method uses prime factorization to find the LCM.
It iterates through all prime numbers less than m and n.
For each prime number, it finds the largest power of the prime that divides both m and n.
The method then multiplies the current LCM by the prime raised to the maximum power.
Finally, it returns the computed LCM.
The program finds the number of ways to create 1 rupee using different coins.
Use a recursive function to iterate through all possible combinations of coins
Start with the largest coin and subtract its value from the target amount
Repeat the process with the remaining coins until the target amount becomes zero
Count the number of successful combinations
Answering two programming questions related to printf() function and data types.
In the first program, the output will be 'as hi is'.
In the second program, the output will be '-1 255'.
The first program uses printf() function to print three strings.
The second program demonstrates type conversion from unsigned short to unsigned char.
The value of -1 in unsigned short is converted to 255 in unsigned char.
Algorithm to find elements appearing more than n/3 times in an array in linear time
Divide the array into three equal parts
Iterate through the array and count the occurrences of each element in each part
Check if the count of any element is greater than n/3
Return the elements that meet the condition
An algorithm to schedule matches in a tournament with N teams, where each team plays only one match per day.
Create a round-robin schedule where each team plays every other team once.
Start by assigning each team a number.
Generate a schedule by pairing teams based on their numbers.
Optimize the schedule by minimizing the number of days required.
Consider using a graph-based approach to find the optimal schedule.
The code snippet demonstrates the use of the fork() function to create multiple child processes.
The fork() function is used to create a new process by duplicating the existing process.
Each time fork() is called, it creates a new child process that starts executing from the same point as the parent process.
In the given code, fork() is called four times, resulting in a total of 16 processes (including the original parent...
Bridges are used in the network layer of the OSI model.
Bridges are used to connect two or more network segments or LANs.
They operate at the data link layer (Layer 2) of the OSI model.
Bridges use MAC addresses to forward data packets between segments.
They can filter and forward network traffic based on MAC addresses.
Examples of bridges include Ethernet bridges and wireless bridges.
Software Engineer
2.6k
salaries
| ₹10 L/yr - ₹38.9 L/yr |
Technical Consulting Engineer
651
salaries
| ₹8.4 L/yr - ₹30 L/yr |
Senior Software Engineer
627
salaries
| ₹14 L/yr - ₹48.8 L/yr |
Network Engineer
391
salaries
| ₹3.8 L/yr - ₹16 L/yr |
Software Developer
343
salaries
| ₹9 L/yr - ₹39.6 L/yr |
Microsoft Corporation
Hewlett Packard Enterprise
Juniper Networks