JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2020 COMPUTER PROGRAMMING USING C Previous Question Paper (October/November - 2020 - R17)

MCA | 2020 | I | R17 | October/November - 2020

Answer PaperPaper Code: 841ACMaximum Marks: 75Time: 2hrs

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Discuss about computer environments.

7 marks

Answer

A computer environment refers to the hardware, software, and network infrastructure that allows a computer to function and execute programs. It typically consists of three main layers:

  1. Hardware Environment: The physical components including the CPU, memory (RAM), storage devices, and input/output peripherals that provide the raw computing power.
  2. Software Environment: The operating system (OS) and system software that manage hardware resources and provide a platform for application software to run. It includes compilers, interpreters, and libraries.
  3. Development/Execution Environment: The specific setup used by programmers, such as an Integrated Development Environment (IDE), which includes a text editor, compiler, linker, and debugger, facilitating the transformation of source code into executable machine code.
b

What is type conversion? Explain with an example.

8 marks

Answer

Type conversion is the process of changing a value from one data type to another. In C, this is categorized into two types:

  1. Implicit Type Conversion (Type Promotion): Performed automatically by the compiler when different data types are used in an expression. The compiler promotes smaller data types to larger ones to prevent data loss (e.g., char or short to int, or int to float).
  2. Explicit Type Conversion (Type Casting): Performed manually by the programmer using the cast operator (type) to force a conversion, often used to truncate values or perform specific division.

Example:

int a = 10;
float b = 5.5;
float result = (float)a / b;

In this example, the variable a is explicitly cast to a float before division, ensuring floating-point division is performed rather than integer division.

215 marks
a

What is preprocessor? Explain any four preprocessor commands.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to demonstrate recursive functions.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

What are the common features of arrays and pointers.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is a pointer? Explain how arrays are managed using pointers.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain nested structures.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to demonstrate command-line arguments.

8 marks

Answer

Sign in to view the complete answer paper.

5

Explain the following functions.

15 marks
a

rewind ( )

0 marks

Answer

Sign in to view the complete answer paper.

b

fseek ( )

0 marks

Answer

Sign in to view the complete answer paper.

c

ftell ( )

0 marks

Answer

Sign in to view the complete answer paper.

d

fopen ( )

0 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain the structure of C program.

7 marks

Answer

Sign in to view the complete answer paper.

b

List out the operators in C.

8 marks

Answer

Sign in to view the complete answer paper.

7

Explain in detail about control structure in C.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

What are arrays? Explain its advantages and disadvantages. What are types of arrays?

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program for addition of two given matrices.

8 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 2020 I, October/November - 2020, R17.

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...