1.12. Miscellaneous questions

  1. What is volatile keyword? [AMD Jan-2026] [Ample Semi conductors] [Kernex Micro Systems] [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  2. What is const volatile int x? [AMD Jan-2026] [Ample Semi conductors]
  3. Execution Time Comparison. [AMD Jan-2026]Compare:
    1. a = a << 1;
    2. a = a * 2;
    Note: The statement a = a << 1 typically takes less time to execute because bitwise shift operations
    are generally faster than multiplication (often fewer CPU cycles).
  4. Explain the compilation stages in C. [AMD- Jan-2026, Dec-2025; Vem Feb-2026]
  5. What are control statements? [Mirafra Jan-2026]
  6. Write a program to create a list of nodes. [AMD Dec-2025]
  7. Did you know ALP? [Analogics Jan-2026]
  8. How is ALP useful while C programming? [Analogics Jan-2026]
  9. Write a program to reverse a singly linked list. [AMI Nov-2025]
  10. Explain the const keyword. [AMD Dec-2025] [Ample Semi conductors]
  11. Difference between macro and constant variable.
  12. Explain preprocessor directives.
  13. What is stack overflow? How does it occur? Explain with example code.
  14. Difference between break and continue. [Vem Feb-2026]
  15. Difference between while and do...while. [Vem Feb-2026]
  16. What is conditional compilation? [Vem Feb-2026]
  17. Write a snippet about ternary operator returning a value. [Vem Feb-2026]
  18. Implement your own sizeof operator. [Vem Feb-2026]
  19. What is volatile and const? [Vem Feb-2026]
  20. What is const volatile? [Vem Feb-2026]
  21. Difference between else-if ladder and switch. [Vem Feb-2026]
  22. Find whether the given number is even or odd. [AMD Feb-2026]
  23. Given 6 boxes, each having a different weight, how can we find the heaviest box using the minimum number of comparisons? [AMD Feb-2026]
  24. Explain the compilation stages briefly. [AMD Feb-2026]
  25. What is the meaning of ./a.out? [AMD 11-Feb-2026]
  26. What is a linker script? What is Linux booting? [AMD 11-Feb-2026]
  27. Explain linked list. [AMD 11-Feb-2026]
  28. Explain circular queue. [AMD 11-Feb-2026]
  29. Explain volatile keyword. [AMD 11-Feb-2026] [Kernex Micro Systems]
  30. Where is a constant variable value stored? [AMD 11-Feb-2026]
  31. What is meant by FIFO? If the FIFO buffer is empty and I try to read it, what happens? [AMD 11-Feb-2026]
  32. what is the minimum number of random integers you need to generate using rand() to generate a guassian random variable
  33. Which header file contain the rand() function in c ? [5G Testbed] 1) stdio.h 2) rand.h 3) stdlib.h 4) math.h
  34. in char arr[5][3][4] what is the offset value of arr[4][1][3]. [AMI]
  35. give some example for derived datatype and user defined how you declare? [AMI] [AMI-06-05-2024 ]
  36. take one struct template and assign int ,char ,one char array and how memory was allocating? [AMI]
  37. what is difference between i++ and i+1, i++ and i=i+1 [AMI-06-05-2024 ]
  38. what is chmod +t and chmod +x ? [AMI-06-05-2024 ]
  39. which is faster i++ or i=i+1; [AMI-06-05-2024 ]
  40. what is Segmentation Fault? [AMI-06-05-2024 ]
  41. Difference between a+1 and a++. which is faster? [AMI-06-05-2024 ]
  42. write a program to swap 2 numbers without using temporary variable? [AMI-06-05-2024 ]
  43. write a program to reverse a string using recursion? [AMI-06-05-2024 ]
  44. how do u concatenate two variables in preprocessor [AMI-06-05-2024 ]
  45. what is the difference between #define and #include?  [AMI-06-05-2023]
  46. what contains in #include. [AMI-06-05-2023]
  47. What is deadlock? [AMI-06-05-2023]
  48. What is race around condition? [AMI-06-05-2023]
  49. What is the difference between the character and string? [AMI-06-05-2023]
  50. What is memcpy  ()? [AMI-06-05-2023]
  51. WAP to read a file and write it into another file. [AMI-06-05-2023]
  52. What is semaphore? [AMI-06-05-2023]
  53. how free will work. [AMI-06-05-2023]
  54. explain about basic file operation system calls(open ,read ,write ,close) and advanced file operation system calls(stat, lseek). [AMI-06-05-2023]
  55. what happen when two process are trying to accesses the same data ? [AMI-06-05-2023]
  56. explain about type casting [ Fervid Smart Solutions Pvt. Ltd-12-2025]
  57. program to find angle between hour hand and minute hand? [GVS Deck Pvt Ltd]
  58. program to count number of ones and zeroes in given number. [GVS Deck Pvt Ltd]
  59. explain about control structures/statements(if, else) [Analogics-14-08-24]
  60. Write a code to convert decimal number to binary number? [Enfabrica]
  61. :write  a logic for swapping of two variables without using third variable.[Enfabrica Corporation]
  62. Explain about MAC address?
  63. Explain about hub ,switches?
  64. ——-Networking(10 questions)——-Q. basic question udp/tcp …
    Q-Tcp and udp question
    Q- which layer is not present in tcp/ip layer?
    Q-user data gram packets are called?
    Q-udp is what type of connect .
    options-
    connection less
    connection oriented
    not reliable.
    none.
    Q- Tcp is what type of connection ?
    option-
    connection less
    connection oriented
    reliable.
    none.
    Q- which ip address is reserved for multi casting?
    option-
    class A
    class C
    class D
    class E
    Q- a mode of data transmission where data can be sent or received, but not both at the same time.
    options-
    simplex
    half duplex
    full duplex
    none
  65. what is optimization? [Johnson Control]
  66. How to work optimization? Explain example? [Johnson Control]
  67. write a program given number is prime number or not ?[Kernex Micro Systems]
  68. “Is the Fibonacci series applied to alphanumeric data or not? [Kernex Micro Systems]
  69. write a c program sigma number(means sum of all numbers) ? [Kernex Micro Systems]
  70. program to print even and odd numbers from right to left in order 0 to 10 from right to left printing even place in odd numbers and odd place in even numbers. [MaxLinear, Inc.]
  71. Write a code to find whether the number is prime numbers or not ?[Mirafra Technologies Pvt. Ltd.]
  72. . identify the integer datatype. [Mirafra Technologies Pvt. Ltd.]
    options : char ,void ,float ,double;
  73. write a program count the frequency of every digit in an integer? [Mirafra Technologies Pvt. Ltd.]
  74. write a program count the number of zeros in an integer? [Mirafra Technologies Pvt. Ltd.]
  75. Explain about Cross Compiler. [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  76. Which Cross compiler you have used. Tell me the name of cross compiler. [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  77. Explain about volatile keyword? [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  78. write a program to find power of 2? [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  79. write a program to swap nibbles in a Byte? [People Tech Semiconductor Pvt. Ltd-24-07-2024]
  80.  program to print the below pattern
    x
    x x
    x x x
    x x x x
    x x x x x
    x x x x x x
    x x x x x
    x x x x
    x x x
    x x
    x
  81. write a program Count no. Of times pattern 101 occurs in a given number [TeraScale Inc]
  82. Draw and Explain the C Memory Layout . [TeraScale Inc]
  83. what is the difference between break and continue. [VEM Technologies Feb_26]
  84. what is the difference between while and do while [VEM Technologies Feb_26]
  85. Explain about constant variable and constant value?[Webber Feb_25]
  86. What is mean by volatile?[Webber Feb_25]
  87. What is the difference between memcpy and memset?[VEM Technologies 2025]
  88. What is the difference between c and embedded c? [VEM Technologies 2026][TeraScale Inc][AMD 11-Feb-2026] [DTDS][Enfabrica Corporation][INNOBOX]  [Johnson Control]
  89. I have 11 coins in that 10 are same and one different .I will give you a weight scalar how will you find at worst case.[Vconnect 2025]
  90. Draw the block diagram of Elevator(no microcontroller)&lift.[Vconnect 2025]
  91. List the different communication types for one island to other island with a line of sight and write 10 advantages and disadvantages of it. [Vconnect 2025]
  92. Design a Hardware circuit to generate sine wave, square wave, triangular wave double amplitude using the sine wave and generate the wave forms.
    [Vconnect 2025]
  93. 3.In Amazon company, using an electronic circuit design a module to entry and exit by one of the side belt by sending each box having the product one by one calculating the weight of each box by keeping LEDs and switches design a circuit diagram. [Vconnect 2025]
  94. A variable used with Const keyword Where will it stored in memory.[TRUMINDS]
  95. Explain memory layout of C (code/text – data – .bss – heap – stack). [TeraScale]
  96. Explain what is .bss and how to assign values to uninitialized variables in .bss (not in code). [TeraScale]
  97. Who decides the size of stack and heap? How can you change those sizes? [TeraScale]
  98. Why do we need the heap segment and what is its use? [TeraScale]
  99. What is an ELF file? What happens if you try to modify it? Explain the format of an ELF file. [TeraScale]
  100. What is a.out file? At what basis does it get its size? [TeraScale]
  101. What is the difference between C and Embedded C? [TeraScale]
  102. Write any C program without errors and explain it step by step in detail. [TeraScale]
  103. Check if the architecture is little endian or big endian. Write code. [TeraScale]
  104. Write code to convert little endian to big endian. [TeraScale]
  105. Explain the volatile keyword. Give an example with and without volatile. [TeraScale]
  106. What is the use of volatile keyword? Where do you use it in real time? [TeraScale]
  107. Where is a constant variable stored in memory? [TeraScale]