This download link is referred from the post: JNTUH MCA 1st Sem Last 10 Years 2023-2013 Question Papers R20-R09 || Jawaharlal nehru technological university
Code No: 811AC
--- Content provided by FirstRanker.com ---
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
--- Content provided by FirstRanker.com ---
MCA I Semester Examinations, August - 2017
COMPUTER PROGRAMMING
Time: 3hrs Max.Marks:60
Note:
This question paper contains two parts A and B.
--- Content provided by FirstRanker.com ---
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 x 4 Marks = 20
--- Content provided by FirstRanker.com ---
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]
--- Content provided by FirstRanker.com ---
PART - B
5 x 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.
--- Content provided by FirstRanker.com ---
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]
--- Content provided by FirstRanker.com ---
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
--- Content provided by FirstRanker.com ---
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]
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTUH MCA 1st Sem Last 10 Years 2023-2013 Question Papers R20-R09 || Jawaharlal nehru technological university