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: 13A12101
--- Content provided by FirstRanker.com ---
B.Tech I Year (R13) Supplementary Examinations December 2019
PROGRAMMING IN C & DATA STRUCTURES
(Common to CE, ME, EEE, ECE, EIE & IT)
Time: 3 hours
Max. Marks: 70
--- Content provided by FirstRanker.com ---
PART - A
(Compulsory Question)
Answer the following: (10 X 02 = 20 Marks)
- What are the steps in development of a program?
- Classify the programming languages.
- Write a C program which reads and prints text using gets and puts.
- What is the use of break and continue statement in C language.
- Give the syntax of any two string library functions.
- Write a C function to do linear search.
- What is dynamic memory allocation? Write the syntax of dynamic memory allocation functions in C.
- What are bit fields? What is their use?
- Give the definition of stack along with operations that can be performed on it.
- Evaluate the postfix expression: 2 5+8*7/.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B
(Answer all five units, 5 X 10 = 50 Marks)
--- Content provided by FirstRanker.com ---
UNIT - I
- (a) Explain the top-down approach for solving problems.
(b) What is the difference between constant and variable? Give examples.
(c) Write algorithm for generating prime numbers between 1 and n.
OR - (a) What are the operators supported by C language? What is their precedence and associativity?
(b) What is the use of conditional operator? Illustrate with an example.
--- Content provided by FirstRanker.com ---
UNIT - II
- (a) How do you convert for statement into while statement? Explain with an example.
(b) Write a C program to add even numbers between 1 and n.--- Content provided by FirstRanker.com ---
(c) What is recursion? Write a recursive function to calculate the factorial of a given number 'n'.
OR - (a) How the switch statement works. Illustrate with an example.
(b) How reading and printing are done using scanf and printf? Illustrate with an example.
UNIT - III
--- Content provided by FirstRanker.com ---
- (a) Write a C program to reverse the elements of an array.
(b) Write an algorithm to sort the elements using exchange sort.
OR - (a) Write a C function to remove duplicates from an array of elements.
(b) What are the storage classes supported by C language?
--- Content provided by FirstRanker.com ---
UNIT - IV
- (a) What is the difference between structure and union? Explain with an example.
(b) How to pass structures to functions? Illustrate with an example.
OR - (a) Discuss the functions supported by C language for reading and writing files.
--- Content provided by FirstRanker.com ---
(b) What is pointer? How do you declare pointers? How do you pass pointers to functions?
UNIT - V
- (a) What are the different ways of representing expressions? Illustrate with examples.
(b) How do you implement multiple stacks?
OR - (a) What is circular queue? How do you implement a circular queue?
(b) What is data abstraction?
--- Content provided by FirstRanker.com ---
--- 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