You are on page 1of 23

Content:

1. Basic of Programming and Computer.


2. Loops
3. Function
4. Arrays
5. String
6. Pointers
7. Structure
8. File
9. Bits and Bytes
10. Storage
11. Miscellaneous

_________________________________________________________________________________

1. Basic of Programming and Computer.


Q1. What are the features of Algorithm.
Q2. What are the features of flowchart.
Q3. What do you understand by 1st,2nd ,3rd generation of language?
Q4. What do you understand by high level and low level language?
Q5. What do you understand by 32 bit compiler?
Q6. Write down algorithm for the following:
a) Bubble sort
b) Selection sort
c) Insertion sort
Q7. Create a flow chart for finding whether a number is prime or not.
Q8. Write advantage of writing an algorithm.
Q9.

Q10.

Q11.

Q12.
Q13.

Q14.

Q15.

Q16.

Q17.

Q18.

Q19.

Q20.
Q21.

Q22.

Differentiate between RAM and ROM.

Q23.

What are advantage and disadvantage of machine level language.


Q24. Write a short note on :

Firmware

Q25.

Q26. Write a short note on:

________________________________________________________________________________

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?

Q2. What are the features of a function?


Q3. What is function prototype?
Q4. What happens when a function is called?
Q5.

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.

Q20. Which way is more efficient- recursive or iterative?

__________________________________________________________________________________
4. Arrays
Q1. What are arrays? How does arrays are represented in memory.

Q2.

Q3.

Q4.

Q5.

Q6.

Q7.
Q8. Write short note on:

Q9. Write short note on:

Q10.

Q11.

Q12. Write short note on:

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.

Q11. How can we pass a string to a function.

Q12. How can we pass a 2 D string to a function.

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 :

Q10. Why C language uses pointers?

__________________________________________________________________________________
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.
__________________________________________________________________________________

9. Bits and Bytes


Q1. Write a short note on bitwise operators.

Q2.

Q3.
Q4.

Q5.
Q6.

Q7.

Q8.

Q9.
Q10.

Q11. Write short note on :

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.

Q9. Write short notes on:

Q10. Write short note on:

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.
_______________________________________________________________________________

You might also like