SPA Revision Questions - Programming Questions
SPA Revision Questions :
1.Problem Definition phase
1
What do you means by a program?
Classify the programming languages?
2
Explain in detailed problem
definition phase? (VIMP)
3
Explain input and output specification with example? (VIMP)
4
Why
using special processing steps in problem
definition phase? Explain with example
5
i. To find first N prime No(+ve no). (VIMP)
ii. To find the given no ODD or even.
iii. To find the second largest number.
What are
the I/P and O/P specification of given problem statements.
2. Algorithm & flowchart
2. Algorithm & flowchart
6
What is an algorithm? Explain types of algorithm with example
(VIMP)
7
Explain steps involved in program development cycle (VIMP)
8
Write a Short
note on Pseudo-code with example
9
Define
flowchart? What is advantage of using flowchart? (VIMP)
10
Define flowchart? Is there limitation of a flowchart? .
11
Write an Algorithm for determining whether a given year is a leap year or not.
(VIMP)
12
Write an Algorithm for converting a value in seconds to hour, minutes
and seconds.
13
Write an Algorithm for finding the second largest number.
14
Draw a Flow-chart for printing the area of a circle
for a given radius.
15
Draw a Flow-chart for computing
the sum of the digits of any given number
16
Draw a Flow-chart for calculating the sum of given N odd numbers.
Introduction of Programming using C
|
||||||
Question
|
||||||
Explain with examples the basic
Data types
in C.
|
(IMP)
|
|||||
Explain diff. Operators in C. explain precedence and associatively of operators.
OR Explain any three
Bitwise operators in c with
examples. (VIMP)
Explain logical operators. Write
a C program to demonstrate the
same. (VIMP)
|
||||||
Explain prefix and postfix operator in C (increment & decrement)
|
||||||
Enumeration Data type. M09
Write a C program to illustrate the use of type casting in C (VIMP)
What is run-time error, logical
error and syntax
error? Why main function
is special in C ?
4&5).Data Input and Output & Control Statements
Explain
format control worlds printf() & scanf( ) function?
Explain different preprocessor directives with example
? D :02,07
M:08
Explain
the following with example : (i) break (ii) continue(iii)go to (VIMP) *
Differentiate between While and Do-while. (VIMP)
Compare
Switch ( ) control statement with if-else if.
Write short notes on if-else ladder
in c.
Explain
the following in context of c
language (VIMP)
i)getch() (ii)getche() (iii)getchar() (iv)putch() (v)putchar()
PROGRAM Control Statements
Write a program to check whether given number is prime number or not and display
respectively. OR Write a program
to print prime numbers from 1 to 200.
Write the C Program
to display EVEN or ODD words for the input of integer no M:08,02
Write a program
to reverse the digits
of a positive integer number
for example, if the number 8735 is entered, the number
displayed should be 5378.
Write a C program
to check if the given no. is “Armstrong Number”. An Armstrong
number of 3 digit is an integer such that sum of the cubes of its digits equals to the no. itself. OR WAP and check with it is Armstrong number?
Write a program to generate Fibonacci series (1, 1, 2, 3, 5……..) for n no. WAP to to calculate
factorial of given number.
WAP To compute Permutation and Combination
WAP to display number
of days in calendar format
of an entered
month of year 2005
Write a program
that calculates the square roots of a quadratic equation.
(VIMP)
Write a program to find the roots of and quadratic
equation of type ax2+bx+c
WAP that simulates a simple calculator. It reads two integers and one character
.if the character
is a+,the sum is printed; if it is a-,the difference is printed ,if it
a*Pattern Problems:
Write A Program To Display Following Pattern (1 Program Asked In Exam) (VIMP) *
1
3 5
7 9 11
13 15 17 19
21 23 25 27 29
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
1 1 1 1 1
2 2 2 2
3 3 3
4 4
5
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
1
1 2 3
1 2 3 4 5
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8 9
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
ABCDE
ABCD
ABC
AB
A
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
1 1 1 1 1
3 3 3 3
5 5 5
7 7
9
ABCDE
ABCD
ABC
AB
A
1
121
12321
1234321
123454321
1
1 2 3 2 1
1 2 3 4 5 4 3 2 1
1 2 3 4 5 6 7 6 5 4 3 2 1
5 4 3 2 1 1 2 3 4 5
4 3 2 1 1 2 3 4
3 2 1 1 2 3
2 1 0 1 2
1 0 1
A B C D C B A
A B C B A
A B A
A
WAP for the Pascal triangle.(dec
2012)
1
11
121
1331
14641
WAP to display following pattern
using nested for loop (may 2010)
P
P Q
P Q R
P Q R S
All the best for SPA
Check out ED Tips and tricks :)
http://enggatkjsce.blogspot.in/2014/06/ed-tips-dimensions-for-orthographic-view.html
http://enggatkjsce.blogspot.in/2014/06/engineering-drawing-tips-orthographic.html
Enjoy !!!
0 comments: