C Interview Question
Storage Class, Inline Function
Write own String Function Programs Example for strlen(), strcpy(),strcat(), strcmp()
Dynamic Memory Allocation (Malloc, calloc, realloc, free)
Let US C, Chapter 16 Miscellaneous Features:-
Pointers:- Pointer to Constant// Constant Pointers and their Difference
Enum, Typedef, Typecasting, Bit operations and example, Function Returning
pointers, Volatile Qualifier, Union
pointer to function (Call By value and Call by Ref.)
Call back functions
Structure Union Difference, Cell padding, Create Memory Leakage
Union Inside a structure is possible, how ?
Array:- Pointer to an Array and Arrays of Pointers Explain and Difference
Create Dangling pointer, Memory Fault
Macro:- Write code using Macro (Ref. Chapter no 8 example of Macro of Let us C),
Difference between Macro and Function
How to pass Command line Argument, Give Example (argc, argv)
How to pass globle variable to other file (extern Function)
Buid Procedure (.c -> .asm -> .o -> .exe)
Self Referential pointer with Union
Recursion programs – factorial, find sum of array elements, creation of linked list
Little Endian, Big Endian
File operations
Why Register storage class is used
Software Development Life Cycle (Analysis, Design, Coding, Testing)
Programs Asked
- Check Set bit in ASCII character or any given data
- Write prime number program
- Program for String Reverse
- write a code to convert decimal number into hexadecimal(better to know all
conversions codes and procedures).
- write a program to print the array elements in ascending or descending order.
Note- In old batches they asked Questions on Linux commands, Most Prefer Let
Us C 1st and then read C in Depth
Data Structure
Most Important Chapter Linked List Refer book Data Structures in C in Depth
Write Link List with Following Operations
Create List, Add, remove Link list (at nth location)
Sorting Algorithm (Merge Sort, quick sort)
Some Extra Question Asked about (Not majorly asked)
Normal Questions on Stack and Queue, possible revise the programs for stack and Queue
Operations
Some of the Networking Companies Asked Question about Tree Program (Insert, Delete)
Binary tree coding and linear search
Operating System
Note:- Refer Operating System Principle by Peter Galvine, read Sections of Process
Management, Process Co-Ordination and Memory Management
Question Asked:-
1. Process Management
- Diagram of process state, Process Control block, Scheduling, Different Scheduling
Algorithm
- Critical Section Problem and how it solved
Solution is Mutex, Semaphore
- Deadlock (Detection, Prevention and avoidance)
- Inter Process Communications(Questions asked about Socket, Message Queue, pipe)
with their principle of working
- Difference between Threads and processes
2. Memory Management
- Swapping, Fragmentation, Paging(Demand Paging) and Segmentation
3. Linux Programs
- Multithread Programs
Micro-Controllers
1. AVR
- Difference Between Controller and Processor
- Difference Between RISC, CISC
- Assembly Language programming
- I2C, SPI, UART, CAN(Continental) Timer, counter (Working Principle,
Generate delay of n mili sec)
- Embedded Communication frame formats – UART, SPI, I2C and ASM
- Assembly program to swap two numbers
- Addressing Modes, ADC
2. ARM
- ARM state, Thumb State and
- How to go in ARM state or thumb state write assembly program (Assignment
Q)
- ARM Architecture (Q by CDAC)
- Number of modes in ARM (FIQ,IRQ,ABORT,UNDEF, System, USER)
- SWI Interrupt, SVC interrupt with their context switching
- Difference between post increment and pre increment
Difference between ARM and AVR.
Note:- Controller related question depends on your project, which controller you have
used, their architecture, and features used in your project and how.
Explain your project thoroughly, Sensor used with principle of working, register used
RTOS
- RTOS characteristics, Feature
- Scheduling Algorithm of RTOS
- Priority Inversion, Priority Ceiling
- difference between EOS and RTOS
Basic Electronics Question
- Follow the notes given by Kartik sir
- KCL,KVL, Voltage Divider Rule
- Mesh Analysis, Nodal Analysis
- Theorem (Superposition, Thevenin, Nortan )
- Diode, Clipper, Clamper
- Transistor and their state, biasing
- Op-Amp, Non Inverting Amplifier, Inverting Amplifier