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.

Interview Questions and Answers :: 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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) First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F)
  • 1. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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!