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 :: Ciena

Home > Experience Archives > Ciena > Interview Question Set 1
First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round
    Question :: 1
    Introduce yourself.

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

    No Tags on this question yet!

    Question :: 2
    What will be the output.
    char *p = "ciena"
    char ar[] = "ciena"
    strlen(p);
    strlen (ar);
    strlen (&ar);

    Answer:
    5 5 5
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 3
    Write your own strlen() program.

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

    No Tags on this question yet!

    Question :: 4
    How to find the nth node from last in single linklist.

    Answer:
    void GetNthFromLast(struct node* head, int n)
    {
    int len = n, i;
    struct node *temp = *temp1 = head;

    while (temp != NULL)
    {
    if (len > 0)
    {
    temp = temp->next;
    len--;
    continue;
    }

    temp = temp->next;
    temp1 = temp1->next;
    }


    if (len)
    {
    printf("\r\n Node in the given Linked list is not enough \r\n");
    return;
    }

    printf ("%d\n", temp1->data);

    return;
    }
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 5
    Allocate the memory for 2 int*. and free it. Now I had question. How free will know how many byte memory has to free.

    Answer:
    int *p;
    p = (int *) malloc(2 * sizeof (int));

    When memory allocation is done, the actual heap space allocated is one word larger than the requested memory. The extra word is used to store the size of the allocation and is later used by free( )
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 6
    what will be the output of the below line.
    int x = 100;
    printf("%d",!x);

    Answer:
    0
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 7
    What will be the size of the below structure. explain why size will be this only.
    struct x
    {
    int p;
    struct x *y;
    char z;
    char *b;
    };

    Answer:
    16
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 8
    What is difference in the below
    char *p = "ciena"
    char ar[] = "ciena"

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

    No Tags on this question yet!

    Question :: 9
    Is there any abnormality if no the what will be output.
    Sizeof (NULL)
    Strlen(NULL);
    sizeof(" ")

    Answer:

    4, 0, 1

    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 10
    ping host A to host B, explain pkt at each steps
    ping Host B
    Host A -------- Switch ------------ Host B

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

    No Tags on this question yet!

    Question :: 11
    What is ARP. What is Ethertype of ARP and What is proxy ARP.

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

    No Tags on this question yet!

    Question :: 12
    What is vlan, what is untag and tag pkt.

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

    No Tags on this question yet!

    Question :: 13
    Explain the current project and your activities/role in it.

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

    No Tags on this question yet!

    Question :: 14
    What is static keyword.difference in below pgm and memory allocation of it.
    1. static int x;
    main()
    {
    printf x
    }

    2.
    fun()
    {
    static int x;
    }

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

    No Tags on this question yet!

    Question :: 15
    What is difference between process and thread, how communication happen between them. what is shared between them.

    Answer:

    • Threads can directly communicate with other threads of its process; processes must use inter process communication to communicate with sibling processes.

    • Both process and threads¬†are independent path of execution but one process can have multiple Threads.

    • Each process has its own code, data and kernel context (VM structures, descriptor table, etc). While the threads of a process, they share the same code, data and kernel context.

    • New threads are easily created. However the creation of new processes require duplication of the parent process.

    • Threads are created using clone() method. Process are created using fork() method.

    • Processes are heavily dependent on system resources available while threads require minimal amounts of resource, so a process is considered as heavyweight while a thread is termed as a lightweight process.

    • Context switch between the threads are not much time consuming. Context switch between the process is time consuming.

    • Processes never share the same memory. When a child process creates it duplicates the memory location of the parent process. Process communication is done by using pipe, shared memory, and message parsing.

    • Threads within the same process share the Memory(heap/global), but each thread has its own stack and registers, and threads store thread-specific data in the heap. Threads never execute independently, so the inter-thread communication is much faster when compared to inter-process communication.

      • each thread has its own stack, having its own stack allow to have its own execuation context.



    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 16
    What is mutex. Can you write a program using same?

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

    No Tags on this question yet!

    Question :: 17
    What is semaphore, how it differ form mutex.

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

    No Tags on this question yet!

    Question :: 18
    What is volatile keyword.

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

    No Tags on this question yet!

    Question :: 19
    char *p = (char *) malloc(sizeof(char));
    P++;
    is there any abnormality in the above line.

    Answer:
    no
    Please Login First :
    Tags:

    No Tags on this question yet!

    Question :: 20
    20. can we create thread like, is there any difference in A and B
    A) B)
    thread process
    | |
    thread thread
    | |
    Thread thread

    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) Fourth Round (F-2-F) HR Round First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round