BSc CSIT 1st Semester C Programming: Past & Important Questions
C Programming is a foundational subject in the BSc CSIT curriculum, emphasizing structured programming concepts. Practicing past questions is pivotal for mastering the subject and excelling in exams. Below is a curated list of significant questions, categorized by topics, to streamline your study process.
---
1. Introduction to C Programming
1. Define an algorithm and a flowchart. What are the characteristics of a good algorithm and flowchart?
2. Explain the steps involved in the compilation and execution of a C program.
3. Differentiate between source code and object code.
4. What is a variable in C? Discuss different data types used in C programming.
5. Explain the concept of type casting with suitable examples.
---
2. Operators and Expressions
1. List and explain different types of operators in C.
2. Discuss operator precedence and associativity in C.
3. Differentiate between increment (++) and decrement (--) operators with examples.
4. Explain the use of logical operators in decision-making statements.
5. Write a program to demonstrate the use of arithmetic operators.
---
3. Control Structures
1. What are conditional statements? Explain if, if-else, and switch statements with examples.
2. Differentiate between break and continue statements with suitable examples.
3. Explain the concept of looping. Compare while, do-while, and for loops with examples.
4. Write a program to display the first n prime numbers.
5. Write a program to calculate the factorial of a given number using recursion.
---
4. Functions
1. Define a function in C. What are the advantages of using functions?
2. Differentiate between call by value and call by reference with examples.
3. What is a recursive function? Discuss its advantages and disadvantages.
4. Write a program to find the sum of first 10 even numbers using a user-defined function.
5. Explain the concept of function declaration, definition, and call with examples.
---
5. Arrays and Strings
1. What is an array? Differentiate between one-dimensional and two-dimensional arrays.
2. Write a program to find the transpose of a matrix.
3. Explain various string handling functions available in C with examples.
4. Write a program to check whether the entered word is a palindrome or not.
5. Write a program to sort an array of 10 integers in ascending order.
---
6. Structures and Unions
1. Define a structure in C. How is it different from a union?
2. Create a structure named 'Course' with members: name, code, and credit_hour. Write a program to read data of 5 courses and display those with credit_hour greater than 3.
3. Create a structure named 'Book' with members: Book_Name, Price, and Author_Name. Write a program to input data for 10 books and print the names of authors whose book price is greater than 1000.
4. Explain nested structures with an example.
5. Discuss the memory allocation differences between structures and unions.
---
7. Pointers
1. Define a pointer. How are pointers declared and initialized in C?
2. Explain the relationship between arrays and pointers.
3. Differentiate between call by value and call by reference using pointers.
4. Write a program to demonstrate the use of pointers in swapping two numbers.
5. What is dynamic memory allocation? Explain malloc() and free() functions with examples.
---
8. File Handling
1. What are the different types of file I/O functions in C? Explain with syntax.
2. Write a program to read and write data to a file.
3. Explain the difference between text files and binary files in C.
4. Discuss the use of fopen(), fclose(), fread(), and fwrite() functions with examples.
5. Write a program to count the number of characters, words, and lines in a given text file.
---
9. Miscellaneous
1. Explain the concept of preprocessor directives in C.
2. What are macros? How are they defined and used in C programs?
3. Discuss the use of typedef in C with examples.
4. Write a program to demonstrate the use of bitwise operators.
5. Explain the concept of command-line arguments in C with an example program.
---
Conclusion
Mastering C Programming in the BSc CSIT 1st semester requires a deep understanding of logic, syntax, and structured problem-solving. These categorized important and past questions serve as a blueprint for effective exam preparation.
Tips for Success:
Write code daily to strengthen syntax and logic.
Focus on functions, arrays, and pointers—they're core exam topics.
Practice file handling and structures, as they appear frequently in finals.
Debug your programs to understand error patterns and logic flow.
Revise with previous years’ questions for better exam insight.
Stay consistent, practice smart, and approach each topic with curiosity. You’ve got this!
---
0 Comments