VIVEKANANDHA COLLEGE OF ENGINEERING FOR WOMEN
[AUTONOMOUS INSTITUTION AFFILIATED TO ANNA UNIVERSITY]
Elayampalayam – 637 205. Tiruchengode, Namakkal Dt., Tamilnadu.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
PROGRAMMING FOR PROBLEM SOLVING
Question Bank
Unit I
Part A
1. Define a computer. CO1 K1
Write a pseudocode for a program that calculates the sum of CO1
2. K2
the three numbers.
3. List out the symbols used for flow chart. CO1 K1
4. Compare and contrast Algorithm and Pseudo code. CO1 K2
5. Define an algorithm. CO1 K1
Write the difference between a compiler and an CO1
6. K2
interpreter.
7. Write the purpose of a flowchart in C programming. CO1 K2
8. What are the main components of a computer system? CO1 K1
What is the significance of pseudocode in algorithm CO1
9. K2
development?
10.How is an algorithm different from a flowchart? CO1 K2
Tell the advantages of using hexadecimal over binary in C CO1
11. K1
programming.
12.Identify potential errors in a flowchart for a program CO1 K2
13.Draw a flowchart for Fibonacci of a n number. CO1 K2
Write an algorithm to sort an array of n numbers in ascending CO1
14. K2
order.
15.write pseudocode to verify whether a number is even or odd. CO1 K2
16.List the application of computers. CO1 K1
17.How does algorithm complexity affect program performance? CO1 K2
18.Draw a flowchart to represent the factorial of a n number. CO1 K2
19.Write a simple algorithm to find the largest of three numbers. CO1 K2
20.Convert the octal number 643.22 to binary. CO1 K2
21.Convert the 1F.AA(16) to decimal. CO1 K2
Part B
Sl.No Questions CO KL
1. i)Narrate the basic building blocks of a computer with
neat sketch
(7)
ii) Draw flowchart and Pseudocode for the following:
Accept the name and marks obtained by a student in the
Computer Project. Display the grades as per the table
given below:
(8)
grad
Marks e
CO1 K2
obtained
80% and A
more
60% and B
more but less
than 80%
40% and C
more but less
than 60%
less than 40 Fail
2. i) Write an algorithm to find the roots of the
quadratic equation (7)ii).Write an algorithm and
CO1 K2
pseudocode for finding the sum of N natural numbers
(8)
3. Selvan was playing with a object of random size for
stress relief. Selvan knows that the Length, Width, and
Height of the object. But he would like to know the
CO1 K2
surface area of the object he is playing with. Can you
help him in finding it with the help of Algorithm and
flowchart.
4. (i)Compare and Contrast the working of a compiler and
an interpreter.
(8) CO1 K2
(ii) Write an algorithm and flowchart to find the largest of
three numbers. (7)
5. Summarize guidelines for preparing flowcharts, benefits
and limitations of flowcharts and preparing flowchart for CO1 K3
quadratic equation.
6. (i) Draw a flow chart to find the sum of the series from 1 to
100. (8).
(8)
CO1 K3
(ii) Write an algorithm and give the pseudo code to
guess an integer number in a range.
(7)
7. Explain the different symbols used for flowcharts with
CO1 K3
your example.
8. (i)Construct the flowchart and pseudo code for salary of
an employee. To Read the Basic salary, HRA, TA and DA
(8)
(ii)Compare and Contrast machine language and CO1 K2
Assembly language.(7)
9. Convert each of the following binary numbers to octal,
decimal, and hexadecimal formats.
CO1 K3
i) (111011101)2 (6)
ii) (10101010111.0101)2 (9)
10. Convert each of the following octal numbers to binary,
decimal, and hexadecimal formats.
CO1 K3
i) (3754)8 (6)
ii) (247.136)8 (9)
11. Convert each of the following hexadecimal numbers to
binary, octal, and decimal formats.
CO1 K3
i) (4FB2)16 (6)
ii) (88BA.1F9)16 (9)
Subject incharge HOD/CSE