Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

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

No Discussion on this question yet!
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);

5 5 5
Tags:

No Tags on this question yet!

3 / 20

No Discussion on this question yet!
Tags:

No Tags on this question yet!

4 / 20

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

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;
}
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.

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( )
Tags:

No Tags on this question yet!

6 / 20

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

0
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;
};

16
Tags:

No Tags on this question yet!

8 / 20

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

No Discussion on this question yet!
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(" ")

4, 0, 1

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

No Discussion on this question yet!
Tags:

No Tags on this question yet!

11 / 20

What is ARP. What is Ethertype of ARP and What is proxy ARP.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

12 / 20

What is vlan, what is untag and tag pkt.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

13 / 20

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

No Discussion on this question yet!
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;
}

No Discussion on this question yet!
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.

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

Tags:

No Tags on this question yet!

16 / 20

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

No Discussion on this question yet!
Tags:

No Tags on this question yet!

17 / 20

What is semaphore, how it differ form mutex.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

18 / 20

What is volatile keyword.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

19 / 20

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

no
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)
| |
| |

No Discussion on this question yet!
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

1 / 15

Introduce yourself.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

2 / 15

Write a program to find whether linklist is circular or not.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

3 / 15

What is difference in sourceport and inport in ACL rule.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

4 / 15

No Discussion on this question yet!
Tags:

No Tags on this question yet!

5 / 15

Write a program to set any bit of number. also write program to check whether any particular bit is set or not.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

6 / 15

How may slices in each CAP, and how many entry can be in each CAP.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

7 / 15

What is vlan cross connect.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

8 / 15

What we can in egress which we can't do in VCAP/ICAP.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

9 / 15

Is it required to set the qset, without setting it can we not create group.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

10 / 15

Crete a entry in Braodcom, with below
Dest mac,
inport,
ethernet Type,
source port,

No Discussion on this question yet!
Tags:

No Tags on this question yet!

11 / 15

How will you protract a Global variable.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

12 / 15

Write the prototype of function to create a thread.Why we pass NULL.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

13 / 15

Write program to protract the global variable.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

14 / 15

How semaphore differ from mutex.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

15 / 15

What is IPC, is shared memory is ipc, can u write the prgram, using shared memory.

No Discussion on this question yet!
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

1 / 12

Introduce yourself.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

2 / 12

Write a program to merge the two linklist in sorted manner.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

3 / 12

What is socket, can you write a program.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

4 / 12

What is pthread, mutex and semaphore. can you write program.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

5 / 12

What is the IPC.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

6 / 12

What mechanise used for related and unrelated process.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

7 / 12

No Discussion on this question yet!
Tags:

No Tags on this question yet!

8 / 12

Do you see any difference in the below.
char *p = "ciena"
char ar[] = "ciena"

No Discussion on this question yet!
Tags:

No Tags on this question yet!

9 / 12

Write a program to find the loop in linklist.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

10 / 12

Why below structure take only 12 byte.
struct cc
{
int x;
char y;
struct cc *c;
}

No Discussion on this question yet!
Tags:

No Tags on this question yet!

11 / 12

What is pointer to constant and constant to pointer.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

12 / 12

What is lacp. Explaion little bit about state machine.

No Discussion on this question yet!
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

1 / 10

Draw the flow digram for upstream and downsteam in your project.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

2 / 10

Memory layout in C.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

3 / 10

What does volatile keyword do. write a program using it.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

4 / 10

Do you know malloc, what does malloc return, why void.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

5 / 10

Write a declaration of array of pointer, pointer to an array.

Array of pointer

Int tmp[]={1,2,3};
Int *ar[3];
for(i=0;I<3;I++)
at[I]=&tmp[I];

Pointer to an array

Int *Parr;
Parr = &tmp;
Tags:

No Tags on this question yet!

6 / 10

Write a prototype of function having argument as array of pointer, returning pointer of int type.

int * Profunction( int *arrpoint[]);
Tags:

No Tags on this question yet!

7 / 10

Allocate memory for 2-D array.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

8 / 10

No Discussion on this question yet!
Tags:

No Tags on this question yet!

9 / 10

Do you know pragma,what is it, how may types of it.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

10 / 10

Through out your carrier, do u face any issue personal/technical etc.if so how you come over it.

No Discussion on this question yet!
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

1 / 4

Introduce yourself.

No Discussion on this question yet!
Tags:

No Tags on this question yet!

2 / 4

Why do you want to join ciena ?

No Discussion on this question yet!
Tags:

No Tags on this question yet!

3 / 4

How is you carrier in your present company ?

No Discussion on this question yet!
Tags:

No Tags on this question yet!

4 / 4

Do you feel anything, which need to be change/improve in your present company?
And there was many more question in this round, it may vary from person to person.