C Programming Question Bank - PDF

Summary

The document is a comprehensive question bank about C programming covering areas like machine language, compilers, data structures, and pointers. The questions range in difficulty, making it a useful resource for learning and practicing C programming concepts. It includes questions about fundamental programming principles to more advanced topics such as memory management, and file handling, and a variety of topics.

Full Transcript

# PSAP-Question Bank 1. what is Machine Level Language? 2. What is Compiler? 3. What is Linker? 4. Explain the role of Loader. 5. What are different control structures available in C language? 6. Explain the syntax of for loop with a proper example. 7. What is the difference between while an...

# PSAP-Question Bank 1. what is Machine Level Language? 2. What is Compiler? 3. What is Linker? 4. Explain the role of Loader. 5. What are different control structures available in C language? 6. Explain the syntax of for loop with a proper example. 7. What is the difference between while and do-while loop? 8. What is the use of switch case? 9. State the need of a break statement in switch case. 10. What are different bitwise operators available in C? 11. What are different logical operators available in C? 12. What is ternary operator in C. Explain with example. 13. What is the difference between Compiler and Interpreter? 14. What is operator precedence & associativity? 15. State difference between static and dynamic memory allocation. 16. What is an array in C ? 17. What is difference between 1-D and 2-D Array? 18. Why array is called a static data structure? 19. Explain the Row and column representation of array in memory. 20. How the compiler encounters the end of a string? 21. Explain different built-in functions used in string manipulation. 22. What is the difference between gets() and scanf()? 23. What is the use of the function in C ? 24. What is difference between built-in function and user-defined function> 25. What is function declaration, definition, and calling? 26. What is the concept of the return value from a function. Explain with proper example. 27. Differentiate between call by value and call by reference. 28. What is Local and global variables. 29. What is the concept of Recursive function? 30. Which data structure in used in the Recursive function? 31. What is a pointer? 32. Explain pointer & and * operators. 33. What is the meaning of `int *p`? 34. What is the meaning of `char *p`? 35. State the difference between incrementing integer value and integer pointer. 36. Explain swap function – using pass by value Vs pass by reference. 37. Which functions are used in static and dynamic memory allocation. 38. Write the syntax of malloc() 39. Write the syntax of calloc() 40. What is the difference between malloc() and calloc()? 41. What is file? 42. Which are different types of files? 43. What is a file pointer? 44. Which are different file opening modes? 45. What are the functions to open and close the file in C language? 46. What is the use of stdio.h file in C? 47. What is the meaning of void add()? 48. What is the meaning of int add()? 49. What is meaning of int add(int a, int b)? 50. What is difference between algorithm and flowchart? 51. What is difference between algorithm and pseudo code? 52. Is it possible to pass whole array as a function argument? 53. Why is C called a mid-level programming language? 54. Who is the founder of C language? 55. What is the use of printf() and scanf() functions 56. What is format specifier in scanf() ? 57. What is the structure? 58. What is structure member and structure variable? 59. What is the newline escape sequence? 60. What is typecasting? 61. Why is typecasting required in malloc function? 62. Can we access the array using a pointer in C language? 63. What is use of clrscr()? 64. What is use of getch()? 65. What is difference between text and binary file. 66. Any short code can be asked to write 67. Code can be given and will be asked what will be the output

Use Quizgecko on...
Browser
Browser