19AES0501 - Poblem Solving and Programming1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Hall Ticket No

Subject Code: 19AES0501 AK19


B.Tech I Year I Semester (AK19) Supplementary Examinations October/ November 2020
PROBLEM SOLVING AND PROGAMMING
(Common to CE, EEE, ME, ECE and CSE)
Time: 3 hours Max. Marks: 70
----------------------------------------------------------------------------------------------------------------------------------
PART – A
(Compulsory Question)
1. Answer the following: (10 X 02 = 20 Marks)
a. Differentiate between algorithm and pseudo-code?
b. Write the steps for converting algorithm into program?
c. Write an algorithm to find the factorial of a given number?
d. What is top-down design in problem solving?
e. What is the difference between break and continue control statements?
f. What are the relational operators in C?
g. What is pointer to pointer?
h. Illustrate with an example, the declaration and initialization of two dimensional array?
i. What is the difference between gets() and scanf() functions?
j. Write the syntax to declare an array of structures?

PART – B
(Answer all five units, 5 X 10 = 50 Marks)
Bloom’s
Marks CO PO
Level
UNIT-I
2. (a) What is a Flowchart? List and explain the various symbols
5 CO3 PO1 L1
used in flowchart?
(b)What is structured programming? What are the merits and
5 CO2 PO2 L1
demerits of structured programming?
OR
3. (a) Discuss about classification of programming languages? 5 CO2 PO1 L2
(b) Write an algorithm and flowchart to find the area and
5 CO3 PO2 L3
circumference of a circle?
UNIT-II
4. (a) Write an algorithm to generate the Fibonacci series up to a
5 CO3 PO2 L3
given range?
(b) Explain in detail about the problem solving steps? 5 CO3 PO2 L2
OR
5. Write an algorithm and flowchart to compute sine series up to n
10 CO3 PO2 L3
terms?

Page 1 of 2
Subject Code: 19AES0501 AK19
UNIT-III
6. (a) Explain about the Logical and bitwise operators available in
5 CO4 PO2 L2
C programming?
(b) Discuss about formatted input and output in C? 5 CO4 PO2 L2
OR
7. (a) What do you mean by a loop? Differentiate between do-while
5 CO4 PO2 L4
and while loops?
(b) What is recursion? Write a recursive function to find the gcd
5 CO4 PO2 L1
of two numbers?
UNIT-IV
8. (a) What is an array of pointers and pointer to an array?
5 CO4 PO2 L2
Summarize the difference between both of them?
(b) Write a C program to find the position of a smallest and
5 CO6 PO2 L3
largest number in an array?
OR
9. (a) What is a pointer? Discuss about pointer arithmetic? 5 CO4 PO2 L2
(b) Write a C program to remove the duplicate elements from an
5 CO4 PO2 L3
ordered array?
UNIT-V
10. Write a C program that performs binary search on sorted array of
10 CO6 PO2 L5
elements and trace the program with an example?
OR
11. (a) Write the differences between structure and union with an
5 CO4 PO2 L4
example?
(b) What is a self-referential structure? Write a C program to
5 CO4 PO2 L6
create a simple linked list?

--------END OF QUESTION PAPER--------

Course Outcomes:
1. Construct his own computer using parts.
2. Recognize the importance of programming language independent constructs
3. Solve computational problems
4. Select the features of C language appropriate for solving a problem
5. Design computer programs for real world problems
6. Organize the data which is more appropriated for solving a problem

Bloom’s Levels:
L1: Remember, L2: Understand, L3: Apply, L4: Analyze, L5: Evaluate, L6: Create

Page 2 of 2

You might also like