Tribhuvan University | Old Is Gold
Institute Of Science And Technology
Computer Science and Information Technology
Course: Fundamental Of Computer Programming
Level: Bachelor | First Year | Semester: First | Year 2067 | Science
Full Marks: 60 | Pass Marks: 24 | Time: 3 Hrs


Download - File Size: 131 kb | Question Paper Of 'Fundamental Of Computer Programming' 2067 | CSIT | TU

Candidates are required to give their answers in their own words as for as practicable. 

All questions carry equal marks.

Attempt all questions.

1. Draw the flow chart for the solution of a quadratic equation and write an algorithm and explain it.

2. Find the value of “a” in each of the following statements: int i = 2, j = 5, k = 7;
float a = 1.5, b = 2.5, c = 3.5;
a) a = c – i/j + c/k;
b) a = (c-i)/k + (j+b)/j;
c) a = b * b – (( i + j)/c);
d) a = b – k + j/km + i * c;
e) a = c + k % 2 + b;
f) a = (b + 4) % (c + 2);

3. A machine is purchased which will produce earning of Rs. 20000 per year while it lasts. The machine cost Rs. 120000 and will have a salvage value of Rs. 20000 when it is condemned. If the 12 percent per annum can be earned on alternative investments what should be the minimum life of the machine to make it a more attractive investement compared to alternative investements?

4. Write a program to transpose the following matrix.

5. Write a program that uses a do…while loop to compute and prints the sum of squares given n numbers.

6. Write a function to multiply two n x n matrices.

7. Write a program to count the number of words in sentence.

8. Why pointer is called jewel of C language? Write a program that uses pointers to copy an array of integer.
OR
Explain the importance of pointer. Write a function that is passed an array of n pointer to floats and returns a newly created array that contains those n float values.

9. Define a structure of student having data members name, address, marks in C languages and marks in information system. Take data for n students in an array dynamically and find the total marks obtained.

10. Some text file is given, create another text file replacing the following words “Ram” to “Hari”, “Sita” to “Gita”, and “Govinda” to “Shiva”.
OR
What are the uses of graphical function? Explain the basic graphical function with suitable program.

0Comments

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow.

Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Previous Post Next Post