JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2017 COMPUTER PROGRAMMING USING C Previous Question Paper (August - 2017 - R15)
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
Write a overview on computing environments.
Answer
Computing environments represent the settings in which software is developed and executed. Key types include:
- Personal Computing: Single-user systems like desktops or laptops designed for individual tasks.
- Client-Server Computing: A distributed architecture where clients request services from a central server.
- Distributed Computing: Multiple autonomous computers connected via a network, working together to complete a task.
- Cloud Computing: On-demand delivery of computing services (servers, storage, databases) over the internet.
- Embedded Computing: Specialized systems integrated into larger devices (e.g., microcontrollers in appliances) to perform dedicated functions.
Write a sample program on break statement.
Answer
The break statement is used to terminate the execution of a loop or switch statement prematurely.
#include <stdio.h>
int main() {
for(int i = 1; i <= 10; i++) {
if(i == 5) break;
printf("%d ", i);
}
return 0;
}What is an array? Explain how array is initialized?
Answer
Sign in to view the complete answer paper.
Write an example program on unions.
Answer
Sign in to view the complete answer paper.
Explain different file input, output functions.
Answer
Sign in to view the complete answer paper.
Part B
Explain the process of creating and running programs.
Answer
Sign in to view the complete answer paper.
Explain the different types of bitwise operators used in C.
Answer
Sign in to view the complete answer paper.
Explain Operator Precedence with an example.
Answer
Sign in to view the complete answer paper.
Explain the structure of C program.
Answer
Sign in to view the complete answer paper.
Define loop. Explain various loop statements available in C with examples.
Answer
Sign in to view the complete answer paper.
Explain different ways of writing functions.
Answer
Sign in to view the complete answer paper.
What is recursion? What are the limitations of recursion?
Answer
Sign in to view the complete answer paper.
Write a program to print the largest and smallest elements in an in a array.
Answer
Sign in to view the complete answer paper.
How do you initialize two dimensional array? How do you pass on two dimensional array as argument to a function.
Answer
Sign in to view the complete answer paper.
What is the importance of pointers in C language and explain pointer arithmetic.
Answer
Sign in to view the complete answer paper.
Write a program for arrays of pointers.
Answer
Sign in to view the complete answer paper.
Explain string functions with examples.
Answer
Sign in to view the complete answer paper.
Write a program to find the length of a given string.
Answer
Sign in to view the complete answer paper.
What is the enumeration data type? List down the conditions for using enumeration data type in a program.
Answer
Sign in to view the complete answer paper.
Write a program for arrays of structures.
Answer
Sign in to view the complete answer paper.
Write a program to understand the use of gets function.
Answer
Sign in to view the complete answer paper.
Distinguish between text and binary files.
Answer
Sign in to view the complete answer paper.
Explain the following:
Error handling
Answer
Sign in to view the complete answer paper.
Streams
Answer
Sign in to view the complete answer paper.