JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

MCA | 2020 | I | R17 | January - 2020

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

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.

Part A

125 marks
a

Discuss about the features of procedure oriented programming languages.

5 marks

Answer

Procedure-oriented programming (POP) focuses on a step-by-step approach to solving problems using functions. Its key features include:

  • Top-down approach: Programs are broken down into smaller, manageable functions starting from the main logic.
  • Emphasis on functions: The primary focus is on algorithms and the sequence of actions rather than data.
  • Global data: Data moves freely across functions, which can lead to security risks.
  • Modularity: Code is organized into reusable functions, improving readability.
  • Sequential execution: Instructions are executed in a specific, predefined order.
b

Describe any five preprocessor directives in C with examples.

5 marks

Answer

Preprocessor directives are commands processed before compilation:

  • #include: Used to include header files. Example: #include <stdio.h>
  • #define: Used to define macros or constants. Example: #define PI 3.14
  • #undef: Used to undefine a macro. Example: #undef PI
  • #ifdef: Conditional compilation check if a macro is defined. Example: #ifdef DEBUG
  • #ifndef: Conditional compilation check if a macro is not defined. Example: #ifndef HEADER_FILE
c

What is the role of pointers in inter function communication?

5 marks

Answer

Sign in to view the complete answer paper.

d

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

5 marks

Answer

Sign in to view the complete answer paper.

e

What are the various types of files supported in C?

5 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

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

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

6 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

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

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

Answer

Sign in to view the complete answer paper.

b

Enumerate all the bitwise operators in C with example.

4 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Demonstrate break and continue statements with suitable examples.

6 marks

Answer

Sign in to view the complete answer paper.

b

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

4 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain about various storage classes in C with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate all the iterative statements in C with examples.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

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

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program for addition of two matrices.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

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

6 marks

Answer

Sign in to view the complete answer paper.

b

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

4 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

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

5 marks

Answer

Sign in to view the complete answer paper.

b

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

5 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 & display total and average marks of each student.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

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

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

6 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Differentiate between sequential access files and random access files.

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

5 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, January - 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...