DSP Interview Questions | Glassdoor

DSP Interview Questions

186

DSP interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Write a c functions that takes two bit indices and an int, and reverses the bits in the int between the two indices.

9 Answers

Made no mistakes on this question, but had done similar things before

//reverses bit between two indices of a number. #include using namespace std; int main() { unsigned int no=90,i=2,j=6,tmp=0,tmp1=0; tmp=no>>i; cout>1; } cout>1; if(x=i) tmp=tmp|0; else tmp=tmp|0x80000000; } cout<<tmp<<"tmp before\n"; no=no&tmp; no=no|(tmp1<<i); cout<<no<<" no"; return 0; }

#include main(int arg, char *argv[]) { unsigned char num, hi_indx, lo_indx, mask, num_tmp, mask_c, num_rv, iter,i; num = atoi(argv[1]); hi_indx = atoi(argv[2]); lo_indx = atoi(argv[3]); mask = ((0xFF > (7-hi_indx+lo_indx); mask = (mask << lo_indx); mask_c = ~mask; num_tmp = num & mask_c; printf("%x %d %d %x",num, hi_indx, lo_indx, mask); num_rv = 0x0; iter = hi_indx-lo_indx+1; i = 0; while(i<=iter) { int flg; flg=(num & (1<<(i+lo_indx)))?1:0; if(flg) num_rv=num_rv|(1<<(hi_indx-i)); i++; } num = num_rv | num_tmp; printf("\nnum=%x ",num); }

When the keyword static is used in C?

3 Answers

Swap two numbers without using a temporary variable

2 Answers

what is the worst experience i had as a CNA?

1 Answer

Difference b/w impulse invariant Transform method and BLT.

1 Answer

I didn't expect questions about acoustics.

1 Answer

Given 2 32 bit numbers, how do u multiply them using 8bit multipliers?

1 Answer

qtns abt OFDM, qtns abt cyclic prefix, qtns abt wideband channel, qtns abt block convolution: overlap save

1 Answer

Given 25 red balls & 25 blue balls. Arrange them in 2 bowls such that when a ball is picked randomly from one of bowls, the probability of picking red ball is maximum??

1 Answer

Whether I could handle the responsibilities assigned and if I did not have any problems doing certain things

1 Answer
110 of 186 Interview Questions