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
B.Tech I Year I Semester (R15) Regular & Supplementary Examinations December 2016
--- Content provided by FirstRanker.com ---
COMPUTER PROGRAMMING
(Common to CE, EEE, CSE, ECE, ME, EIE and IT)
Time: 3 hours
Max. Marks: 70
PART - A
--- Content provided by FirstRanker.com ---
(Compulsory Question)
- Answer the following: (10 X 02 = 20 Marks)
- Define precedence and order of evaluation.
- List the importance of Flowchart.
- Write syntax of If-else statements.
- How one Dimensional array is initialized?
- Discuss the problems associated with pointers.
- Define type qualifiers.
- Define function prototype. Give the general syntax of function prototype.
- Why do we need structures?
- What is the problem with getchar ()?
- Define Stream. List different types of Streams.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B
(Answer all five units, 5 X 10 = 50 Marks)
UNIT - I
--- Content provided by FirstRanker.com ---
- (a) Write an algorithm to find the distance between two points in plane.
(b) With an example, explain the structure of C program.
OR - (a) Explain the bitwise operators and relation operators available in C program.
(b) Evaluate the following expressions:--- Content provided by FirstRanker.com ---
(i) a*(3+b)/2-c++ *b where a=3,b=4 and c=5
(ii) !(4+5*0>=6-4)
UNIT - II
- (a) Explain switch case statement with an example program.
(b) Write a C program to check whether a given number is Palindrome or not.--- Content provided by FirstRanker.com ---
OR - (a) Explain for loop statement with syntax with an example.
(b) Define an array. Write a program to find the largest and smallest element in a given array.
UNIT - III
- (a) Define Pointer. Write a C program to find the sum of the all elements in given array using pointers.
--- Content provided by FirstRanker.com ---
(b) Define scope. Briefly explain the scope, life time and visibility of Identifier.
OR - (a) List the different storage classes in C and explain each one of them.
(b) Write a C program to exchange the value of two integers using call by reference.
UNIT - IV
--- Content provided by FirstRanker.com ---
- (a) Define structures. Write a C program using functions to return the sum of two complex numbers passed as parameters.
(b) Explain enumerated data types with an example.
OR - (a) Define union. Differentiate between union and structures.
(b) With an example program, explain structure within structure.
--- Content provided by FirstRanker.com ---
UNIT - V
- (a) Explain fprintf() and fscanf() functions with an example program.
(b) Define Preprocessor directives. Discuss Marco replacement with an example.
OR - (a) Write a C program that reads characters from the keyboard and writes them to a disk file until the user types a dollar sign.
--- Content provided by FirstRanker.com ---
(b) What is Flushing a Stream? Discuss function like Macro With an example.
FirstRanker's choice
Code: 15A05101
--- 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
--- Content provided by FirstRanker.com ---