[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.

Cisco interview questions for experienced Technical interview questions for cisco

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

    1 / 10

    Write a program to print the nth fibonacci number.

    Answer:

    public class FibonacciDemo{



    public static void main(String args[]){



    int i = 6;



    for(int j = 1;j<=6;j )



        System.out.println(fibo(i) " ");



    }



    public static int fibo(int n){



    if(n<=1)



    return n;



    return fibo(n-1) fibo(n-2);



    }



    }

    Please Login First :
    Tags:

    No Tags on this question yet!

    2 / 10

    What's the biggest number you can compute this way?

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

    No Tags on this question yet!

    3 / 10

    How to allocate memory for double pointer?

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

    No Tags on this question yet!

    4 / 10

    How to reverse linked list using recursion?

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

    No Tags on this question yet!

    5 / 10

    Write program to merge two linked lists?

    Answer:

    public class InsertNodeInLinkedList {

        static class Node{

            int data;

            Node next;

            Node(int d){

                data = d;

                next = null;

            }

        }

        

        

        static Node head;

        

        public static int length(Node head){

            if(head == null)

                return 0;

            //create count to hold the length

            int count = 0;

            Node curr = head;

            while(curr != null){

                count ;

                curr = curr.next;

            }

            return count;

        }

        

        public static Node insertNodeAtPosition(Node head, int data, int position){

            //boundary condition

            int size = length(head);

            if(position < 1 || position > size 1){

                System.out.println("Invalid position ...");

                return head;

            }

            

            Node newNode = new Node(data);

            //insert in 1st position

            if(position == 1){

                newNode.next = head;

                return newNode;

            }else{

                Node prevNode = head;

                int count = 1;

                while(count < position-1){

                    prevNode = prevNode.next;

                    count ;

                }

                

                Node currNode = prevNode.next;

                newNode.next = currNode;

                prevNode.next = newNode;

                return head;

            }

        }

        

        

        public static void main(String[] args) {

            InsertNodeInLinkedList list = new InsertNodeInLinkedList();

            list.head = new Node(85);

            list.head.next = new Node(15);

            list.head.next.next = new Node(5);

            list.head.next.next.next = new Node(10);

            System.out.println("Print the list");

            printList(head);

            System.out.println();

            head = insertNodeAtPosition(head, 20, 1);

            System.out.println("Insert 20 at position 1");

            printList(head);

            System.out.println();

            System.out.println();

            head = insertNodeAtPosition(head, 25, 4);

            System.out.println("Insert 25 at position 4");

            printList(head);

        }



        private static void printList(Node n) {

            while(n != null){

                System.out.print(n.data " ");

                n = n.next;

            }

        }

    }

    Please Login First :
    Tags:

    No Tags on this question yet!

    6 / 10

    How to complement a number without using ~

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

    No Tags on this question yet!

    7 / 10

    What is an atomic process with respect to Unix?

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

    No Tags on this question yet!

    8 / 10

    Different kind of semaphores and there usages?

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

    No Tags on this question yet!

    9 / 10

    Explaining the communication between two system
    a. Both under same network
    b. under different network
    -- Need to explain for ARP resolution
    -- What should be L2 and L3 address in every step?
    -- Which tables to look for, and which tables get updated. May need to explain one record from any of these tables.

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

    No Tags on this question yet!

    10 / 10

    Explaining VLAN concept with example

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

    What was the kind of work?? (Dev/sus/support). And what was the work process for the whole team?

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

    No Tags on this question yet!

    2 / 11

    What was your role? How much hands on experience you have. Would you be interested on hand-on work or managing the work.

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

    No Tags on this question yet!

    3 / 11

    How to find sizeof a variable without using sizeof () operator.

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

    No Tags on this question yet!

    4 / 11

    Write a program to delete a node in linked list

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

    No Tags on this question yet!

    5 / 11

    What is the use of bit fields in a structure?

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

    No Tags on this question yet!

    6 / 11

    Is it possible to print sizeof bit field operator and why?

    Answer:

    #include <stdio.h>

    #pragma pack(2)   

    // if above line of code will be there then memory alignment boundry will be set to 2 so size of below will come as 2, else 4 byte.

    int main()

    {

        typedef struct

        {

            unsigned int x:1

        } x;

        printf("size of bitfield struct %d ",sizeof(x));

        return 0;

    }

    Please Login First :
    Tags:

    No Tags on this question yet!

    7 / 11

    printf ("%d\n", ~0xff);, what is the output?

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

    No Tags on this question yet!

    8 / 11

    Write a program to Reversing a SLL with recursion and without recursion.

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

    No Tags on this question yet!

    9 / 11

    Write program to Merge two sorted SLL with recursion with result SLL as sorted SLL.

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

    No Tags on this question yet!

    10 / 11

    int a[0]; will this declaration give any error/warning ? What is the significance of this declaration?

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

    No Tags on this question yet!

    11 / 11

    Toggle all bits of an integer variable.

    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 / 14

    What all do you do in customer setup? Explain with different case examples.

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

    No Tags on this question yet!

    2 / 14

    What are the datacom modules worked on? Explain one of latest development works in detail.

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

    No Tags on this question yet!

    3 / 14

    Any other discussions may come up from resume, so be sure to be able to explain each bit from the resume.

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

    No Tags on this question yet!

    4 / 14

    Tools used for debugging. For example, GDB if used ..may need to explain a few commands from it.

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

    No Tags on this question yet!

    5 / 14

    What are the devices you have worked on and where in the network they are deployed?

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

    No Tags on this question yet!

    6 / 14

    Configuring two systems connected Via a L2 switch.
    What minimum configurations are required for communication between the two systems?
    Explain with example of VLAN configuration. Then explaining it with different vlan and routing configurations.

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

    No Tags on this question yet!

    7 / 14

    One program where one character pointer is declared and pointing to some location.
    Then the pointer is incremented by 1, so that it points to next address location.
    Then the same pointer is type casted to integer pointer.
    Then the value pointed by this integer type casted pointer is fetched and printed.

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

    No Tags on this question yet!

    8 / 14

    What is the size of this pointer variable?
    void * ptr;

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

    No Tags on this question yet!

    9 / 14

    Questions on the different storage classes. Like what are the storage classes, and what are default values?

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

    No Tags on this question yet!

    10 / 14

    Write your own string operation functions. For example strlen, strCopy...
    Note: Write programs with enough clarity. Have a clear understanding of the program so that you can explain with any example.

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

    No Tags on this question yet!

    11 / 14

    How big is a float? Write a program that prints out the size of a float.

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

    No Tags on this question yet!

    12 / 14

    How to use gdb to get the size of a float?

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

    No Tags on this question yet!

    13 / 14

    Write me a program to tell the size of this structure:

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

    No Tags on this question yet!

    14 / 14

    What is the size of the below structure

    struct funky {
    double f;
    int i;
    char c[3];
    void * p;
    int x[0];
    };

    Why is it that size?
    Is the size of this dependent on what machine I run on?
    What does 'int x[0]' mean and what could that possibly be used for?

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

    No Tags on this question yet!