JNTU

JNTU MCA 2018 COMPUTER PROGRAMMING USING C Previous Question Paper (June/July - 2018 - R17)

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

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

What are the different data-types in C?

5 marks

Answer

Data types in C define the type and size of data a variable can hold. They are categorized into:

  • Primary (Basic) Data Types: Includes int (integer), char (character), float (single-precision floating point), and double (double-precision floating point).
  • Derived Data Types: These are constructed from primary types, such as arrays, pointers, structures, and unions.
  • Enumerated Data Type: Defined using the enum keyword to assign names to integral constants.
  • Void Type: Represents the absence of a value, typically used for function return types or generic pointers.
b

List out some mathematical functions.

5 marks

Answer

Mathematical functions in C are defined in the math.h header file. Common functions include:

  • sqrt(x): Returns the square root of x.
  • pow(x, y): Returns x raised to the power of y.
  • abs(x): Returns the absolute value of an integer.
  • ceil(x): Returns the smallest integer greater than or equal to x.
  • floor(x): Returns the largest integer less than or equal to x.
  • sin(x), cos(x), tan(x): Trigonometric functions that accept arguments in radians.
c

What are advantages and disadvantages of pointers?

5 marks

Answer

Sign in to view the complete answer paper.

d

What is data conversion?

5 marks

Answer

Sign in to view the complete answer paper.

e

Write about method for opening a file.

5 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Discuss about computer systems.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the procedure to create and run the programs.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Discuss about C tokens.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain operator precedence.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Differentiate between While and Do-While.

5 marks

Answer

Sign in to view the complete answer paper.

b

Compare goto, break, continue.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is recursion? Explain with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are storage classes?

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

How do you initialize 2-dimensional array? How do you pass on 2-dimensional array as argument to a function?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain array of pointers.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain passing array as an argument to a function.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to print the smallest and largest elements in an array.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is the enumerated data-type? List down the conditions for using enumerated data-type in a program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a C program to sort strings.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain structure initialization and array of structures.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are command-line arguments?

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

What is a file management? What are the modes of opening a file?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain different ways of accessing files.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain different file input, output functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to create a file to store and retrieve strings using fputs() and fgets().

5 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 JNTU for MCA 2018 I, June/July - 2018, 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...