JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2018 COMPUTER PROGRAMMING USING C Previous Question Paper (January - 2018 - R15)

MCA | 2018 | I | R15 | January - 2018

Answer PaperPaper Code: 821ACMaximum Marks: 75Time: 3hrs

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.

PART - A

125 marks
a

Write a program to convert the Fahrenheit into degree Celsius.

5 marks

Answer

The formula to convert Fahrenheit (F) to Celsius (C) is C = (F - 32) * 5 / 9.

#include <stdio.h>
int main() {
    float f, c;
    printf("Enter temperature in Fahrenheit: ");
    scanf("%f", &f);
    c = (f - 32) * 5 / 9;
    printf("Celsius: %.2f\n", c);
    return 0;
}
b

Explain the recursive function with an example and also give its limitations.

5 marks

Answer

A recursive function is a function that calls itself to solve a smaller instance of the same problem. It requires a base case to terminate the recursion.

Example: Calculating factorial of n.

int fact(int n) {
    if (n == 0) return 1;
    return n * fact(n - 1);
}

Limitations: Recursive functions consume significant stack memory for each call, which can lead to stack overflow errors if the depth is too large. They are also generally slower than iterative solutions due to function call overhead.

c

Explain the drawbacks of pointers in detail.

5 marks

Answer

Sign in to view the complete answer paper.

d

Explain the functions of read and write characters.

5 marks

Answer

Sign in to view the complete answer paper.

e

Explain about the rewind ( ) with an example.

5 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

Explain the classification of computer software.

10 marks

Answer

Sign in to view the complete answer paper.

OR
3

Explain the different types of operators are used in C.

10 marks

Answer

Sign in to view the complete answer paper.

4

Explain about user defined functions and inter function communication.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write a program to find the GCD of given numbers by using functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the type qualifier with an example.

5 marks

Answer

Sign in to view the complete answer paper.

6

Write a program to read a matrix and displays sum of the elements below the main diagonal.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain the pointers for inter function communication

5 marks

Answer

Sign in to view the complete answer paper.

b

What is an array? Explain how is an array represented in memory.

5 marks

Answer

Sign in to view the complete answer paper.

8

Write a program to read and display the information of all the students in the class. Then edit the details of the ith student and redisplay the entire information by using structures.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Write a program that uses a structure called date that has is passed to an is LeapYear function to determine if the year is a leap year.

10 marks

Answer

Sign in to view the complete answer paper.

10

Explain the different types of File modes in C.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write a program to compare two files to check whether they are identical or not.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING USING C from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2018 I, January - 2018, R15.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in COMPUTER PROGRAMMING USING C

Loading Question Papers

Fetching data from database...