Beruflich Dokumente
Kultur Dokumente
4. a) Given a number, write a program using while loop to reverse the digits of the number.
For e.g. 12345 should be written as 54321. [5]
b) Describe in detail the above program execution steps? [5]
5. Differentiate between else-if ladder and switch statement with example program? [10]
Prepared by: C Sudheer Kumar, P. Veera Prakash, G Chinna Pullaiah, P. Manasa , B. Sreedhar - Dept. of CSE
--------------------------------
SET - 1
1. a)What is a Flowchart? Explain the different symbols used in a Flowchart? [6]
b) Write an Algorithm and draw a Flowchart to find maximum of two numbers? [4]
4. a) Given a number, write a program using while loop to reverse the digits of the number.
For e.g. 12345 should be written as 54321. [5]
b) Describe in detail the above program execution steps? [5]
5. Differentiate between else-if ladder and switch statement with example program? [10]
Prepared by: C Sudheer Kumar, P. Veera Prakash, G Chinna Pullaiah, P. Manasa , B. Sreedhar - Dept. of CSE
SRINIVASA RAMANUJAN INSTITUTE OF TECHNOLOGY
(Affiliated to JNTUA & Approved by AICTE)
B. Tech I Year I Semester (R15) Mid-I Descriptive Examinations Sept2016
Computer Programming (15A05101)
Time: 90 Minutes (Common to All Branches) Max Marks: 30
Answer any three Questions. Each question carries 10 marks .
SET -2
1. a) Define Algorithm? What are the characteristics that any algorithm should satisfy? [2 + 2]
b) Write an Algorithm and draw a Flowchart to find the product of two numbers? [6]
Prepared by: C Sudheer Kumar, P. Veera Prakash, G Chinna Pullaiah, P. Manasa , B. Sreedhar - Dept. of CSE
-------------------------------------
SET -2
1. a) Define Algorithm? What are the characteristics that any algorithm should satisfy? [2 + 2]
b) Write an Algorithm and draw a Flowchart to find the product of two numbers? [6]
Prepared by: C Sudheer Kumar, P. Veera Prakash, G Chinna Pullaiah, P. Manasa , B. Sreedhar - Dept. of CSE