MeroPaper

  • About Us
  • Contact Us
NEB || Important Questions of Computer Science Grade XII Programming in C

NEB || Important Questions of Computer Science Grade XII Programming in C

Class: 12 || Subject: Computer Science || Unit 4: Programming in C

Long answer questions

  1. What is looping? Write a program to calculate and display the multiplication table using nested loop. [2+8]
  2. Describe the “strca”, “strcpy”, “strle” and “strrev” string functions with examples. [10]
  3. Write a program to arrange the elements of an array in ascending order. [10]
  4. What is “fscanf” function? Write a program to display name, age and address reading from a file named “record.dat”. [2+8]
  5. What is function? Write a program to generate factorial of given number using recursive function. [2+8]
  6. Describe any five ‘file handling function’ with examples. [10]
  7. What is looping? Describe ‘for loop’, ‘while loop’ and ‘do-while loop’ with appropriate examples. [10]
  8. Write a program which asks 100 numbers and sort them in ascending order. [10]
  9. Write a program to find greatest number among four numbers. [10]
  10. Write a program which reads name of 100 students and sort them in alphabetical order. [10]
  11. Describe ‘Sequence’, Selection’ and ‘Loop’ with flowchart. Write a program to check if a number is odd or even. [6+4]
  12. What is pointer? Describe the benefits of pointer with examples. [4+6]
  13. What is an array? Write a program which finds multiplication table of two matrices (3×3). 2+8]
  14. Write a program which reads name, roll-number and age from a file named “student. dat” and display them. [10]
  15. Write a program which reads the sum, difference and product of 2 numbers using switch case statement. [10]
  16. Describe the types of loop with flowchart and examples. [10]
  17. Write a program which asks the user to input ‘n’ terms of number and find out the greatest and smallest number among those numbers. [10]
  18. Differentiate between array and structure with suitable examples. [5+5]
  19. What is nested loop? Write a program to display the multiplication table of nth terms of given numbers. [2+8]
  20. Describe any five “string handling functions” with examples. [10]
  21. Write a program which reads salary of 25 employees and count the number of employees who are getting salary between 30,000 to 40,000. [10]
  22. Describe fprintf and fscanf file handling functions. Write a program which writes “welcome to Nepal” in a file. [10]
  23. What is control statement? Describe ‘Sequence’, ‘Selection’ and ‘Loop’ with flowchart and examples. [2+8]
  24. Write a program which reads name of 20 employees and sort them in alphabetical order. [10]
  25. Differentiate between structure and union with suitable examples. [5+5]
  26. What is recursion? Write a program to calculate factorial value of given number using recursive function. [2+8]
  27. Write a program which reads name, department and age from a file named “employee.dat” and display them. [10]
  28. What is string? Explain any four string handling functions with example. [2+8]
  29. What is control statement? Write a program which selects and prints largest among 3 numbers using “if-else” statement with flow charts. [2+8]
  30. Write a program to store mark obtained by ‘n’ students and count the number of students who obtained mark greater than 70. Also count the number of students who are failed (mark<35). List any five string functions. [10]
  31. Write a program to input a string and count the number of consonants containing in the string. [2+8]
  32. Write a program to show data writing and reading operating to / from a data file. [2+8]
  33. Explain the importance of pointer in C programming. Illustrate pointer operations with examples. Show the relationship between array and pointers with example. [3+3+4]
  34. Write an algorithm for a program that input cost price (CP) and selling price (SP) and determines whether there is gain or loss. Convert this algorithm into program code. [5]
  35. Write a program to display the name of day on the basis of entered number 1 to 7. For example, 1 for Sunday. [5]
  36. Explain data types used in C programming with examples. [5]
  37. An organization has 5 stores and it deals in items. The stock position of these items is shown below:
Item 1 Item 2 Item 3 Item 4
Store 1 30 35 0 0
Store 2 20 0 25 0
Store 3 80 175 25 35
Store 4 0 21 32 28
Store 5 10 80 15 40

Short answer questions

  1. What is variables in programming? List out the different data types in C program. [2+3]
  2. Describe the different mode of file handling concept in C. [5]
  3. Explain the array and structure with examples. [2.5+2.5]
  4. Differentiate between while and do-while loop. [3.5+3.5]
  5. Describe the limitation of using getchar and putchar functions for reading strings. [7]
  6. In event driven programming what is event handler? Explain the term ‘recession’. [7]
  7. What is Program Logic? What are different tools to explain the logic and design of a program? What is infinite loop? What are symbols used to draw a flow chart? [1+3+1+2]
  8. What is operator? Describe the types of operators with appropriate examples. [1+4]

Related Articles

TU || Exam paper 2074 of Poetry 314, 304

TU || Flax Golden Tales Lesson 22

Comments

comments

%d bloggers like this: