0% found this document useful (0 votes)
87 views4 pages

Pps Unit 1 No Info

The document contains questions related to programming concepts in C language including data types, operators, input/output functions, algorithms, flowcharts, pseudocode, problem solving steps, and more. There are 25 questions for 4 marks and 25 questions for 12 marks. The questions assess understanding of basic C programming constructs and the ability to solve problems by applying concepts like algorithms, flowcharts and pseudocode.

Uploaded by

Ajmal D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views4 pages

Pps Unit 1 No Info

The document contains questions related to programming concepts in C language including data types, operators, input/output functions, algorithms, flowcharts, pseudocode, problem solving steps, and more. There are 25 questions for 4 marks and 25 questions for 12 marks. The questions assess understanding of basic C programming constructs and the ability to solve problems by applying concepts like algorithms, flowcharts and pseudocode.

Uploaded by

Ajmal D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

lOMoARcPSD|30801605

PPS UNIT 1 - no info

Programming For Problem Solving (SRM Institute of Science and Technology)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Ajmal D ([email protected])
lOMoARcPSD|30801605

PPS - UNIT-1(Question Bank)

4 Marks

1. Comment “C is middle level language”?


2. What is problem solving?
3. What are the six steps of problem solving?
4. Define Algorithm and state the rules for writing an algorithm.
5. Discuss about how the problems can be solved with computers?
6. What is a program?
7. Why is problem analysis important?
8. What are the tools of problem solving available?
9. How do problem-solving tools help in leading to a solution?
10. Why it is important to test a solution before coding it?
11. What is an algorithm? Give the characteristics of the algorithm.
12. What is a flowchart? Give the symbols/shapes used in the flowchart.
13. Define pseudocode and give its importance with an example.
14. Discuss the difficulties with problem solving in detail.
15. Differentiate between constants and variables. Write down the rules for naming
variables.
16. State the use of %d and %f .Write a printf statement in C using the above mentioned
symbols?
17. What is main difference between variable and constant?
18. Explain bitwise left shift operator?
19. Explain the different data types supported in C.
20. Explain primary data types used in C?
21. State the rules for declaring variables in C.
22. Discuss about scope of variables in C.
23. Categorize and explain the various formatted input and output functions in C.
24. Solve the following program and give its output:
#include<stdio.h>
int main( )
{
int a;
float b;
char c;
double d;
printf(“%d\n”,sizeof(a));
printf(“%d\n”,sizeof(b));
printf(“%d\n”,sizeof(c));
printf(“%d\n”,sizeof(d));
return 0;
}
25. Solve the following program and find its output:

#include<stdio.h>
int main ( )

Downloaded by Ajmal D ([email protected])


lOMoARcPSD|30801605

{
printf(“%d”, 4 % 3);
printf(“ %d”, 4 % -3);
printf(“ %d”, -4 % 3);
printf(“ %d”, -4 % -3);
return 0;
}
26. Difference between formatted & unformatted statement ?
27. What is mean by storage class of variable?
28. Solve the following program and find its output:

#include<stdio.h>
int main ( )
{
int x=3,y, z;
z = y = x;
z* = y = x * x;
printf(“x=%d y=%d,z=%d”, x,y,z);
return 0;
}
29. Write a C Program to get Principal, Rate of Interest and No of Years as input from the
user and calculate the simple interest.
30. If a four digit number is input through the keyboard, write a C program to obtain the
sum of the first and last digit of the number.
31. If the total selling price of 15 items and the total profit = 25% is input through the
keyboard, write a C program to find the cost of one item.
32. Explain with example ++i and i++.
33. Solve the following expression using C Programming: (a+b) 2
34. Solve the following program and find its output:

#include<stdio.h>
int main( )
{
int a = 10;
a = a++;
printf(“%d\n”,a);
a = ++a;
printf(“%d\n”,a);
a = a--;
printf(“%d\n”,a);
a = --a;
printf(“%d\n”,a);
return 0;
}

Downloaded by Ajmal D ([email protected])


lOMoARcPSD|30801605

12 Marks:

1) Explain the evolution of programming languages.


2) Explain the various steps involved in problem solving with diagram.
3) Describe the basic structure of C program with an example. Explain in detail.
4) Draw the flowchart and write the algorithm and c code to find the sum and to reverse the
digits of given five digit number.
5) Write an algorithm and draw a flow chart to find the factorial and Fibonacci series of
given number.
6) Analyze the various Storage Classes in C with suitable examples
7) Sketch a flowchart for the roots of a Quadratic equation and write an algorithm for it.
8) Write a note on Algorithm, Flow chart and Pseudocode.
9) Write the algorithm, pseudo code and flowchart for finding the greatest of 3 numbers
10) Write in detail about Constants, Keywords, Variables and identifiers with suitable
examples.
11) The distance between two cities (in km.) is input through the keyboard. Write a C
Program to convert and print the distance in meters, feet, inches and centimeters.
12) Write a C program to get two numbers as input from the user and perform Bitwise AND
and Bitwise OR.
13) Write a C program to calculate the sum of digits of a five digit number.
14) Sketch the various symbols for flowchart and draw a flowchart for checking whether a
given number is +ve, -ve or Zero.
15) Write a C program to find the Perimeter and Area of a rectangle.
16) Kamal’s basic salary in input through the keyboard. His dearness allowance is 30% of
basic salary and house rent is 25% of basic salary. Write a C program to calculate his
gross salary.
17) Write the algorithm, pseudocode and flowchart that takes minutes as input and displays
the total number of hours and minutes
18) If the marks obtained by a student in 6 different subjects are input through the keyboard,
write a C program to find out the aggregate marks and percentage marks obtained by the
student.
19) Explain the scope, lifetime of variable in C with example.
20) Write a C program to convert the temperature from Fahrenheit to Celsius.
21) Explain bitwise operators in C with suitable examples.
22) Write down the algorithm to find the largest number among three given numbers and
outline the steps in the algorithm with the inputs 5, 17, 3.
23) Draw flowchart to compute the salary of an employee in a company. Assume that there
are two types of employees in the company daily wages and regular. Salary is calculated
as number of hours worked* wages per hour for daily wagers and basic pay +(% of DA *
basic pay)/100 + HRA + medical allowance for regular employees. Sketch the flow of
your design for a regular employee with basic pay = 5000, % of DA = 75 % and HRA =
500.
24) Write a C program to get two numbers as input from the user and swap them.
25) Explain in details about operators with an example

Downloaded by Ajmal D ([email protected])

You might also like