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 ---
R15
B.Tech I Year I Semester (R15) Regular & Supplementary Examinations December 2017
COMPUTER PROGRAMMING
(Common to CE, EEE, CSE, ECE, ME, EIE and IT)
Time: 3 hours
--- Content provided by FirstRanker.com ---
PART - A | Max. Marks: 70 |
(Compulsory Question)
Answer the following: (10 X 02 = 20 Marks)
- Differentiate between algorithm and program.
- What is the main difference between variable and constant? List any two constants used in C.
- Explain pointer to an array with an example.
- Define break and continue statements along with their syntax.
- What is meant by storage class of variable?
- What is pointer? Give its General form.
- Write any two differences between union and structure.
- What is the use of typedef?
- What is a pre-processor?
- What role does the fseek() plays and how many arguments does it Have?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B
(Answer all five units, 5 × 10 = 50 Marks)
UNIT - I
--- Content provided by FirstRanker.com ---
- What is an Algorithm? Write an algorithm to compute factorial of a number n where n ≥ 0.
OR
Explain the following operators: (i) Arithmetic operator. (ii) Relational operator. (iii) Logical operator. (iv) Increment & decrement operator. (v) Conditional operator.
NIT-II
- What do you mean by a loop? Explain the difference between the do loop, while loop, and for loop with the help of an example.
OR
--- Content provided by FirstRanker.com ---
- (a) Write a C function for searching an element in an array of size N. Assume that elements in array are stored in ascending order. (b) Explain the declaration int (*p (char *a))[10].
UNIT - III
- What is meant by the scope of variables and summarize types of storage class in C?
OR
- Write a program to assign any number at random to an integer variable k and display the same through pointer.
--- Content provided by FirstRanker.com ---
UNIT - IV
- What is the difference between a structure declaration and a structure initialization?
OR
- Define a function & explain why function prototype is essential.
UNIT - V
--- Content provided by FirstRanker.com ---
- Write different built-in (library) functions provided by 'C' language for handling I/O operations on files.
OR
- What are the features of C preprocessor? Give the differences between macros and 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