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 ---
R13
B.Tech I Year (R13) Supplementary Examinations December/January 2014/2015
PROGRAMMING IN C & DATA STRUCTURES
(Common to CE, ME, EEE, ECE, EIE, IT and Ch.E)
Time: 3 hours
--- Content provided by FirstRanker.com ---
Max. Marks: 70
PART - A
(Compulsory Question)
*****
1 Answer the following: (10 X 02 = 20 Marks)
--- Content provided by FirstRanker.com ---
- Write the syntax of conditional operator and explain its operation with an example.
- Define flowchart. Describe the symbols used for representing reading and decision making statements.
- What is the difference between getchar() & gets() and putchar() & puts()?
- With an example distinguish between break and continue statement.
- What is the output of the following program:
--- Content provided by FirstRanker.com ---
#include<stdio.h>
Void main()
{ int a=10,b=30,c=0;
c= a++;
c=++b;--- Content provided by FirstRanker.com ---
printf("\nc=%d",c);
printf("\na=%d,\tb=%d",a--,b);
printf("\na=%d,\tb=%d",a,--b);
} - What is the purpose of strstr()? Give its syntax.
- List the operations performed on a file.
- Write the output for the following program:
#include<stdio.h>
main()
{--- Content provided by FirstRanker.com ---
int p=4;
int *pt;
int **tp;
clrscr();
pt=&p;--- Content provided by FirstRanker.com ---
tp=&pt;
printf(“p=%d, pt=%d.tp=%d",*pt,p,*(*tp));
} - Define Queue. List the major operations of the queue.
- Write the postfix and prefix notations for the following expression: A/B*C+D*E-A*C.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B
(Answer all five units, 5 X 10 = 50 Marks)
UNIT - I
2 Explain the phases of the software development life cycle in detail with a neat diagram.
OR
--- Content provided by FirstRanker.com ---
3 Explain various operators in C with suitable examples.
UNIT - II
4 (a) Differentiate between elseif and switch statements with examples.
(b) What is recursion? What are its advantages?
OR
--- Content provided by FirstRanker.com ---
5 (a) What is a Bug? Explain the techniques used for debugging.
(b) Why should we avoid using goto statement in programming? How it is different from continue statement?
Explain with examples.
Contd. in page 2
--- Content provided by FirstRanker.com ---
Page 1 of 2
FirstRanker's choice
R13
UNIT - III
6 (a) What are the different storage classes in C? Explain.
--- Content provided by FirstRanker.com ---
(b) Write a C program to add two matrices.
OR
7 Write a C program to sort a list of names.
UNIT - IV
8 (a) What are compiler directive statements? List and define the preprocessor statements in C.
--- Content provided by FirstRanker.com ---
(b) Write a C program to copy the contents of one file to another.
OR
9 (a) Explain various operations on pointers with examples.
(b) What are the bitwise operations? Explain with examples.
UNIT - V
--- Content provided by FirstRanker.com ---
10 (a) List and explain the operations on stack.
(b) Write the algorithm for evaluation of postfix expression.
OR
11 Implement queue using linked list.
*****
--- Content provided by FirstRanker.com ---
Page 2 of 2
--- 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