Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.


Please wait...

Interview Questions and Answers :: Cisco

Home > Experience Archives > Cisco > Interview Question Set 7
First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F)
    Question :: 1
    What does ## do in a macro?

    Answer:

    A single '#' will create a string from the given argument, regardless of what that argument contains, while the double '##' will create a new token by concatenating the arguments.

    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 2
    What does this do:
    write( 1, c, strlen(c) );
    What does this do:
    printf( "%s", c );
    What's the difference?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 3
    What's wrong with this program?

    #include

    int
    main( int argc, char const * argv ) {
    for( int i = 0; i < argc; ++i ) {
    printf("%s\n", argv[i] );
    }
    }

    Can you tell me what this program will do when I run it like this:
    1 2 3 4

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 4
    What is a stripped executable?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 5
    What does this do?

    int a( int i ) {
    int c = 0;
    while( i ) {
    if( i & 1 ) { c++; }
    i >>= 1;
    }
    return c;
    }

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 6
    What does this one do?

    int b( int i ) {
    static unsigned char n[] = {0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4};
    int c = 0;
    while( i ) {
    c+=n[i&15];
    i >>= 4;
    }
    return c;
    }

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 7
    What are the 7 system calls do you need to use to implement a tcp server.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 8
    IPC mechanism being used in your work. May need to explain one.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 9
    Some questions on critical section, deadlock, what is it and how to avoid it.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 10
    Advantages of RSTP over STP.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 11
    Explaining Multi Link Trunking with LACP. How it is used at customer setups. Advantages??

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F)
    Question :: 1
    Tell me everything you know about the below Data structure.
    (a) Red-Black Tree
    (b) B-Tree

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 2
    Describe a data structure that can store a set of integers.

    For partial credit, or you can pick one of these:
    bit vector
    binary tree
    std::vector
    doubly linked list

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 3
    Explain the behavior of RSTP in point to point link and shared link.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 4
    Explain control path and data path on your device with example.

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 5
    A user defined semaphore programmed was written for SemTake and SemGive with one global variable, which was updated on semtake/give.
    Question was to point out if that program will work as per semTake/semGive requirement or not? What may be the problem with that?

    Answer:
    The problem was that while a process would be executing the semTake and another process may preempt before even the global variable is updated.
    So, the second process may even take the sem.Which lead to problem ) . What could be a solution to it?
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 6
    What does this do:

    write( 1, c, strlen(c) );

    What does this do:

    printf( "%s", c );

    What's the difference?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 7
    What is the return value of main used for?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 8
    What is select used for?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 9
    Have you ever heard of epoll?

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 10
    How the belwo are useful for debugging? Have you used ..?

    perf
    oprofile
    gprof

    Answer:
    No Discussion on this question yet!
    Please Login First :
    Tags:

    No Tags on this question yet!

First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F)