Cisco Systems Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

#define MIN(x,y) = (x>y?y:x)

- AL June 15, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

#define MIN(x,y) = ((x)>(y)?(y):(x))

- Anonymous June 15, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

'=' is wrong.

- Ravi March 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

'=' is wrong.

- Ravi March 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 4 vote

Deletion of node -> assumption that in function we pass the index of the node which is required to be deleted

void DeleteNode(struct node** head, int index)
{
int count = 0;
struct node* current = *head;
struct node* prev = current;
if (index == 0)
{
//special case
*head = current->next;
free(current);
return;
}
while (current != NULL)
{
if (count == index)
{
struct node* save = current->next;
free(current);
prev->next = save;
}
prev = current;
current = current->next;
count++;
}
}


Macro for min of 2 is as follows:
#define min(x,y) (x)>(y)?(y):(x) //important are the braces

reverse string function is as follows:

void ReverseString(char str[], int start, int end)
{
char temp;
while(end>start)//end is the length of the string and start is the starting of the //string
{
temp = str[start];
str[start] = str [end];
str[end] = temp;
start++;
end--;
}
return;
}


Pre-emptive in Operating systems is act of temporarily interrupting the task being carried out by computing system, without its co-operation and with the intention of resuming the task later on. this is called Context switch.
e.g round robin scheduling in OS

OSI layer: Application, presentation, session, transport, network, data link and physical

- jay June 16, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

#define MIN(x,y) x>y?y:x is also working

- Get_RiGhT February 22, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

#define MIN(x,y) x<y?x:y

void main()
{
  printf("%d",MIN(8,4));
}

Definitely works!

- DN March 14, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

#define MIN(a, b) ((a) < (b) ? (a) : (b))

- lliyanc April 10, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Cisco gives hike once in 2-3 years.

New-Joinees only get hike after 2-3 years, so take 100% hike at the time of joining .. . otherwise don't cry after joining. :)

- Simple April 25, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More