This download link is referred from the post: JNTU Anantapur B-Tech 1-1 last 10 year question papers 2010 -2020 -All regulation- All branches- 1st Year 1st Sem
Firstranker's choice
Code: 15A05101
--- Content provided by FirstRanker.com ---
B.Tech I Year I Semester (R15) Supplementary Examinations June/July 2019
COMPUTER PROGRAMMING
(Common to CE, EEE, CSE, ECE, ME, EIE and IT)
Time: 3 hours
Max. Marks: 70
--- Content provided by FirstRanker.com ---
PART - A
(Compulsory Question)
Answer the following: (10 X 02 = 20 Marks)
- (a) Distinguish between application and system software.
- (b) Identify and eliminate the error present in the statement:
--- Content provided by FirstRanker.com ---
CS > EC ? ANS = CS : ANS = EC - (c) Define an array. Write the formula to find the address of element in 1-D array.
- (d) In how many ways, an array can be initialized? Give example for each.
- (e) List the advantages and disadvantages of pointers.
- (f) In what way call by value mechanism differs from call by reference mechanism?
- (g) Write brief information on importance of Bit Fields.
- (h) How can we declare variable length parameters? Give example.
- (i) Why we need files?
- (j) How can we define global constants? Give example.
--- Content provided by FirstRanker.com ---
PART - B
--- Content provided by FirstRanker.com ---
(Answer all five units, 5 X 10 = 50 Marks)
UNIT - I
- (a) With the help of a neat sketch, explain the software development life cycle.
(b) Write a C program to find whether any given year is a leap year or not.
OR - (a) What is an expression? How many types of expressions are supported by C? Give examples for each.
(b) Describe the different bitwise, increment/decrement and assignment operators with suitable examples.
--- Content provided by FirstRanker.com ---
UNIT - II
- Distinguish between conditional and unconditional jump statements. With the help of flowchart and example, explain the different jump statements that are supported by the language C.
OR - (a) How the for loop differs from while and do while statements?
(b) Write a C program to find the sum of the individual digits of any given number:
(Ex. 4721 = 4 + 7 + 2 + 1 = 14).
--- Content provided by FirstRanker.com ---
UNIT - III
- (a) Write a program using C to interchange two values by using pointers.
--- Content provided by FirstRanker.com ---
(b) Give brief description about the different functions that supports the dynamic memory allocation for variables.
OR - With the help of syntax and example program, explain the various storage specifiers.
UNIT - IV
- Based on return type and arguments, how many types of functions are there? Explain them with an example program.
--- Content provided by FirstRanker.com ---
OR - Define structure. Why we need structures? Explain the nested structure and self referential structures.
UNIT - V
- (a) Give brief description about conditional preprocessors.
(b) Write a C program to count the number of words, white spaces and lines present in a file.--- Content provided by FirstRanker.com ---
OR - (a) Write short notes on file opening modes.
(b) Describe the fprintf() and fscanf() functions.
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTU Anantapur B-Tech 1-1 last 10 year question papers 2010 -2020 -All regulation- All branches- 1st Year 1st Sem