Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad MCA I COMPUTER PROGRAMMING Previous Question Paper (June/July - 2018 - R13)

MCA | I | I | R13 | June/July - 2018

Answer PaperPaper Code: 811ACMaximum Marks: 60Time: 3hrs

Part A is compulsory. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

120 marks
a

Discuss the concept of Type Conversion with an example.

4 marks

Answer

Type conversion is the process of converting a value of one data type into another. It is categorized into two types: Implicit conversion (automatic), performed by the compiler when compatible types are mixed, such as assigning an integer to a float; and Explicit conversion (type casting), where the programmer manually forces a conversion using the cast operator.

int x = 10; float y = (float)x / 3;

In this example, the integer x is explicitly cast to a float to ensure floating-point division occurs instead of integer truncation.

b

Write the differences between while and do-while statements.

4 marks

Answer

Featurewhiledo-while
Entry conditionChecked before executionChecked after execution
ExecutionBody may never executeBody executes at least once
Syntaxwhile(condition) { ... }do { ... } while(condition);
c

What is an array? Write down its applications.

4 marks

Answer

Sign in to view the complete answer paper.

d

Explain briefly about nested structures.

4 marks

Answer

Sign in to view the complete answer paper.

e

Explain briefly about ftell( ) and rewind( ) functions.

4 marks

Answer

Sign in to view the complete answer paper.

Part B

28 marks
a

Write down the advantages and disadvantages of structured programming.

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain the terms precedence and associativity in evaluating an expression.

4 marks

Answer

Sign in to view the complete answer paper.

OR
38 marks
a

Mention various rules for naming a variable in C.

4 marks

Answer

Sign in to view the complete answer paper.

b

Describe various computing environments with neat diagrams.

4 marks

Answer

Sign in to view the complete answer paper.

4

Explain briefly about selection statements in C with clear syntax and example.

8 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

Write a C program to generate a sequence of prime numbers between given range.

4 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain various function parameter passing mechanisms.

4 marks

Answer

Sign in to view the complete answer paper.

68 marks
a

Why is it necessary to give the size of an array in an array declaration?

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain with an illustrative example program for declaring an array and accessing its elements.

4 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain how a multidimensional array is defined in terms of a pointer to a collection of contiguous arrays of lower dimensionality with an illustrative C program.

8 marks

Answer

Sign in to view the complete answer paper.

8

Explain the process of passing an entire structure to a function using a program.

8 marks

Answer

Sign in to view the complete answer paper.

OR
98 marks
a

Explain briefly about command line arguments.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about various string I/O functions available in C.

4 marks

Answer

Sign in to view the complete answer paper.

10

Describe the following I/O functions: a) fopen( ) b) fprintf( ) c) fscanf( )

8 marks

Answer

Sign in to view the complete answer paper.

OR
118 marks
a

Write a C program that copies the contents of a binary file of integers to a second file.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write down the differences between text files and binary files.

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING from Jawaharlal Nehru Technological University Hyderabad for MCA I I, June/July - 2018, R13.

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

Other papers in COMPUTER PROGRAMMING

Loading Question Papers

Fetching data from database...