Sie sind auf Seite 1von 2

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 - 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]

2. a) Explain the only ternary operator available in ‘C’? [4]


b) Write a C program to find maximum of two numbers and describe in detail the program
execution steps? [6]

3. a) Define Expression? Explain briefly the arithmetic operators in C? [5]


b) Write a C program to perform arithmetic operations and describe in detail the program
execution steps? [5]

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 - 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]

2. a) Explain the only ternary operator available in ‘C’? [4]


b) Write a C program to find maximum of two numbers and describe in detail the program
execution steps? [6]

3. a) Define Expression? Explain briefly the arithmetic operators in C? [5]


b) Write a C program to perform arithmetic operations and describe in detail the program
execution steps? [5]

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]

2. List different categories of C operators based on their functionality? Give examples? [6 + 4]

3. a) Explain different types of Constants in C with examples? [5]


b) Write a C program to find the area of a Circle and describe in detail the program execution
steps? [5]

4. a) Describe in detail the execution of for statement with example? [5]


b) Write a C program to check the given number is prime number or not and describe in
detail the program execution steps? [5]

5. Differentiate between while and do-while 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]

2. List different categories of C operators based on their functionality? Give examples? [6 + 4]

3. a) Explain different types of Constants in C with examples? [5]


b) Write a C program to find the area of a Circle and describe in detail the program execution
steps? [5]

4. a) Describe in detail the execution of for statement with example? [5]


b) Write a C program to check the given number is prime number or not and describe in
detail the program execution steps? [5]

5. Differentiate between while and do-while with example program? [10]

Prepared by: C Sudheer Kumar, P. Veera Prakash, G Chinna Pullaiah, P. Manasa , B. Sreedhar - Dept. of CSE

Das könnte Ihnen auch gefallen