"C" Questions Practice Set
-
What is C language ?
-
What does static variable mean?
-
What are the different storage classes in C ?
-
What is hashing ?
-
Can static variables be declared in a header file ?
-
Can a variable be both constant and volatile ?
-
Can include files be nested?
-
What is a null pointer ?
-
What is the output of printf("%d") ?
-
What is the difference between calloc() and malloc() ?
-
What is the difference between printf() and sprintf() ?
-
How to reduce a final size of executable ?
-
Can you tell me how to check whether a linked list is circular ?
-
Advantages of a macro over a function ?
-
What is the difference between strings and character arrays ?
-
Write down the equivalent pointer expression for referring the same element a[i][j][k][l] ?
-
Which bit wise operator is suitable for checking whether a particular bit is on or off ?
-
Which bit wise operator is suitable for turning off a particular bit in a number ?
-
Which bit wise operator is suitable for putting on a particular bit in a number ?
-
Does there exist any other function which can be used to convert an integer or a float to a string ?
-
Why does malloc(0) return valid memory address ? What's the use ?
-
Difference between const char* p and char const* p
-
What is the result of using Option Explicit ?
-
What is the benefit of using an enum rather than a #define constant ?
-
What is the quickest sorting method to use ?
-
When should the volatile modifier be used ?
-
When should the register modifier be used? Does it really help ?
-
How can you determine the size of an allocated portion of memory ?
-
What is page thrashing ?
-
When does the compiler not implicitly generate the address of the first element of an array ?
-
What is the benefit of using #define to declare a constant ?
-
How can I search for data in a linked list ?
-
Why should we assign NULL to the elements (pointer) after freeing them ?
-
What is a null pointer assignment error ? What are bus errors, memory faults, and core dumps ?
-
When should a type cast be used ?
-
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
-
How can I convert a string to a number ?
-
How can I convert a number to a string ?
-
Is it possible to execute code even after the program exits the main() function?
-
What is the stack ?
-
How do you print an address ?
-
Can a file other than a .h file be included with #include ?
-
What is Preprocessor ?
-
How can you restore a redirected standard stream ?
-
What is the purpose of realloc( ) ?
-
What is the heap ?
-
How do you use a pointer to a function ?
-
What is the purpose of main( ) function ?
-
Why n++ executes faster than n+1 ?
-
What will the preprocessor do for a program ?
-
What is the benefit of using const for declaring constants ?
-
What is the easiest sorting method to use ?
-
Is it better to use a macro or a function ?
- What are the standard predefined macros ?
"C++" Questions Practice Set
- How do you check whether a linked list is circular?
- How do you decide which integer type to use?
- How do you differentiate between a constructor and destructor?
- How do you differentiate between aggregation and association?
- How do you find out the size of a class?
- How do you implement an itoa function?
- How do you initialize a pointer to a function?
- How do you link a C++ program to C functions?
- How do you return a structure from functions?
- How do you write a function that can reverse a linked-list?
- What are the benefits of using exceptions in C++?
- What are the differences between a struct and a class in C++?
- What are the different types of Storage classes?
- What do you mean by inline function?
- What does extern mean in a function declaration?
- What does extern mean in a function declaration?
- What does it mean to declare a function or variable as static?
- What is a conversion constructor?
- What is a copy constructor?
- What is a namespace?
- What is a pure virtual function?
- What is a scope resolution operator?
- What is abstraction?
- What is difference between #define and const?
- What is difference between function overloading and overriding?
- What is encapsulation?
- What is function overloading?
- What is multiple inheritance?
- What is operator overloading?
- What is partial specialization or template specialization?
- What is polymorphism?
- What is the difference between “passing by value” and “passing by reference”?
- What is the difference between an object and a class?
- What is the difference between declaration and definition?
- What is the difference between declaration and definition?
- What is the difference between delete and delete[]?
- What is the difference between inner class and abstract class?
- What is the difference between persistent & non-persistent objects?
- What is the difference between structure and union?
- What is the difference between the deep copy and shallow copy?
- What is the difference between the private public and protected members?
- What is the maximum size that an array can hold?
- What is the most efficient way to reverse a linked-list?
- What is the size of an empty class?
- What is the use of virtual destructor?
- What is virtual class and friend class?
- What’s the best way to declare and define global variables?
- Where is memory for class-object allocated?
- Where is memory for struct allocated?
- Why an array always starts with index zero in C++?
courtsey : www.mycplus.com
"Android Multimedia StageFright/OMX/CODEC "
- what happens when we seek?How does it work?
- what is flush ? how does it happen?
- what is the diff between prepare and prepareAsync execution wise?
- what are the different states of mediaplayer?
- what is the role of Awesomeplayer?
- what all happens when we say start in mediaplayer?
- what all happens as part of play in Awesomeplayer?
- how does data gets read from extractor? how does it relate to Awesomplayer?
- what is extractor? name different parser?what is mime-type?what is the source?
- what does onVideoEvent function do in Awesomeplayer?
- How does AV Sync happen in AV playback? Do we need AV Sync while Encoding too?
- Explain frame drop and jitter issue?
- what is OMX? tell about android Playback architecture?
- Explain StageFright? How does it work in the playback architecture?
- what is OMX IL Client ? OMX DL ? OMX Hardware Component?
- how does decoder get allocated? how does it get integrated ?
- how does buffer get allocated on ports?
- explain the OMX calls made to component in steps for entire decoding process?
- explain empty this buffer /fill this buffer mechanism and their callbacks?
- how does input buffers get metadata and decoded output buffers gets rendered?
- Explain graphics buffers , Media buffers , grapics allocator?
- Explain the rendering path of decoded data from output buffer? what is the role of Surface flinger , hardware composer , gralloc?
- hardware rendering and software rendering?
- how about memcpy in these paths?How do we ensure fps?
- what is OMX component tunneling ? how does it work?
- If we have to include new hardware parser , how will we intgrate ?
- what is buffer different field? what is mapping in omx?
- how does thumbnail and playback decoding differs in the path?
- how does stagefright implement source and sink concept?
- what is the role of Audioplayer?
- how does audio get decoded?
- what if there is chopping in audio?
- how to take PCM dump?
- what is ALSA ? what is periodic buffers ? how many buffers get allocated and how?
- explain the architecture for AV recording?
- how does audio video sync happens?
- how does timestamp encoded with each frame? fps?
- how does camera preview works and how about if there is frame drop in preview?
- how does frame pass to stagefright? how does it passed to encoder input? what is the format of encoder input and preview ?
- how does audio get recorded along with video?
- what happens with the buffers when we zoom in between or rotate the phone ?
- what is the data sensor provide ? what are different components involved?
- Why do we need different color formats like YUV. RGB444 RGB888 RGBA RGB565?
- how does preview works and same buffer goes to stagefright encoder or different? how does input buffer gets data to encode?
- how does gallery work? what does it show on album?
- how does file manager work? what does it show for Audio video in screen?
- what is thumbnail ? how does it work?
- what are different frames ? how does they encoded and decoded?draw block diagram?
- do we give entire frame for encoding or macroblock?
- what are the size of macro block and why for H264?
- what are the different profiles and levels of H264?
- why H264 is better than mpeg4?
- what is reference frame?
- what is DPB?
- what is display time and decoded time?
- explain different input and ouput color formats?
- what is DCT? why do we use DCT? why do we use 8x8 block DCT for MPEG4 and 4x4,8x8 DCT for H.264?
- how about energy and data loss during transformation?
- what is lossy and loss-less?
- what is POC (Picture Order Count), DON(Decoding Order Number) and Frame Number?
- what is I, P, B, D, IDR and Reference frames?
Want Answer to above questions ..please keep following the techno-flinger :)
No comments:
Post a Comment