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

Ciena Interview Questions and Answers for 4 years Experience

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 Q&A

    1 / 20

    Introduce yourself.

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

    No Tags on this question yet!

    2 / 20

    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!

    3 / 20

    Write your own strlen() program.

    Answer:

    #include<stdio.h>


    void strlength(char c[])

    {

       char *p=c;

      int count=0;

      while(*p!=NULL)

      {

        *p++;

        count++;

      }

    printf("%d",count);  

    }

    int main()

    {

      char c[]="prachi katarua";

       strlength(c);

      return 0;

    }

    Please Login First :
    Tags:

    No Tags on this question yet!

    4 / 20

    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!

    5 / 20

    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!

    6 / 20

    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!

    7 / 20

    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!

    8 / 20

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

    Answer:
    Char Pointer p is pointing to char string which is stored in code segment so that it can not change due to read only memory location but in second statement char array is stored in stack segment which can be modified during run time.
    Please Login First :
    Tags:

    No Tags on this question yet!

    9 / 20

    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!

    10 / 20

    ping Host A to host B, explain packet at each steps.
    Host A> ping Host B

    topology

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

    No Tags on this question yet!

    11 / 20

    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!

    12 / 20

    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!

    13 / 20

    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!

    14 / 20

    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!

    15 / 20

    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!

    16 / 20

    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!

    17 / 20

    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!

    18 / 20

    What is volatile keyword.

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

    No Tags on this question yet!

    19 / 20

    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!

    20 / 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 Q&A First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round Q&A First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round Q&A First Round (F-2-F) Second Round (F-2-F) Third Round (F-2-F) Fourth Round (F-2-F) HR Round Q&A