FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download JNTUA B.Tech 1-2 R15 2019 June 15A05101 Computer Programming Question Paper

Download JNTUA (JNTU Anantapur) B.Tech R15 (Bachelor of Technology) 1st Year 2nd Semester (1-2) 2019 June 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

This post was last modified on 11 September 2020

--- Content provided by FirstRanker.com ---

COMPUTER PROGRAMMING
(Food Technology)

Time: 3 hours Max. Marks: 70

--- Content provided by‍ FirstRanker.com ---

PART ? A
(Compulsory Question)

*****
1 Answer the following: (10 X 02 = 20 Marks)

--- Content provided by‌ FirstRanker.com ---

(a) Differentiate between hardware and software with examples.
(b) List out relational and logical operators.
(c) Give the syntax of switch statement with example.
(d) Write any two initializations of arrays.
(e) What is a pointer? Differentiate between ? and & with pointers.

--- Content provided by⁠ FirstRanker.com ---

(f) What are the advantages of call by reference?
(g) What are command line arguments?
(h) What is enumerated data type? Give an example.
(i) Write the modes and their meaning of opening a file.
(j) What is the use of ? define preprocessor directive? Give an example.

--- Content provided by‍ FirstRanker.com ---


PART ? B
(Answer all five units, 5 X 10 = 50 Marks)

UNIT ? I

--- Content provided by‍ FirstRanker.com ---


2 Discuss the advantages of algorithms and flowcharts. Develop a flowchart for finding largest of the
given ?n? elements.
OR
3 Explain the precedence and order of evaluation of operators. Compute the result of following

--- Content provided by​ FirstRanker.com ---

expressions:
(a) 5/8 ? (7 + 4).
(b) 5 % 8 ? (7 - 4).

UNIT ? II

--- Content provided by‍ FirstRanker.com ---


4 Write the syntax of if, nested if and if-else-if ladder. Write a C program to check whether a given
number is odd or even.
OR
5 Discuss how do you pass single-dimensional array to a function. Write a function to return the sum

--- Content provided by‍ FirstRanker.com ---

of the elements. Which are passed in an array to the function?

UNIT ? III

6 Discuss the relation between pointers and array. Write a C program to find the largest elements in

--- Content provided by⁠ FirstRanker.com ---

the array elements using a pointer.
OR
7 Differentiate between call by value and call by reference. Demonstrate the difference by writing two
functions to swap two elements.

--- Content provided by‌ FirstRanker.com ---

Contd. in page 2




--- Content provided by‌ FirstRanker.com ---




Page 1 of 2

--- Content provided by​ FirstRanker.com ---

R15
FirstRanker.com - FirstRanker's Choice

Code: 15A05101

--- Content provided by⁠ FirstRanker.com ---


B.Tech I Year II Semester (R15) Regular Examinations May/June 2019
COMPUTER PROGRAMMING
(Food Technology)

--- Content provided by FirstRanker.com ---

Time: 3 hours Max. Marks: 70

PART ? A
(Compulsory Question)

--- Content provided by​ FirstRanker.com ---

*****
1 Answer the following: (10 X 02 = 20 Marks)
(a) Differentiate between hardware and software with examples.
(b) List out relational and logical operators.
(c) Give the syntax of switch statement with example.

--- Content provided by‌ FirstRanker.com ---

(d) Write any two initializations of arrays.
(e) What is a pointer? Differentiate between ? and & with pointers.
(f) What are the advantages of call by reference?
(g) What are command line arguments?
(h) What is enumerated data type? Give an example.

--- Content provided by⁠ FirstRanker.com ---

(i) Write the modes and their meaning of opening a file.
(j) What is the use of ? define preprocessor directive? Give an example.

PART ? B
(Answer all five units, 5 X 10 = 50 Marks)

--- Content provided by‌ FirstRanker.com ---


UNIT ? I

2 Discuss the advantages of algorithms and flowcharts. Develop a flowchart for finding largest of the
given ?n? elements.

--- Content provided by‌ FirstRanker.com ---

OR
3 Explain the precedence and order of evaluation of operators. Compute the result of following
expressions:
(a) 5/8 ? (7 + 4).
(b) 5 % 8 ? (7 - 4).

--- Content provided by‍ FirstRanker.com ---


UNIT ? II

4 Write the syntax of if, nested if and if-else-if ladder. Write a C program to check whether a given
number is odd or even.

--- Content provided by‍ FirstRanker.com ---

OR
5 Discuss how do you pass single-dimensional array to a function. Write a function to return the sum
of the elements. Which are passed in an array to the function?

UNIT ? III

--- Content provided by‍ FirstRanker.com ---


6 Discuss the relation between pointers and array. Write a C program to find the largest elements in
the array elements using a pointer.
OR
7 Differentiate between call by value and call by reference. Demonstrate the difference by writing two

--- Content provided by‌ FirstRanker.com ---

functions to swap two elements.

Contd. in page 2


--- Content provided by FirstRanker.com ---






--- Content provided by FirstRanker.com ---

Page 1 of 2

R15


--- Content provided by⁠ FirstRanker.com ---


Code: 15A05101



--- Content provided by‌ FirstRanker.com ---

UNIT ? IV

8 What is recursion? Write a recursive function to compute n
th
Fibonacci number.

--- Content provided by​ FirstRanker.com ---

(n
th
Fibonacci number is given by:
f(n) = f(n-1) + f(n-2).
f(0) = 1 f(1) = 1).

--- Content provided by‌ FirstRanker.com ---

OR
9 Differentiate between structures and unions. Write a C program to create a list of students with Roll
No, Name, semester and percentage. Accept Roll No from keyboard, search and display the other
details of the student.

--- Content provided by⁠ FirstRanker.com ---

UNIT ? V

10 Discuss the formulated and unformatted console I/O statements in C with examples.
OR
11 Explain the following file handling functions in C.

--- Content provided by FirstRanker.com ---

(i) Fread.
(ii) Fwrite.
(iii) Fseek.
(iv) Fprintf.
(v) Fscanf.

--- Content provided by‍ FirstRanker.com ---


*****



--- Content provided by⁠ FirstRanker.com ---






--- Content provided by FirstRanker.com ---






--- Content provided by​ FirstRanker.com ---






--- Content provided by⁠ FirstRanker.com ---




Page 2 of 2
R15

--- Content provided by FirstRanker.com ---

FirstRanker.com - FirstRanker's Choice