ENOTES

NEB Class 12 Computer Science C-programming important questions

access_time Dec 18, 2020 remove_red_eye 29684

C-programming is very important chapter in class 12 both in terms of marks weightage and for programming knowledge and skills. Almost about 40 marks of questions is asked from C-programming itself in board examination of NEB. Here are the frequently repeated question for NEB class 12 computer science.

NEB C-programming question Collection

Theory questions

  1. Define operators. Explain types of operators.
  2. Define data types. Explain different data types used in C.
  3. Define control structure. Explain different types of control structure.
  4. Differentiate between for loop and while loop with program example.
  5. Differentiate between entry control loop (while) and exit control loop (do while) with program example. 
  6. Define functions. Write the advantages of function with  program example.
  7. Define pointer. Write the advantages of pointers with  program example.
  8. Differentiate between structure and union.
  9. Define function. Explain any 5 string handling function with program example. 
  10. Short notes on array , recursion (recursive function)

Program question.

  1. Write a C program to generate fibonacci series. [ 2, 3, 5, 8 ……10th term] 
  2. Write a C program to input a number and check whether it is odd or even.
  3. Write a C program to input a number and check whether it is exactly divisible by 5 but not by 7.
  4. Write a C program to input a number and print multiplication table of given number.
  5. Write a C program to find greatest number among 3 number.
  6. Write a C program to calculate sum of n-natural number.
  7. Write a C program to reverse a given number.
  8. Write a C program to check whether given string is palindrome or not.
  9. Write a C program to count total vowels from given string.
  10. Write a C program to calculate factorial of a given number using recursive function.
  11. Write a C program to find greatest number among 10/n numbers.
  12. Write a C program to arrange 10/n numbers in ascending order.
  13. Write a C program to read salary of 300 employees and count the number of employee getting salary between 30000 to 50000.
  14. Write a C program to read two 3x3 matrices and perform matrix addition/multiplication.
  15. Write a C program to enter name, roll number and percentage of 10 student and store them in a data file [use any name]
  16. A datafile “patient.txt” contain name, disease , age and bed number of few patient. Write a C program to read and display records of all patients in appropriate format.
  17. A datafile “patient.txt” contain name, disease , age and bed number of few patient. Write a C program to read and display only records of patients suffering from “COVID”.
  18. Write a C program to enter book name, book id and book author of few book and store them in a data file named “library.txt”. Display each records in screen in appropriate format.

Click here for solution of all the questions and program.