JNTU

JNTU MCA 2019 COMPUTER PROGRAMMING Previous Question Paper (April/May - 2019 - R13)

MCA | 2019 | I | R13 | April/May - 2019

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

Note: This question paper contains two parts A and B. Part A is compulsory which carries 20 marks. 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 in detail about logical operators and bitwise operators.

4 marks

Answer

Logical operators (&&, ||, !) are used to combine or negate conditional expressions, returning a boolean result (true or false). They are primarily used in control flow statements like if or while to evaluate multiple conditions. Bitwise operators (&, |, ^, ~, <<, >>) perform operations on the individual bits of integer operands. They are used for low-level programming, such as manipulating hardware registers, performing fast arithmetic, or setting and clearing specific bit flags.

b

Write down the differences between switch-case and if-else ladder.

4 marks

Answer

The switch-case statement is used for multi-way branching based on the equality of a single integer or character expression against constant values, making it more readable for discrete choices. The if-else ladder is more flexible, allowing for the evaluation of complex relational or logical expressions in each condition. Furthermore, switch-case is typically implemented using jump tables for efficiency, whereas if-else ladder evaluates conditions sequentially.

c

Explain briefly about malloc( ) and calloc( ) functions.

4 marks

Answer

Sign in to view the complete answer paper.

d

What are self-referential structures? Discuss briefly.

4 marks

Answer

Sign in to view the complete answer paper.

e

Explain briefly about feof( ) and ferror( ) functions.

4 marks

Answer

Sign in to view the complete answer paper.

Unit I

28 marks
a

Explain the need of compiler, linker and loader in computer programming.

4 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain the classification of computer languages.

4 marks

Answer

Sign in to view the complete answer paper.

OR
38 marks
a

What is an unsigned integer constant? What is the significance of declaring a constant as unsigned?

4 marks

Answer

Sign in to view the complete answer paper.

b

Describe various operators used in C programming.

4 marks

Answer

Sign in to view the complete answer paper.

Unit II

48 marks
a

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

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the limitations of recursive functions.

4 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

Write a C program to test whether a given number is palindrome or not.

4 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain various storage classes with their scope and persistent.

4 marks

Answer

Sign in to view the complete answer paper.

Unit III

68 marks
a

Explain how to declare, define and initialize pointers in C with an example program.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write down the advantages and disadvantages of arrays.

4 marks

Answer

Sign in to view the complete answer paper.

OR
7

What is a dynamic array? Explain how to create and process a dynamic array with an example program.

8 marks

Answer

Sign in to view the complete answer paper.

Unit IV

8

Explain the general format for declaring and accessing members of a structure with an example C program for generating grades of students in a class.

8 marks

Answer

Sign in to view the complete answer paper.

OR
98 marks
a

How to create and initialize arrays of structures in C? Illustrate with an example.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about various string manipulation functions available in C.

4 marks

Answer

Sign in to view the complete answer paper.

Unit V

10

Describe the following functions in C: a) fread( ) b) fwrite( ) c) fseek( )

8 marks

Answer

Sign in to view the complete answer paper.

OR
118 marks
a

Write a C program that prints a specified number of records from the beginning of a file.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write down the merits and demerits of text files over binary files.

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of COMPUTER PROGRAMMING from JNTU for MCA 2019 I, April/May - 2019, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in COMPUTER PROGRAMMING

Loading Question Papers

Fetching data from database...