JNTU

JNTU MCA 2020 COMPUTER PROGRAMMING Previous Question Paper (January - 2020 - R13)

MCA | 2020 | I | R13 | January - 2020

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. Each question carries 8 marks and may have a, b, c as sub questions.

Part A

120 marks
a

Discuss about the features of procedure oriented programming languages.

4 marks

Answer

Procedure-oriented programming (POP) focuses on a step-by-step approach to solving problems. Key features include: 1) Top-down approach: The program is broken down into smaller functions or procedures. 2) Emphasis on functions: The logic is centered around actions rather than data. 3) Global data: Data often moves freely across functions, which can lead to security issues. 4) Modularity: Code is organized into reusable blocks (functions), making it easier to manage and debug.

b

Describe any five preprocessor directives in C with examples.

4 marks

Answer

Preprocessor directives are commands processed before compilation:

  • #include: Includes header files, e.g., #include <stdio.h>.
  • #define: Creates macros or constants, e.g., #define PI 3.14.
  • #undef: Undefines a macro, e.g., #undef PI.
  • #ifdef: Conditional compilation if a macro is defined, e.g., #ifdef DEBUG.
  • #ifndef: Conditional compilation if a macro is not defined, e.g., #ifndef HEADER_FILE.
c

What is the role of pointers in inter function communication?

4 marks

Answer

Sign in to view the complete answer paper.

d

What is a structure? How to define and declare a structure in C?

4 marks

Answer

Sign in to view the complete answer paper.

e

What are the various types of files supported in C?

4 marks

Answer

Sign in to view the complete answer paper.

Part B

28 marks
a

What is an operator? Describe precedence of various operators in C and their associativity.

0 marks

Answer

Sign in to view the complete answer paper.

b

What is type conversion? Explain implicit and explicit type conversions in C with suitable examples.

8 marks

Answer

Sign in to view the complete answer paper.

OR
38 marks
a

Evaluate the following expression in C with the values P=5, Q=20, R=15

P + (Q*R/P)*P + Q*R

5 marks

Answer

Sign in to view the complete answer paper.

b

Enumerate all the bitwise operators in C with example.

3 marks

Answer

Sign in to view the complete answer paper.

48 marks
a

Demonstrate break and continue statements with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to find factorial of given number using recursive functions.

3 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

Explain about various storage classes in C with suitable examples.

4 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate all the iterative statements in C with examples.

4 marks

Answer

Sign in to view the complete answer paper.

68 marks
a

Define an Array. What are the advantages of Arrays? How to declare and initialize string values using arrays in C?

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program for addition of two matrices.

4 marks

Answer

Sign in to view the complete answer paper.

OR
78 marks
a

How to pass an array to a function? Explain with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is pointer to pointers? Give syntax and an example.

3 marks

Answer

Sign in to view the complete answer paper.

88 marks
a

How to define union in C? Differentiate between unions and structures.

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain about any five String built-in functions with syntax and examples.

4 marks

Answer

Sign in to view the complete answer paper.

OR
9

Write a C program to read 3 student details such as Htno, name, marks in 5 subjects and calculate and display total and average marks of each student.

8 marks

Answer

Sign in to view the complete answer paper.

108 marks
a

Write syntax and examples for getc( ), fgetc( ), putc( ) and fputc( ) functions.

3 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to reverse the content of given file using fseek( ) function.

5 marks

Answer

Sign in to view the complete answer paper.

OR
118 marks
a

Differentiate between sequential access files and random access files.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to concatenate the contents of two files into another file.

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of COMPUTER PROGRAMMING from JNTU for MCA 2020 I, January - 2020, 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...