# Cisco Interview Experience | Set 14 (On Campus)

• Difficulty Level : Easy
• Last Updated : 28 Jun, 2021

First round Technical
1. Write a code for bubble sort.
2. What are the osi layers and explain them.
3. What are pointers.
4. A puzzle : We have two pits with capacities of 5 and 4. How will you measure 2 litres of water with these pots.
Soln: Fill 5 litre pot and pour the contents into four litre pot. So we are left with 1litre in 5 litre pot and 4 litres in 4 litre pot. Empty the contents of the four litre pot and pour the contents of 5 litre pot(1 litre) into 4 litre pot. Now again fill the 5 litre pot and pour the contents into the 4 litre pot until it becomes full. So now we have 3+1 lites in four litre pot and 5-3=2 litres in 5 litre pot.

Second round
1. Given 9 dots how will u connect all these with just 4 lines without taking off your hand.

Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!

Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!

```. . .
. . .
. . .
```

2. In a car race what will your position be if you overtake the last person. You cant overtake the last person unless it is a circular track.

Next Round

1. Questions about resume and projects.

Soln. given a number a;

Let b=1;

Shift b to the left n-1 times. b<<n-1

C=a&b;

If c is true then the nth bit is 1 or else the nth bit is zero.

3. Given a 8 bit register with values ranging from 0-100. How much bits can be allocated for precision

4. Difference between void main(); and void main(void); – https://www.geeksforgeeks.org/difference-int-main-int-mainvoid/

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

My Personal Notes arrow_drop_up