This is the question set along with answers of Programming language ( C Language) – Fall, 2017, which was taken by the Pokhara University.
Pokhara University – Programming Language
Level: Bachelor | Semester – Fall | Year: 2017 |
Program: BCIS | Full Marks: 100 | |
Course: Programming Language
|
Pass Marks: 45 | |
Time: 3hrs. |
Candidates are required to give their answers in their own words as far as practicable. |
The figures in the margin indicate full marks. |
Section “A”
Very Short Answer Questions Attempt all the questions. |
10×2 |
|
1. | Write the name of different types of constant with two examples of each. | |
2. | Explain fourth-generation computer language? | |
3. | Write the rules of naming identifier. | |
4. | What is operator precedence? | |
5. | What is the data type? Write about the integer data type. | |
6. | Define global variable and local variable. | |
7. | What is a function? Write the advantages of function. | |
8. | What is an array? Explain about accessing 2-D array elements. | |
9. | Debug the errors of the given program.
Voidmain() { int v=10; *p; p=v printf(%f,*p); getch() } |
|
10. | Define a structure for a book and include members like book_name, price, publication. | |
Section “B”
Descriptive Answer Questions Attempt any six questions |
6×10 | |
11. | Draw the block diagram of the digital computer. Explain its components. | |
12. | What is the system development life cycle? Explain the phases of SDLC. | |
13. | What are 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. | Explain while loop with syntax. Write a program to check whether the entered number is a prime number or a composite number. | |
15. | Explain different components associated with function. | |
16. | Write a program to find the row sum and column sum of a matrix. | |
17. | Write short notes (any two)
a.dynamic memory allocation. b.Union. c.Switch statement. |
|
18. | Section “C”
Case Analysis Suppose, there are 100 employees at Lincoln College. You need software to manage the information related to each employee. The software should have the following facilities: 1. Add new records to the file 2. Displaying a list of all records from the file. 3. Searching the required records from the file. 4. 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? |
15
5 |
You may also like Programming Language- Spring,2016
Leave a Reply