first online round with medium level of difficulty questions based especially on c DSA and micro controllers, next in-person interview with 2 rounds initially aptitude and C next inperson interview with C and Microcontroller based questions
Interview questions [1]
Question 1
# Round 1 Aptitude and C
# //BITSILICA round 2
1)Spiral matrix print from top right
#include
int main() {
int m,n;
printf("Enter Array Size m x n: ");
scanf("%d %d",&m,&n);
int arr[m][n];
printf("Enter array Elements: \n");
for(int i = 0; i < m; i++){
for(int j =0; j < n; j++){
scanf("%d",&arr[i][j]);
}
}
for(int i = 0; i < m; i++){
for(int j =0; j < n; j++){
printf("%d ",arr[i][j]);
}
printf("\n");
}
printf("\n");
// spiral
int top = 0;
int bottom = m-1;
int left = 0;
int right = n-1;
while(top <= bottom && left <= right){
for(int i = right; i >=left; i--){
printf("%d ",arr[top][i]);
}
top++;
for(int i = top; i <= bottom; i++){
printf("%d ",arr[i][left]);
}
left++;
if(top <= bottom){
for(int i = left; i <= right; i++){
printf("%d ",arr[bottom][i]);
}
bottom--;
}
if(left <= right){
for(int i = bottom; i >= top; i--){
printf("%d ",arr[i][right]);
}
right--;
}
}
return 0;
}
2) dynamically allocate memory for 2D array using calloc
3) How is a process created?
4) explain about memory segments?
5) Why 4 memory segments, why cant we store all in 1 segment itself?
6) do you know about LPC microcontroller?
7) How to connect SD card to an MC?
8) Real time usage of SPI
9) do you know about GDB
10) Explain about all variable qualifiers and their scope.
11) difference between malloc and calloc
12) Explain how interrupt works?
13) where is isr located?
14) what is interrupt latency?
Overall they are understanding whether you are able to do programming skill approach or not and are not expecting the memorised answers; they are asking for the reason
they are covering over all in embedded systems
Interview questions [1]
Question 1
self intro
microcontroller boot flow
os boot flow
what is interrupt
what is volatile
what is static keyword
what is ipc mechanism(what are they)
toggle bit
real time scenarios for pipe message queue and sharedmemory
mutex and semaphore difference
what is kernel moudle
what is insmod
what is modprobe
in uboot level what modifications u done
in yocto u worked how to do menuconfig
mutex and sempahore realtime scenario
how u will check module loaded or not
what is device tree
device tree (example given) and ask their properites
how u done in ur project(project realted dts)|
what is sysfs
how communication happing blw user space and kernel space
if one module depening on other module depend(how to load)
what is i2c detect (u used it)
isr_handler function what happens
what is /dev
written test - mcq s and c programs , technical 1 - c , data structure programs-reverse the liked list ,removal of duplicates , common element in array , Technical round 2 - linux , c , c++
Interview questions [1]
Question 1
Arrange the array elements in ascending and descending oreders