JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA I COMPUTER PROGRAMMING USING C Previous Question Paper (July/August - 2021 - R17)

MCA | I | I | R17 | July/August - 2021

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What is a data type? List various data types in C and write about their sizes in bytes.

6 marks

Answer

A data type defines the type of data a variable can hold, the range of values it can represent, and the set of operations that can be performed on it. In C, data types are categorized as primary, derived, and user-defined.

Data TypeSize (Bytes)
char1
int2 or 4
float4
double8
short int2
long int4 or 8
long double10, 12, or 16
b

Enumerate all the operators in C with appropriate examples.

9 marks

Answer

Operators in C are symbols that perform specific mathematical or logical manipulations. The primary categories are:

  • Arithmetic Operators (+, -, *, /, %): Used for calculations. Example: a + b.
  • Relational Operators (==, !=, >, <, >=, <=): Used to compare two values. Example: a > b.
  • Logical Operators (&&, ||, !): Used to combine conditions. Example: (a > b && c > d).
  • Assignment Operators (=, +=, -=, *=, /=): Used to assign values to variables. Example: a += 5.
  • Bitwise Operators (&, |, ^, ~, <<, >>): Perform operations at the bit level. Example: a & b.
  • Increment/Decrement Operators (++ , --): Increase or decrease a value by one. Example: ++a.
  • Conditional (Ternary) Operator (?:): A shorthand for if-else. Example: (a > b) ? a : b.
  • Special Operators (sizeof, &, *, ->): Used for memory management and pointer operations. Example: sizeof(int).
215 marks
a

Evaluate the following expression in C with the values A=5, B=20, C=15, D=10:

A + (B*C / D) - A + C * D
7 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to find biggest of given three numbers.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Demonstrate all the decision making statements in C with examples.

9 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to find the sum of 20 natural numbers.

6 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Differentiate between call by value and call by reference in C.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to generate Fibonacci series using recursive functions.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How to define and declare multi-dimensional arrays? Give an example.

6 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program for multiplication of two matrices.

9 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Define a pointer. What are the advantages of pointers than arrays?

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about malloc( ) and calloc( ) memory allocation functions with suitable examples.

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Demonstrate self-referential structures in C with suitable examples.

9 marks

Answer

Sign in to view the complete answer paper.

b

Explain about enumerated data types in detail.

6 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Write syntax and examples for fopen( ), fclose( ) and fflush( ) functions.

9 marks

Answer

Sign in to view the complete answer paper.

b

Write syntax and examples for positioning functions in C.

6 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 USING C from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA I I, July/August - 2021, R17.

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

Other papers in COMPUTER PROGRAMMING USING C

Loading Question Papers

Fetching data from database...