שחזורי ראיונות עבודה -> ראיון realtime קרמר אלקטרוניקה
  • ראיון realtime קרמר אלקטרוניקה
  • ע"י: נחשבריח
    • Where would you use a volatile variable? • What is Void (*fptr)() • Imagine there's no sizeof() in the system. Inmplement it. Will it be a macro/function? – why? • A. build generic swap function g_swap(void*a, void *b,int size_of_el); it should work on 2 variables with any indentical data types(int, short,struct..) • What is the result of – Int a=44; Short b=5; g_swap(&a,&b,sizeof(short)) • Write a func to swap even bits with consecutive odd bits in a number. e.g. b0 swapped with b1, b2 <-> b3 etc unsigned int swap_bits(unsigned int num) C++ / OOP • How can you keep track number of instances of a class in C++? • What does a derived class inherits from the base class? What doesn't? • Why and how using tamplates can be a problem in embedded system? Find an algorithm • How do you find middle of a linked list in a single pass • Given an unsorted array A of size n, find k such that the A has K elements greater then K. report if no such value exists Exampls: A={100,2,200} K=2 A={100,3,2,300,200}; K=3 OS / Linux • What are the basic functionalities of an OS? • Which of the following is not IPC- - Shared mem - Semaphores - FIFO - Message queues • Message queues are created in – - Userspace - Kernelspace - Both - None • A system has 512MB of physical memory. Which among the following cannot be a virtual mem for this syste architecture? -512MB - 256M - 4GB - None of the above •