Model Question 2

Programming Language, Computer Programming, C Programming important questions

Model Question 2

Model Question 2

Published by: Anil K. Panta

Section "A"

Very Short Answer Questions

Attempt all the questions. 


1. What is Programming Language?

2. What are header files? Why are they important?

3. Define identifiers and write the rules for naming identifiers.

4. What is the difference between variable and constant?

5. Write a syntax for do-while loop.

6. What does FILE *fp means?

7. What is a function prototype?

8. Explain about the pre-processor directive?

9. Differentiate between the operator % and /.

10. Debug the errors of the given program.  

Voidmain()

        {

         int v=10; *p;

         p=v

         printf(%d,*p);

         getch()

      }


Section "B"

Descriptive Answer Questions

Attempt any six questions


11. What is the system development life cycle? Explain the phases of SDLC.

12. Draw the block diagram of a digital computer and explain its components.

13. What is algorithm and flowchart? Develop an algorithm and draw flowchart for finding the sum of the series 1+2+3+….upto N terms.

14. Differentiate between array and structure. Also differentiate between union and structure with suitable examples.

15. Define pointer. Write the use of a pointer. Write a program to read the names of 10 employees. Sort them in ascending order and display them using a pointer.

16. Write a program to read n integer data in an array. Reverse the array and display.

17. Define operator. Why operators are used in C. Explain about different types of operators.


Section "C"

Case Analysis


18. Suppose, there are 50 employees in Pokhara University. You need software to manage the information related to each employee. The software should have the following facilities:

Add new records to the file

  1. Displaying a list of all records from the file.

  2. Searching the required records from the file

  3. Exit.

    1. Develop software which can manage the information related to each employee.

    2. What other modules do you suggest to be included in the software to manage information more effectively and also to enhance the performance of the organization?

We will get back to you via email or phone call