Download JNTUA (JNTU Anantapur) B.Tech R15 (Bachelor of Technology) 1st Year 2nd Semester (1-2) 2019 Dec Supple 15A05101 Computer Programming Previous Question Paper || Download B-Tech 1st Year 2nd Sem 15A05101 Computer Programming Question Paper || JNTU Anantapur B.Tech R15 1-2 Previous Question Paper || JNTU Anantapur B.Tech ME 1-2 Previous Question Paper || JNTU Anantapur B.Tech CSE 1-2 Previous Question Paper || JNTU Anantapur B.Tech Mech 1-2 Previous Question Paper || JNTU Anantapur B.Tech EEE 1-2 Previous Question Paper || JNTU Anantapur B.Tech ECE 1-2 Previous Question Paper
Code: 15A05101
B.Tech I Year II Semester (R15) Supplementary Examinations December 2019
COMPUTER PROGRAMMING
(Food Technology)
Time: 3 hours Max. Marks: 70
PART ? A
(Compulsory Question)
*****
1 Answer the following: (10 X 02 = 20 Marks)
(a) List the advantages and disadvantages of flowcharts over algorithms.
(b) List out the basic data types and their sizes in C.
(c) Differentiate between while and do-while loop.
(d) List out any four string handling functions in C.
(e) Write the syntax and one example for any two dynamic memory allocation functions in C.
(f) List out the storage classes in C.
(g) Write a recursive function to compute factorial of an integer.
(h) Differentiate between structures and unions.
(i) Write the syntax and one example for any two formatted console I/O statements in C.
(j) Write the syntax of fopen and fclose functions.
PART ? B
(Answer all five units, 5 X 10 = 50 Marks)
UNIT ? I
2 With a neat diagram, explain the software development method.
OR
3 Explain the arithmetic operators in C. Write a C program to test whether a given number is positive
or negative with and without using conditional operator.
UNIT ? II
4 Write the syntax of for, while and do-while loops. Write a C program to print the sum of first n natural
numbers.
OR
5 Discuss two-dimensional array. Write a C program to calculate the sum of two matrices and obtain
the transpose of the resultant matrix.
UNIT ? III
6 What is a pointer? What are the problems with the pointers? Write a C program to print the elements
of a one-dimensional array using pointers.
OR
7 Discuss in detail about the scope of functions with suitable examples.
UNIT ? IV
8 Discuss in brief about the prototype of functions. Write recursive and non-recursive functions in C to
calculate the n
th
Fibonacci number defined below:
?? ( ?? ) = ?? ( ?? ? 2) + ?? ( ?? ? 1), ? ?? ? 2 and ?? (0) = ?? (1) = 1
OR
9 How structures are passed to functions? Discuss bit fields and enumerations in brief.
UNIT ? V
10 Write a C program to open a text file. Read the contents of the file and write the content into a new
file by converting all the lower case letters into upper case letters.
OR
11 Discuss the following pre-processor directives:
(i) #define. (ii) #if. (iii) #else. (iv) #include. (v) #elif.
*****
R15
FirstRanker.com - FirstRanker's Choice
This post was last modified on 11 September 2020