Sunteți pe pagina 1din 2

ONE MARK QUESTIONS UNIT WISE C PROGRAMMING( COMMON FOR CSE,CIVIL,MECH)

UNIT-1 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Draw Block diagram of a computer and explain about its components. What is an Algorithm? Explain in detail using example algorithms? What is a Flowchart and explain about its symbols? Give an example. Explain in detail about program developing steps? Explain about various computer languages? Explain how to create and run programs in c? Explain about the structure of a c program? What is a token? Explain about c Tokens? What is type conversion? Explain it with an example. What is conditional expression? Explain about precedence and order of evaluation.

1. 2. 3. 4. 5. 6. 7. 8. 9.

UNIT-2 What is selection statement? Explain various selection statements in c? What is two way selection? Explain in detail using programs? What is Multiway selection? Explain in detail using programs? What is a control statement? Explain different control statements in c? Differentiate while and do-while with example programs. Define Array. Explain about initializing and accessing of an array. Write a c program for a) Addition of Matrices b) Multiplication of Matrices c) Symmetricity of a matrix Explain about String Manipulations in detail. What is Iteration?Explain different types of loops in 'C'language. UNIT-3

1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Define Function? Explain about different types of functions? Explain about storage classes? Explain about parameter passing techniques? Explain about standard library functions with example programs? What is a recursive function? Write a c program for Fibonacci series. Write a c program using recursive function for solving towers of Hanoi problem. Explain about c Preprocessor? Explain about passing arrays (1-D,2-D) to functions? Explain about iterative functions? Differentiate iterative and recursive functions with example programs? Differentiate a) actual and formal arguments b) Global and local variables c) Automatic and static variables

UNIT-4 1. 2. 3. 4. 5. 6. 7. 8. Define Pointer. Explain about declaration and initialization of pointers. Explain about & operator and its efficiency in c program? Explain about dangling memory and dangling pointers. Explain about passing pointers to functions? Explain about pointer arithmetic? Explain about dynamic memory allocation? Differentiate malloc and calloc. Explain about command line arguments using c programs. UNIT-5 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Define structure. Explain about its declaration and initialization. Explain about structures with example c program. What are nested structures. Explain with c program. Explain self referential structure. Define union?Explain it with a c program. Explain about arrays of structures. Write a c program to explain in detail. Explain about bit fields. Explain about typedef? Write a c program using pointers in structures. Write a c program using functions in structures. Explain about mask in detail? Write a c program to show bit shift? UNIT-6 1. 2. 3. 4. 5. 6. 7. 8. Define file. Write a c program to create file? Explain about text files and binary files. Explain about standard library I/O functions. Explain about file I/O operations. Explain about various modes of file. Write a c program for opening and closing a file. Write a c program for reversing a file. Write a c program to copy contents of one file to another.

S-ar putea să vă placă și