c programming questions for practice
C Programming

C Programming Questions for Practice

C Programming Questions for Practice

These C Programming Questions for Practice are generally asked in Technical Interview and also in University exam of B.Tech , BCA, MCA etc.

Today in this tutorial we have given some important C Programming Questions for Practice including programs. These questions have been asked in AKTU C Programming Exam in previous years.

C Programming Questions for Practice based on looping and array are discussed in this tutorial.

C Programming Looping Questions

Q1. Write the difference between while loop and do while loop.

Q2. What is Looping in C ? Write advantages of using loop.

Q3. Write the use of continue statement with example. [AKTU 2021-22]

Q4. Write the use of break statement with example.

Q5. Write the difference between entry controlled loop and exit controlled loop. [AKTU 2021-22]

Q6. How the size of the structure defined in c programming? [2 Sem AKTU 2021-22]

Q7.Differentiate between Structure and Union.[AKTU 2022]

Q8.DIffrentiate between break and continue statement [AKTU 2019-20]

Q9. Explain any five string manipulation functions.[AKTU 2018-19]

Q10.WAP in C to implement goto statement.

Q11. What is character array ? Why do we use character array.

Q12. What is use of enum in C ? Explain with example.

Q13. Write difference between Structure and Union.

C Programming Array Questions and Programs

C Programing array questions and array programs in c are given below. These array questions and array programs have been asked in previous year AKTU exam.

C Looping programs , pattern program in c, structure programs in c and array programs in c are also given here.

Computer Science Students should attempt these  c programming questions and program for given for practice.

Q1. Write short notes on array. WAP in C for matrix multiplication. [AKTU 2022]

Q2. Write a program to print the pattern [AKTU 2022]

1

2  3

4  5  6

7  8  9  10

Q3. Write a Program to find the entered number is Armstrong number or not. [2 SEM AKTU 2021-22]

Q4. Write a program to print the following pattern. [2 SEM AKTU 2021-22 ]

1

2 2

3 3 3

4 4 4 4

Q5. Write a program to store a record of 100 student like name, marks and roll number and print using structure. [ AKTU 2022 2 SEM]

Q6. Write a program to find maximum and minimum element of an array.[AKTU 2021-22 2 Sem]

Q7. Write a program to find the number of vowels in a string [AKTU 2021-22 2 Sem]

Q8. Write  program to print the following pattern [AKTU 2020-21]

****

***

**

* 

Q9. Write a Program to find the entered number is Palindrome number or not.[AKTU 2020-21]

Q10. Write a program two find out the odd and even number from the array elements and its count.[AKTU 2020-21]

Q11. Write a program to read a number having more than 5 digits and print whether the given number is divisible by 11 or not by using the algorithm which states that a number is divisible by 11 if and only if the difference of the sums of the digits at odd positions and even positions is either zero or divisible by 11. [AKTU 2019-20]

Q12. What do you mean by two-dimensional array? Write a program for multiplication of two matrices of size 3 X 3 using functions. [AKTU 2019-20]

Q13. List the differences between ‘structure’ and ‘union’. Write a simple database program in C that stores the book details such as Title, book-id, page count, price and publication for 100 books.[AKTU 2019-20]

Q14.Define a structure for a student having roll number, name and Marks obtained in six objects. Write a program that input the details of 50 students and print the details of only those students who have scored more than 80%marks overall.[AKTU 2019-20]

Q15. Explain the difference between Structure and Union. Create a structure to specify data of customers in a bank. The data to be stored is: Account no. , Name, Balance in account. Assuming maximum of 200 customers in the bank. Write a program to print the Account number & Name of the customers with balance below Rs. 100. [AKTU 2018-19]

Q16. What is an array? Give the classification of arrays with suitable example. Also write a program to find the largest element in an array of size 10.[AKTU 2018-19]

Q17.Write the syntax format for while, do while and for loops. Write a program in C to multiply a matrix of dimension 4*4 and store the result in another matrix[AKTU 2018-19]

Q18. Write short notes on following. 1. Enumerated Data Type 2. String [AKTU 2018-19]

Q19. Declare a structure which contains the following members: Roll No, name, father’s name, age, city, marks. Write a program in c to list all students who scored more than 75 marks.[AKTU 2018-19]

Q20. Write the difference between the entry controlled and exit controlled loop. WAP in C to count the number of digits in the given number. [AKTU2018-19]

Q21. WAP to display the following pattern in C: [AKTU 2018-19]

9

9 8  9

9 8 7 8 9

9 8 7 6 7 8 9

9  8 7 6 5 6 7 8 9

Q22. WAP in C to read a n×m matrix using array and compute the following [ AKTU 2018-19]

  1. Sum of elements of both diagonal.
  2. Sum of all elements of the matrix.

Q23. Write a program to read two strings from the users. Define the function xstrcat() to concatenate the two strings. Also explain five string handling library functions [AKTU 2018-19]

Q24. Write a C program to add first seven terms of the following series using for loop.

1/1! +2/2! +3/3! +…..[ AKTU 2017-18]

Q25. Write a program to print check a number is prime number or not [ AKTU 2017-18]

Q26. Define structure with syntax .Also write a program that compares two given dates. To store date use structure say date that contains three members namely date, month and year. If the dates are equal then display message as “Equal” otherwise “Unequal”.[AKTU 2017-18]

Q27-Q28 [AKTU 2017-18]

Q29. WAP  in C to add two 3*3 matrices and store result in another matrix. [AKTU  2017-18]

Q30.What is Structure? How to create structure variable ? WAP to access the Structure members.

Q31. What do you mean by Array of Structure? Explain with an example.

Q32. WAP in C to find the Transpose of a Matrix.

Q33. WAP in C to Find the sum of Diagonal elements of matrix.

Q34. Explain different types of loop in C Programming with example and flow graph of each loop.

Q35. Explain Multiple loop variable with an example

Conclusion and Summary

Computer science students should attempt these C Programming Questions for Practice . Students should try to implement the programs given in there is tutorial. These programs will be really helpful to you in improving your knowledge and enhance you programming skills.

Also Study Some important C Programming Tutorials 

Leave a Reply

Your email address will not be published. Required fields are marked *