This is the question set along with answers of Programming language Spring 2015, which was taken by the Pokhara University.
Pokhara University – Programming Language Spring 2015
Level: Bachelor | Semester – Spring | Year: 2015 |
Program: BCIS | Full Marks: 100 | |
Course: Programming Language (C ) | Pass Marks: 45 | |
Time: 3hrs. |
Section “A”
Very Short Answer Questions Attempt all the questions. |
10×2 |
|
1. | What is a Programming Language? | |
2. | What are header files? Why are they important? | |
3. | Define identifier and write the rules for naming identifier. | |
4. | What the difference between variable and constant? | |
5. | Write syntax for the do-while loop. | |
6. | What does FILE *fp mean? | |
7. | What is the function prototype? | |
8. | Explain about pre-processor directive? | |
9. | Differentiate between the operator % and /. | |
10. | Debug the errors of the given program. Void main()
{ int v=10; *p; p=v printf(%d,*p); getch() } |
|
Section “B”
Descriptive Answer Questions Attempt any six questions |
6×10 |
|
11. | What is the system development life cycle? Explain the phases of SDLC. | |
12. | Draw the block diagram of the digital computer and explain its components. | |
13. | What are the algorithm and flowchart? Develop an algorithm and draw a flowchart for finding the sum of the series 1+2+3+….up to N terms. | |
14. | Differentiate between array and structure. Also, differentiate between union and structure with suitable example. | |
15. | Define pointer. Write the use of a pointer. Write a program to read the name of 10 employees. Sort them in ascending order and display them using the 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 different types of operators. | |
18. |
Section “C”
Case Analysis Suppose, there are 50 employees at 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 i. Displaying a list of all records from the file. ii. Searching the required records from the file iii. Exit. a) Develop software that can manage the information related to each employee. b) 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? |
20 |
You may also like Pokhara University || Spring,2016 || Programming Language
Do follow us on our Facebook.
Leave a Reply