JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA COMPUTER PROGRAMMING Previous Question Paper (October/ November - 2020 - R13)
Answer any five questions. All questions carry equal marks.
Main
Discuss about computer environments.
Answer
A computer environment refers to the combination of hardware, software, and network configurations that allow a computer to function and execute programs. It encompasses the Operating System (OS), which acts as the interface between the user and the hardware, managing resources like CPU, memory, and storage. Key components include the Development Environment, which provides tools such as compilers, debuggers, and IDEs for writing and testing code; the Runtime Environment, which provides the necessary libraries and services for an application to execute; and the Network Environment, which enables connectivity and data exchange between systems. These layers collectively ensure that software can interact with hardware efficiently and securely.
What is type conversion? Explain with an example.
Answer
Type conversion is the process of changing a value from one data type to another. It is categorized into two types: Implicit conversion (automatic), where the compiler converts a smaller data type to a larger one to prevent data loss, and Explicit conversion (type casting), where the programmer forces a conversion using a cast operator.
Example:
In this example, the integer variable a is explicitly cast to a float before the division operation. Without the cast, the division would perform integer arithmetic, resulting in 3.0 instead of 3.3333.
What is preprocessor? Explain any four preprocessor commands.
Answer
Sign in to view the complete answer paper.
Write a program to demonstrate recursive functions.
Answer
Sign in to view the complete answer paper.
What are the common features of arrays and pointers.
Answer
Sign in to view the complete answer paper.
What is a pointer? Explain how arrays are managed using pointers.
Answer
Sign in to view the complete answer paper.
Explain nested structures.
Answer
Sign in to view the complete answer paper.
Write a program to demonstrate command-line arguments.
Answer
Sign in to view the complete answer paper.
Explain the following functions:
rewind( )
Answer
Sign in to view the complete answer paper.
fseek( )
Answer
Sign in to view the complete answer paper.
ftell( )
Answer
Sign in to view the complete answer paper.
fopen( )
Answer
Sign in to view the complete answer paper.
Explain the structure of C program.
Answer
Sign in to view the complete answer paper.
List out the operators in C.
Answer
Sign in to view the complete answer paper.
Explain in detail about control structure in C.
Answer
Sign in to view the complete answer paper.
What are arrays? Explain its advantages and disadvantages. What are types of arrays?
Answer
Sign in to view the complete answer paper.
Write a C program for addition of two given matrices.
Answer
Sign in to view the complete answer paper.