Download JNTUH MCA 1st Sem R13 2017 August 811AC Computer Programming Question Paper

Download JNTUH (Jawaharlal nehru technological university) MCA (Master of Computer Applications) 1st Sem (First Semester) Regulation-R13 2017 August 811AC Computer Programming Previous Question Paper


R13

Code No: 811AC















JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

MCA I Semester Examinations, August - 2017

COMPUTER PROGRAMMING

Time: 3hrs















Max.Marks:60

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



















5 ? 4 Marks = 20

1.a) Explain the type conversions allowed in `C' Language.







[4]

b) What is the use of default alternative in Switch statement? Compare use of switch with
nested if-else statement.















[4]

c) How to initialize array? Explain with example and write its uses.



[4]

d) Define structure and union. Explain the way of declaring and accessing them.

[4]

e) Explain the concept of files, records and fields.









[4]



PART - B

















5 ? 8 Marks = 40

2.

What do you understand by operators? Explain the use of the following operators
a) relational b) logical

c) arithmetic operators.







[8]

OR

3.a)

Discuss precedence order and associativity of operators.

b)

What is typecasting? When should a typecast be used?







[4+4]


4.

A cashier has currency notes of denominations 10, 50 and 100 each of x, y and z
quantities. If the amount to be withdrawn is input through the keyboard, find the total
number of currency notes of each denomination the cashier will have to give the
withdrawer.

















[8]

OR

5.a)

What are functions? What is the advantage of using function in a program?

b)

What are macros? Is it better to use a macro or a function?





[4+4]


6.

Write a C language program to read one matrix and find the sum of its diagonal elements.

























[8]

OR

7.

What is dynamic memory allocation? Write and explain the different dynamic memory
allocation functions in C.















[8]


8.

What do you understand by strings? How do you declare a string? Write a program to
copy one string into another.













[8]

OR

9.

Explain array of structures and structure within a structure with examples.

[8]


10.

Write a program that prints only those lines from a file which are containing more than 50
characters.



















[8]

OR

11.

Write a C language program to copy the contents of one file to another file using
command line arguments.















[8]

---oo0oo---

This post was last modified on 16 March 2023