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

# XiLinx Interview Questions

10.41K

## Total Set :1

XiLinx
Interview Q&A Set : 1

Total Round : 4
Asked @ Exp. : 4 Years.

Posted By : Jitendra

## Top 10 XiLinx Interview Questions With Answer

##### Question: 1 / 10

How comfortable are you in C and data structures?

##### Question: 2 / 10

• In order to align the data in memory, Â one or more empty bytes (addresses) are inserted (or left empty) between memory addresses which are allocated for other structure members while memory allocation. This concept is called structure padding.

• Architecture of a computer processor is such a way that it can read 1 word (4 byte in 32 bit processor) from memory at a time.

• To make use of this advantage of processor, data are always aligned as 4 bytes package which leads to insert empty addresses between other memberâ€™s address.

• Because of this structure padding concept in C, size of the structure is always not same as what we think.

Â  Â  Â  Â For example, please consider below structure that has 5 members.

Â

struct student

{

Â  Â  Â  Â int id1;

Â  Â  Â  Â int id2;

Â  Â  Â  Â char a;

Â  Â  Â  Â char b;

Â  Â  Â  Â float percentage;

};..

• As per C concepts, int and float datatypes occupy 4 bytes each and char datatype occupies 1 byte for 32 bit processor. So, only 14 bytes (4 4 1 1 4) should be allocated for above structure.

• But, this is wrong. Â Do you know why?

• Architecture of a computer processor is such a way that it can read 1 word from memory at a time.

• 1 word is equal to 4 bytes for 32 bit processor and 8 bytes for 64 bit processor. So, 32 bit processor always reads 4 bytes at a time and 64 bit processor always reads 8 bytes at a time.

• This concept is very useful to increase the processor speed.

• To make use of this advantage, memory is arranged as a group of 4 bytes in 32 bit processor and 8 bytes in 64 bit processor.

##### Question: 3 / 10

Write a program to detect if a system is little-endian or big-endian?

##### Question: 4 / 10

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

##### Question: 5 / 10

Why do we use copy_to_user() in kernel programs?

##### Question: 6 / 10

Why volatile keyword is used?

##### Question: 7 / 10

Why do you want to change your job?