Professional Documents
Culture Documents
_________________________________________________________________________________
Q10.
Q11.
Q12.
Q13.
Q14.
Q15.
Q16.
Q17.
Q18.
Q19.
Q20.
Q21.
Q22.
Q23.
Firmware
Q25.
________________________________________________________________________________
2. Loops
Q1.
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.
Q8.
Q9.
Q10.
Q11.
Q12.
Q13.
Q14.
Q15.
Q16.
Q17.
What is the role of break and continue. Explain with an example.
Q18.
for(;;) is acceptable in C?
Q19.
Write down the steps involved in executing a for loop.
__________________________________________________________________________________
3. Function
Q1. Define function. What is the advantage of writing a code in functions?
Q6.
Q7.
Q8.
Q9.
Q10.
Q11.
Q12.
What is the purpose of return statement in a function?
Q13.
Q14. WAP in C to find the roots of a quadratic equation using function call.
Q15.
What are the differences between recursion and iterations.
Q16.
Q17.
Q18.
Q19.
WAP in C for recursive way of calling factorial function.
Explain with proper diagram the various stack calls involved.
__________________________________________________________________________________
4. Arrays
Q1. What are arrays? How does arrays are represented in memory.
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.
Q8. Write short note on:
Q10.
Q11.
Q13.
Q14
Q15.
Q16.
Q17.
Q18.
Q19.
_________________________________________________________________________________
5. String
Q1. What are string in C?
Q2. How are strings different from a character array?
Q3.
Q4.
Q5.
Q6.
Write a user defined function which concatanates one string with another.
Q7.
Q8.
Write a function which will split a string into two halves and return the result as an array of strings.
Q9. Check whether a given input is a natural number or not or not even a number at all.
Q10. How an array of strings are initialized and declared? Compare an array of strings with an array
of pointers to these strings.
Q13.
Q14. Write a program in C to convert all small case alphabets into upper case alphabets.
__________________________________________________________________________________
6. Pointers
Q1. What are pointers?
Q2. What is pointer to a pointer?
Q3. What is function pointer?
Q4. What is relation between a pointer and an array.
Q5. What is array of pointers?
Q6. What is a void pointer?
Q7. What is a structure pointer?
Q8.
Write short note on Pointer arithmetic.
Q9.
Explain :
__________________________________________________________________________________
7. Structure
Q1. What are structures?
Q2. What do you understand by typedef.
Q3. What are nested structures. Give a coding example.
Q4. What is pointer to a structure.
Q5. What are arrays of structures. Give coding example.
Q6.
Q7.
Q8.
Q9.
Q10.
Q11.
Q12.
_________________________________________________________________________________
8. File
Q1. What is a FILE?
Q2. Explain EOF in FILEs.
Q3.
Q4.
Q5.
Q6.
Q7. WAP in C to find number of blank spaces, and number of characters by reading it from a file.
Q8. Write short notes on:
a) Reading a file—character by character or line by line.
b) Different modes in which a file can be opened.
c) What is the difference between r and r+, w and w+, a and a+.
d) What is rb mode and where is it used?
e) WAP in C to read content of binary files.
f) WAP in C to copy lines from a txt file to another txt file.
__________________________________________________________________________________
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.
Q8.
Q9.
Q10.
XOR gate
Q12.
Q13.
Q14.
Q15.
Q16.
Q17.
Q18.
Write a program in C to convert a decimal number into binary using appropriate assumptions.
Q19.
Q20.
_______________________________________________________________________________
10. Storage
Q1. Write short notes on storage classes in C.
Q2.
Q3.
Give an example of static variable, in function call.
________________________________________________________________________________
11. Miscellaneous
Q1. What are enums. Give example.
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.
Q8.
Q11.
Q12.
Q13.
Q14.
Q15.
Q16.
Q17.
Q18.
Q19.
Q20.
Q21.
Q22.
Write small note on header files.
Q23.
What is difference between a macro and a function call.
Q24. With proper diagram explain the steps involved in the build process.
Q25. What is the pitfall of writing macro version for finding square of a number in the following way:
#define SQUARE(y) y*y
Q26.
Write short note on #undef, #pragma.
_______________________________________________________________________________