[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

interview questions on cisco switching interview questions on cisco switches

Home > Experience Archives > Cisco > Interview Question Set 7
First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F)

    1 / 11

    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!

    2 / 11

    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!

    3 / 11

    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!

    4 / 11

    What is a stripped executable?

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

    No Tags on this question yet!

    5 / 11

    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!

    6 / 11

    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!

    7 / 11

    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!

    8 / 11

    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!

    9 / 11

    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!

    10 / 11

    Advantages of RSTP over STP.

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

    No Tags on this question yet!

    11 / 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)

    1 / 10

    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!

    2 / 10

    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!

    3 / 10

    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!

    4 / 10

    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!

    5 / 10

    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!

    6 / 10

    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!

    7 / 10

    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!

    8 / 10

    What is select used for?

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

    No Tags on this question yet!

    9 / 10

    Have you ever heard of epoll?

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

    No Tags on this question yet!

    10 / 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)