C Programming Chapter Wise Importants Questions

BCA First Semester C Programming Chapter Wise Importants Questions
Chapter 1: Introduction to C Programming
- What are keywords and identifiers?
- What is the structure of a C program?
- What are tokens in C?
- Define variables, constants, and data types.
- Explain how a C program is compiled and executed with diagram.
- Explain the history, features, and characteristics of C programming.
- Describe different data types available in C with examples.
- Differentiate between implicit and explicit type casting.
- Explain operator precedence and associativity with examples.
Chapter 2: Input/Output and Control Structures
- What is formatted and unformatted I/O?
- What is a conditional (ternary) operator?
- Differentiate between while loop and do-while loop with examples.
- Explain nested loops with a pattern printing program.
- Write a program to print patterns using loops (star/number patterns — asked almost every year).
- Explain break, continue, and goto statements.
- Explain switch statement. Is break mandatory in switch?
- Write a program to find whether a number is prime or composite.
Chapter 3: Functions, Arrays, and Strings
- Define recursion.
- What is call by value?
- Write syntax for declaring an array.
- Differentiate between call by value and call by reference with example .
- Explain recursion with a Fibonacci series or factorial program.
- Write a program to search an element from an array.
- Write a program to find the sum of two matrices using 2D arrays.
- Describe any 3 string handling functions with examples (strlen, strcpy, strcmp, strcat, strrev).
- Explain arrays and functions together with a program.
- Write a program to sort an array (bubble sort or selection sort).
- Write a C program for matrix multiplication using 2D arrays. Explain how arrays and functions work together.
- Write a program to find x^y using recursive function.
Chapter 4: Structures, Unions, and Enumerations
- What is a structure?
- Differentiate between structure and union.
- Explain structures in C. How are arrays of structures used?
- Explain nested structures with example.
- Design a structure for student records (name, roll, marks) and write a program to store and display data for 5 students.
- Write a program using structure to store employee/student data and display records based on a condition (marks > 250, age between 30–50, etc. — varies each year but concept is same).
- Create a structure for Book (ISBN, title, author, price) and sort records based on a field.
Chapter 5: Pointers and Memory Management
- Define pointer.
- What is dynamic memory allocation?
- Explain how pointer variable changes the value of a normal variable.
- Explain null pointer and void pointer with examples.
- What is DMA? Why is it used instead of arrays?
- Explain malloc(), calloc(), and free() with examples
- Write a program using pointers and structures to store and sort records (cricketers, employees, books, etc.).
- Write a program to find minimum and maximum of N numbers using DMA.
- Write a program to store ages of students and count those within a range using DMA.
Chapter 6: File Handling, Command-Line Arguments, and Graphics
- What is a file in C?
- What is a command-line argument?
- Name any one graphics function.
- Differentiate between binary file and text file.
- Explain file modes and standard I/O functions (fopen, fclose, fread, fwrite, fprintf, fscanf).
- Explain random file access using fseek, ftell, rewind.
- Explain command-line arguments (argc and argv) with example.
- Explain any four graphics functions in C.
- Write a C program to create a file, write data, and read it back. Explain fseek, ftell, and rewind with example
- Write a program to read integers from a file and write prime numbers to another file.
- Write a program to copy contents of one file to another.
- Write a program to draw a circle, rectangle, and output text using graphics functions
- Write a program to draw a circle at the center of the screen
📝 Note:This list is for reference purposes only to help you prepare smartly and cover all critical areas of Programming in C. Always review your class notes, teacher guidelines, and syllabus coverage.
Don’t use our content without permission. 📸⚠️
Thank you for sharing you everyone! If you’d like to share your notes, lab reports, solution, assignments, projects, or any other academic materials, feel free to contact us through social media (Uni Bytes), email us at unibytesofficials@gmail.com.
We regularly provide updates on BCA news, results, exam routines, and other important information. Stay connected with Uni Bytes for all your academic needs
Don’t Forget to Follow Uni Bytes