Algo Question

You might also like

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

Question Bank - Unit no.

: 1
Program: B.Tech CSE
Course Name: Algorithmic Thinking and Problem-Solving Using C
Course Code: 21BTCS101

Academic year: 2022-23 Sem/Year: I/I


Level A. Easy Questions (2 marks each)
S. No. Questions CO*
Q1 What is Algorithm? 1

Q2 What is program? 1

Q3 What is pseudocode? 1

Q4 Define flowchart. Explain with an example. 1

Q5 Write an algorithm to find sum of three numbers and calculate their average. 1

Q6 Write an algorithm to find area of a circle. 1

Q7 Write an algorithm to find total surface area of a cube. 1

Q8 Write an algorithm to find profit or loss percentage in a transaction. 1

Q9 Write an algorithm to find area of a triangle. 1

Q10 Write an algorithm to find area of a trapezium. 1

Q11 Write an algorithm to input two number and find the greatest among them. 1

Q12 Discuss qualities of a good algorithm. 1

Q13 Write an algorithm to find the greatest number among three numbers. 1

Q14 Write an algorithm to find the smallest number among three numbers. 1

Q15 Write an algorithm to input a number and find whether it is odd or even 1

Q16 Write an algorithm to input a number and find whether it is positive or negative 1
number.
Q17 Write an algorithm to input a number and print its table. 1

Q18 Write an algorithm to input a number and print its message N times. 1

Q19 Write an algorithm to input a number and find its reverse. 1

Q20 Write an algorithm to input a number and check whether it is palindrome or not 1
Level B. Intermediate Questions (5 marks each)
Q21 Define Algorithm. Write an algorithm to find the area and perimeter of a circle 1

Q22 Differentiate between algorithm and program. 1

Q23 Write an algorithm to input a number and find whether it is prime number or not. 1

Q24 Write an algorithm to input a number and find its factorial. 1

Q25 Write an algorithm to input a number N find it’s factors. 1

Q26 Write an algorithm to input a string and find its reverse. 1

Q27 Write an algorithm to input a number check it is palindrome or not. 1

Q28 Write a algorithm to input two characters and check whether they are equal or not. 1

Q29 Write a flowchart to compute addition of given two numbers. 1

Q30 Write a flowchart to compute factors of a number. 1

Level C. Difficult Questions (10 marks each)


Q31 What is pseudocode? Explain with example ,how it is used as a problem solving tool 1
6.
Q32 What is algorithm? Explain features of a good algorithm. Write an algorithm to find 1
Simple Interest.
Q33 Define flow chart. List the symbols used in flow charts. Draw a flow chart to 1
calculate Simple Interest.

Q34 Write an algorithm and draw a flow chart to find the greatest number among three 1
number taken input by the user.
Q35 Write an algorithmand draw a flow chart to input a string and check whether string 1
is palindrome or not.
Q36 Write an algorithm and draw a flow chart to print a menu 1.add 2.subtract 3. 1
Multiply 4. Divide and perform the above arithmetic operation as per the user
choice.

You might also like