PERIYAR CENTENARY POLYTECHNIC COLLEGE Periyar Nagar- Vallam-613 403 Thanjavur 01. Define program? 02. What is program development cycle? 03. What is a programming language? 04. Define algorithm? 05. What is flow char? DEPARTMENT OF COMPUTER ENGINEERING 06. What are the two types of declaration? 07. What is the use of global declaration? 08. What are the character set used in C? 09. Define keyword? 10. What is meant by c token? 11. What are the types of token? 12 What is mean by identifiers? 13 What is c constant? 14. What are the types of c constant? 15. What are variables? C Programming UNIT I 16. What are the two types of arithmetic operators? 17. What is binary operator? 18. what is unary operator? 19. Define expression?
20. What are the types of expression? 21. Define type casting? 22. Write the types of type casting? 23. What images? the use of scanf function? 24. What is the use of printf function? PART-B 01. Explain program development cycle? 02. Briefly discuss about programming languages? O3.List the features of good programming languages? 04. Exlpain the flow chart symbols? 05. Give the advantages and limitations pf flow chart? 06. Give the algorithm and flow chart for finding the largest number among three numbers? 07. Write any three features of C-language 08. Explain the structure of C program? 09. Explain basic data types in C and its modifiers? 10. Explain operators? 11. Explain data type modifier. 12. How to declare variable with example and give the uses of declaration. 13. Write a program to factorial of n number. 14. Write the program to find sum and average of n numbers. 15. Explain type casting and its types. 16. Explain formatted input function. 17. Explain formatted output function.
UNIT-II 1. What is entry control loop? 2. What is exit control loop? 3. Syntax for loop. 4. What is the use of break statement? 5. What is the significance of continue statement. 6. Define array? 7. What is the general form for declaring an array? 8. How to initialize an array? 9. How to declare an 2D array? 10. Define string. 11. How to declare a string? 12. What are the functions used to read the strings?(get string as i/p) 13. Define strlen() function. 14. Write some string manipulation function. PART-B 1. Difference between exit control loop and entry control loop with example? 2. Explain for loop. 3. Explain nested if statement with example. 4. Explain switch... case with example. 5. What is subscripted variable and write its rules. 6. Explain one-d array. 7. Explain 1-D and 2-D array processing with example. 8. Write a program to arrange N given numbers in ascending order.
9. Explain string handling functions. UNIT III 1. Give the any three functions is math. 2. What is the use of getche() function. 3. Define gets() function. 4. Give the general forms of ellipse() function. 5. Define function. 6. What are the types of functions. 7. What are the two parts in function definition? 8. What is the use of return statement? 9. What is meant by void function? 10. How to declare a function? 11. What are the types of function calls? 12. What is meant by scope of variable? 13. What is meant by lifetime of variable? 14. What are the storage classes? 15. What is the keyword used to indicate automatic variable? 16. Define structure. 17. Write syntax to access the structure? 18. How can we access the structure members? 19. Write the syntax to access the members in structure. 20. Define union
PART-B 1. Explain any three functions in stdio.h with example. 2. Give the need for user defined function. 3. Explain pointer with example. 4. With example explain cell by value. 5. Explain cell by reference with example. 6. Explain recursion. 7. Give the difference between array and structure. 8. Explain structure definition with example. 9. How will you create structure variable? how the data are initialized to structure variable give example. 10. Explain union with an example. 1. Define pointer or pointer variable. 2. What are the two operators used in pointers? 3. How to declare a pointer? 4. How to assign the address to variable? 5. What is pointer expression? 6. What is memory allocation? 7. What are the types of memory allocation? 8. Define static memory allocation. 9. Define dynamic memory allocation. 10. Syntax or General form of malloc. UNIT IV
PART-B 1. Define pointer and give its advantages. 2. With example explain how the address of the variable is assigned to a pointer. 3. Explain increment and scale factor in pointers. 4. Give the relation between array and pointers. 5. Explain pointer and functions with example. 6. Explain function returning pointers. 7. Describe pointers to pointers. UNIT-V 1. Give the general form of F12 definition? 2. Give the general form of opening a file? 3. Define fscanf() function? 4. Define ferror() function? 5. What is random access file? 6. Define fseek() function? 7. Define command line arguments? 8. What is preprocessor? 9. Give the general form of #defines? 10. Define file inclusion directives? 11. Give the general form of #if def...#end if? PART-B 1. Explain macro substitution? 2. Explain file inclusion? 3. Mentioned the various compiler controlled directives and there uses?
4. Define a file. How a file in opened and closed? 5. Explain the various I/O operations on files? 6. How to handle errors during I/O operations? 7. Explain the use of command line arguments? 8. Explain about random access files? 9. How will you append items to a file?