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

Ericsson Interview Questions and Answers for 1 years Experience

Home > Experience Archives > Ericsson > Interview Question Set 2
First Round (F-2-F) Second Round (F-2-F)

    1 / 10

    Introduce Yourself briefly.

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

    No Tags on this question yet!

    2 / 10

    How comfortable are you in C?

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

    No Tags on this question yet!

    3 / 10

    How to know if a system is little endian or big endian?

    Answer:
    #include
    int main()
    {
    int tmp=1;
    if(*(char*)&tmp == 1)
    printf("\n system is little endian \n");
    else
    printf("\n sytem is big endian \n");
    return 0;
    }
    Please Login First :
    Tags:

    No Tags on this question yet!

    4 / 10

    Can you write a program to convert big-endian to little-endian?

    Answer:
    #define htons(A) ((((unit16_t)(A) & 0xff00) >> 8) | (((unit16_t)(A) & 0xff00) << 8))

    #define htonl(A) ((((unit32_t)(A) & 0xff000000) >> 24) | (((unit32_t)(A) & 0x00ff0000) >> 8) | (((unit32_t)(A) & 0x0000ff00) << 8) | (((unit32_t)(A) & 0x000000ff) << 24))


    ---------- or
    convertBigtoLittle (int num)
    {
    int b0,b1,b2,b3;
    b0 = (num & 0x000000ff) >> 0;
    b1 = (num & 0x0000ff00) >> 8;
    b2 = (num & 0x00ff0000) >> 16;
    b3 = (num & 0xff000000) >> 24;

    return ((b0 << 24) | (b1 << 16) | (b2 << 8) | (b3 << 0))

    }
    Please Login First :
    Tags:

    No Tags on this question yet!

    5 / 10

    What are different storage classes in C?

    Answer:
    storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the type that they modify. We have four different storage classes in a C program:

    # auto
    # register
    # static
    # extern
    Please Login First :
    Tags:

    No Tags on this question yet!

    6 / 10

    What is the default scope of a function?

    Answer:
    functions have either global scope or file scope. Global scope applies to a normal function that's visible throughout the entire program.
    File scope applies to a function you've marked as "static", so it's only visible within the same translation unit.
    Please Login First :
    Tags:

    No Tags on this question yet!

    7 / 10

    What is the role of a static variable?

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

    No Tags on this question yet!

    8 / 10

    Why volatile keyword is used?

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

    No Tags on this question yet!

    9 / 10

    When you do malloc() you need to pass the number of bytes that you require. But when you call free() you only pass the pointer. So, how the free() call detects how many bytes to free?

    Answer:
    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!

    10 / 10

    What is structure padding and why is it used?

    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)

    1 / 6

    Introduce Yourself briefly.

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

    No Tags on this question yet!

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

    No Tags on this question yet!

    3 / 6

    How PCI enumeration is done?

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

    No Tags on this question yet!

    4 / 6

    Do we need a stack to work with?

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

    No Tags on this question yet!

    5 / 6

    How the stack works?

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

    No Tags on this question yet!

    6 / 6

    Tell me what are the following declarations
    void (*func) (int)
    int *(*func)[10] (int)
    int *(*func[10]) (int *)

    Answer:
    void (*func) (int) => "func" is a pointer to function with argument as int and return void

    int *(*func)[10] (int) => func is a pointer to function with argument as int and returning as array of pointer.

    int *(*func[10]) (int *) => "func" is a array 10 of function pointer with argument as int pointer and return pointer to int.
    Please Login First :
    Tags:

    No Tags on this question yet!