Programming Language 2015 - BCIS (PU) Old Question
Programme: BCIS
Course: Programming Language(New)
Year : 2015
Candidates are required to give their answers in their own words as far as practicable.
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 identifier and write the rules for naming identifier.
4. What a difference between variable and constant?
5. Write a syntax for do-while loop.
6. What does FILE *fp means?
7. What is function prototype?
8. Explain about 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 system development life cycle? Explain the phases of SDLC.
12. Draw the block diagram of 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 example.
15. Define pointer. Write the use of pointer. Write a program to read name of 10 employees. Sort them in ascending order and display using 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 employee 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
- Displaying a list of all records from the file.
- Searching the required records from the file
- Exit.
- Develop software which can manage the information related to each employee.
- 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?