Saturday, March 28, 2015

Cavium Network, Brocade & Broadcom Interview Questions





Kindly find below the Interview questions asked in "cavium network, Brocade, Broadcom" company. Basically I haven't remember which question asked in which company and in which round, So instead or sharing company wise and round wise, I am sharing a collection of question by topics.

We hope It will help, job seeker to crack the Interview.... 

VLAN:
=====

1. What is use for VLAN_XLATE table, How it work? Design a data structure for VLAN_XLATE table?
2. How do you stop learning per VLAN bases? Where do you apply in pipeline? 

QoS:
===

Mapping:
========

1. How mapping is work?
2. How do create Decoding and Encoding profile?
3. Is there way to modify a packet internal priority?

Police and Shape:
================

1. Were do use police?
2. Were do use shape?
2. Why police is used at ingress and what is the burst and inter packet delay will be handled by police?
3. Why shaping is used at egress, Why can't be ingress? 
4. Write algorithm for police and shape?  

Bandwidth and Shape :
=====================

1. Configure minimum guaranteed bandwidth on Queue0 70% and Queue1 30% and level 1 scheduler shape with 10%, 
    Generate both the traffic 50:50 percent from ingress, what will be the expected output?
    
LAG:
====


C:
===

1. Write a program to toggle a bit location n and m (toggle_bits(int data, int n_loc, int m_loc))?
2. Find a second largest number in array ?
3. int i = 10 and int j, which is declaration and which is definition ?
4. Add a 2 number with out using + operator ?
5. Multiply a number with 8 with out using * operator ?
6. int * ptr = 1000; char *ch = 1000; int **pptr = 1000; void *vd = 1000; ptr++, ch++, pptr++, vd++; printf("all value ") ?
7. Write a program to print range value separated(using -)and single value separated(using ,)in following format(2,4,6-9,11,)?
8. Write a program to insert_sorted_list(),delete_sorted_list(), delete_entire_list() and write program to test inset, delete and delete entire ?
9. Add a given number using program a + b ? (indirectly mean of this question handle overflow) ?
10. Define a data structure for the node should contain list, left child and right child ?
11. Define a data structure for to implement malloc ?
12. Write link list library for insert/delete ?
12. Write a program to delete a n'th node from last ?

                                   10
                                       
                              6         15
                              
                            3   8    12    18 
                            
            output:|------------------------------|    
                   |-> 3->6->8->10->12->15->18----|

  
int Add(int x, int y)
{
   int carry;
    // Iterate till there is no carry 
    while (y != 0)
    {
        // carry now contains common set bits of x and y
        carry = x & y; 

        // Sum of bits of x and y where at least one of the bits is not set
        x = x ^ y;

        // Carry is shifted by one so that adding it to x gives the required sum
        y = carry << 1;
    }
    return x;
}

int 
mask_bits(int data, int s_bit, int e_bit) 
{
  int n_mask = 0, mask = 0;
  int n = 0;
  n_mask = ((e_bit - s_bit)+1);
  n =(0x1<<n_mask);
  mask = ~((n-1) << (s_bit-1));
  data =  data & mask;
  return data;
}

23. Reverse ever alternate node in a link list. mean List: 1->2->3->4->5->6->   after reverse 2->1->4->3->6->5->
     Reverse_Alternate_Node(LIST ** head)
       {
         LIST *prev = *head;
         LIST *curr = NULL;
         LIST *to_be_link = NULL; 
         
         if(!prev) return ;
         curr = prev->next;
         
         while(curr) {
          to_be_link = curr->next;
          curr->next = prev;
          prev = to_be_link;
          to_be_link = curr->next;
          if(!prev) break;
            curr = prev->next;
          if(curr) to_be_link->next = curr;    
         }
         
         if(to_be_link) to_be_link->next = prev; 
         return ;
       }
       
24. N number of element("ab", "zb", "cd", "wx", "ab","gv","cd",..."ab", ...."cd") stored in a contagious memory. Element size is 2 byte character.
    Remove the alternate repeated elements(("ab", "zb", "cd", "wx", "--","gv","--",..."ab", ...."cd")). 
    Write an algorithm should meat time complexity O(1) and space complexity constant. 
     > Solution 1: 2 dimension array (array[26][26]) require 676 byte storage.
     > Solution 2: Use Bit-map(size = ((26*26)/8)+1; bitmap[size];) requite 85 byte storage
                    /*Bit map location is calculate with the assumption, 
                      bitmap- 0 bit is map to "aa" 26 bit is map to "ba" so on..*/
                    void
                    get_bitloc(char *str, int *array_loc, int *bit_loc)
                     {
                       /*Assume always str, array_loc and bit_loc is valid*/
                       int base = str[0] - 'a';
                       int base_bit_pos = (base*26)%8;
                       int bit_pos  = (str[1] - 'a');                       
                       *array_loc = (base*26)/8;              
                        base = base_bit_pos + bit_pos;
                       *array_loc += (base/8); 
                       *bit_loc = (base%8);
                     }
                    /*First visit a set a bit second visit unset a bit and remove the element from storage.*/
                    int remove_element(char **mem)
                        {
                           int loc = 0, bit_loc = 0;
                           int is_set = 0;
                           char *ptr[2] = *mem;
                           while(ptr) {
                             get_bitloc(ptr, &loc, &bit_loc);
                             is_set = bitmap[loc]&(0x80>>bit_loc);
                             if(is_set) { remove content in memory}
                             bitmap[loc] = bitmap[loc]^(0x80>>bit_loc);     
                             ptr++;
                           }
                        }
     
    
25. N step staircases are there where you can claim 1 or 2 step at time. How many possible way to reach you a top.
     Solution:
      > if N = 1 , Possible way(1) = 1
      > if N = 2 , Possible way(2) = (1,1) (2)
      > if N = 3 , Possible way(3) = (1,1,1) (2,1) (1,2)
      > if N = 4 , Possible way(5) = (1,1,1,1)(2,1,1) (1,2,1) (1,1,2) (2,2)
      > if N = 5 , Possible way(8) = (1,1,1,1,1) (2,1,1,1)(1,2,1,1) (1,1,2,1) (1,1,1,2) (2,2,1) (2,1,2) (1,2,2) 
      int 
      Fibonacci(int n)
       {
         if ( n == 0 )
           return 0;
         else if ( n == 1 )
           return 1;
         else
           return ( Fibonacci(n-1) + Fibonacci(n-2) );
       } 
       
       

LAG:
====
1. Different between LAG and ECMP ? Why they are configure directly connection node being LAG, why cannot ECMP?
    Directly connected routers can be connect way ecmp path, but there will be a unnecessarily reserve IP address which can be connect way L2 itself.  
2. What we need dynamic LAG, why cannot use static lag instead of dynamic LAG ? (Mean why we need LACP) ?
    Dynamic LAG is require to avoid loop between the node. 
              ____            ____
    example: |    |----------|    |
             | S1 |----------| S2 |
             |____|----------|____|
             
              In "S1" static lag is configured  and S2 normal STP is running on the port which is directly connected.  
3. 

L2 Learning packets indication to CPU:
*************************************

> Polling method  --> For station moument, first it will send add and delete call to CPU. 
> FIFO method     --> For station moument, send as updated.


We Heartily Thanks to Raja for Sharing his interview experience/questions with Q-4-Interview. 


If you would like to contribute, mail us your interview experience at "q4interview@gmail.com"We will like to publish it on "q4interview.blogspot.in" and let's help other job seekers.



Thursday, March 26, 2015

Aricent Telephonic Interview Question



Kindly find below the Aricent Telephonic round question.

1. Introduce yourself briefly.
2. Briefly explain about the current project.
3. Sizeof if operator or macro or inline function.
4. Write you own sizeof operator.
5. What is little indian & big indian. How you will identify little indian machine.
6. What is IPC, different types of ipc mechanism
7. What is difference in process and thread.


14. pkt capture tool used in your project.
15. tcpdump options used, explain the L2 pkt formate. 
16. Debugging tool,If crash identify, how you will debug it. 
17. diff in static and global keyword




If you like to thanks to Q-4-Interview (q4interview.blogspot.in) for being a helpful free resource? Then why not you tell your friends about it.

Saturday, March 21, 2015

Wipro Interview Questions


I would like to share the interview exp/question recently held for Wipro,at 3-5 years exp for L2/L3 protocol dev. Basically there were two technical and one HR round, HR was jsut formality
and about joining date etc. 

First Round
----------- 
1. Introduce yourself briefly. 
2. How ping works.which protocol used in it.
3. What is NAT.
4. Write a program to reverse a number, input 12345 output 54321.
5. Write a program to find the loop in a single linklist.
6. Now Modify your program to remove the loop in same linklst. 
7. What is dangling pointer. So As per him in question 6 it will occurred. 
8. What is deadlock.
9. Write a program in which deadlock created. there were two question ... like how you will identify it, and avode it. 
10. Write a program to delete a node in double linklist if info match. 
11. what are the procedure to allocate the memory dynamically in c. 
12. what are the difference in malloc, calloc and realloc.
13. what are the scheduling technique available. 
14. What are the interprocess communication available. 
15. In pipe IPC, whether first pipe get terminated or still in BG. 
16. what is shell.
17. How to protect the shared memory. 
18. Do you know the GDB. Where it will be used. how you will load. 
19. How you will have the core dump, what are all the information you will get it, how you will debug it. 
20. Do you know chunk file. 
21. what is fork(). what fork will return, whether parent will run first or child when you will do fork. 
22. What is NULL pointer. 
23. What is void pointer. 
24. Can you write a generic single linklist program using void.
25. JUMP,breakpoint, next,continue etc. in GDB, what is 
26. Do you know the socket programming, Write a simple client/server program.
27. What are the call will be in UDP.
28. How TCP handshake will be happen. 
29. What is fragmentation in IP packet. Then what is it in OS context.  
30. What is priority inversion.
31. What is ARP, what are the filed in ARP table ,how it will updated. 
31. Do You have any questions, Wait for another round.  


Second round
------------ 



HR Round (Final round)
---------------------- 
1. He gone through the resume and ask some simple questions.
2. when you can join us. 
3. Reason to leave the current company. 
4. Then some question related to work. environment in Wipro, expectation of Wipro.
5. Do you have any Question. 

If you like to thanks to Q-4-Interview (q4interview.blogspot.in) for being a helpful free resource? Then why not you tell your friends about it.

Wednesday, March 18, 2015

Aricent Interview Question





We Heartily Thanks to Zahid for sharing his interview exp/question with Q-4-Interview.

I had telephonic interview with Aricent, after few days I got call that I have another interview with cisco client. I would like to share the questions with cisco, Though I am not able to 
recall all question, but as much I can, sharing same here ....

Briefly Introduce Yourself, about current project.
1. Wap Reverse a sll?
2. Wap to read n bytes from a hardware reg ?
3. What mechanism does kernel use to synchronize the applications accessing the same kernel data structures?
4. What is i2c  bus arbitration ?
5. Explain Sequence of booting linux from scratch via uboot?
6. Hardware related question what/why/how 
   a) pcie, 
   b) usb,
   c) uart,
   d) i2c,
   e) spi


If you like to thanks to Q-4-Interview (q4interview.blogspot.in) for being a helpful free resource? Then why not you tell your friends about it.

Monday, March 16, 2015

Accenture PL/SQL Interview Questions



Hi Visitor,

We heartily Thanks to ANJALESH for sharing his interview experience with Q-4-Interview.

Kindly find below the Accenture Telephonic Interview questions for pl/sql developer @ exp 1.4.

Tell me about yourself?

SQL:
====

DO YOU KNOW ABOUT TRIM FUNCTION?
WHAT IS LTRIM AND RTRIM?
DO YOU KNOW ABOUT PADDING THEN WHAT IS LPAD AND RPAD?
WHAT IS INSTR FUNCTION
WHAT IS SUBSTR FUNCTION
WHAT IS DIFFERENCE BETWEEN UNION AND UNION ALL
WHAT IS DIFFERENCE BETWEEN ROWID AND ROWNUM
WHAT IS ROW_NUMBER() FUNCTION THEN WHAT IS THE USE OF OVER() CLAUSE.
DO YOY KNOW ABOUT JOINS IN SQL?
WHAT IS FULL OUTER JOIN
WHAT IS THE GROUP BY CLAUSE?
WHAT IS THE USE OF HAVING CLAUSE WITH GROUP BY
WHAT IS PSEDOCOLUMNS

pl/sql
======

What is difference between procedure and function?
How to return value using procedure in pl/sql?
What is syntax of pl/sql function?
What is view?
What is Materialized View?
What is difference between view and Materialized View?
What is package in pl/sql ?
What is advantage of package in pl/sql?
What is index?
What is sequence?
What is trigger in pl/sql?
What is the use of pl/sql trigger and how many type of trigger?
What is synonym in pl/sql?
What is collection in pl/sql?
How to reduce execution time of any sql query?
Do you know about bulk collect and forall?


For more recent interview question of various companies follow Q-4-Interview at Facebook.



IpInfusion Interview Questions


We heartily thanks to Ankit For sharing his interview experience with Q-4-Interview,
Kindly find the same,the questions that were asked during my interview with IP Infusion.I am not able to recall all the questions but sharing those which I can recall as of now.

1. How ECFM packet looks like ?

2. VLAN ID how many bytes? what are all the bytes?

3. Suppose packet enters on NIC card,how it reaches the application running on the system ?

4. How many bytes is IPv4 and IPv6 address ?


11. Y1731 working .Basic protocol.

12. Describe about yourself and ur strengths. 





Thursday, March 12, 2015

Brocade Interview Questions



Kindly find below the Brocade Interview process/questions recently held for 0-3 year exp level.


There were totally three round including written test.

Written Test
+++++++++++

There were 40 questions covering the aptitude <20> and c programing question including data structure <20>.

Aptitude Question (20 questions)
--------------------------------

1.       Simple interest/compound interest. (2)
2.       Profit/loss (2)
3.       Age (1)
4.       Train (2)
a.       Two train running in same direction (1)
b.      Train cross the platform (1)
5.       One question from necessary and sufficient condition.(2)
6.       Men and work (2)
7.       Pipe and tank (1)
8.       Stream and boat (1)
9.        Reasoning question (3) <easy only>
10.   Time and distance (2)
Not able to recall other questions, but mostly questions were direct and easy.  

Program
-------

1.       Str = %s”;
              Printf(str,”k\n”);
    
2.       Str = “green\0\Rules\0”;
Printf(“%d”,sizeof(str));

3.       # sends messages to preprocessors
a)      True
b)      False

4.       Range of double 1.7e-3.8 to 1.7 e3.8 (16 bit platforms)
a)      True
b)      False

5.       Int *a = malloc (256* 256*) (on 16 bit )
If (a= NULL)
Printf(“allocation failed”);

6.       Printf(“green”,”rules\n”);

7.       Enum error (exception, error,fail);
Error str1, str3, str2;
Printf(“%d %d %d “, str1, str2, str3);
8.       Type def enum error (exception, error ,fail) err;
What is err here?

9.       Int *p = NULL;
       Int *p = 0;
Both are different?
a)      True
b)      False

10.   Int (*p) ();
Mean of this declaration.

11.   Int a = 10;
Int *const p = & a;
*p =10;
Any error in it.if no than value of a is?

12.   Int a = 10;
Int *p = &a
Int *const q = p;
Any error in it.if no than value of a is?


 Remaining question I am missing here.

Interview
+++++++++


1.       Introduce yourself.



2.       Then there were questions from projects.
3.       Write a program to find the merging point of 2 linklist.
Linklist 1 --------------|
·         ---- Merging point ---------------------
Linklist 2 --------------|
4.       Explain the disjekstra algorithm, How you can implement the dynamic program here.
5.       Fibonacci series bist way (recursive or looping, explain with reason)
6.       Then some question from MPLS (what is it , how label etc)
7.       Difference between MPLS and IP protocols like ospf rip bgp etc.
8.       IP layer protocol are which layer protocol.
9.       BFS and DFS traversal.
10.   Complexity of bubble sort & which sorting technique will choose to sort list of data (bubble sort, quick sort & merging sort). & why
11.   Complexity of insertion of an element in binary search tree.
12.   Then there were some question form TCP and UDP. Ike difference why TCP not UDP.   What is three hand shaking etc?
13.   Then he wrote a program and asked some question from it.

Int * sum (a, b)
{
Int *p, c;
c = a+b;
*p =  &c;
Return p;
}
Int main ()
{
Int *p;
P= sum(5,3);
Printf(“%d ”,*p);

}
In case of multithreading what issue will be, How you will resolve it .
14.   Have you worked on OSPF, what is difference in OSPF and BGP.
15.   How network prefixes match in routing table.
16.                   Router A
                           |                                  192.168.1.0/24
         ---------------------------------------
         |              |                       |
    Router B          router c              Router D

Network LSA ----------- How many n/w
Router LSA -------------- How many LSA

Managerial Round
++++++++++++++++

1.       Introduce yourself.
2.       About the technical round, how it was.
3.       About the project (academic and current )
4.       About offered role and responsibility.
5.       Rate yourself in c.
6.       Some question from function pointer.
7.       About OSPF.
8.       Why you join us. Reason
9.       So for how many lines of code u have done.
10.   Do you have any questions?


Feel free to Like Our Facebook page for more companies interview questionsCLICK --> For more fresh question being asked in various company follow us at facebook.