BPOPS 203 Assign 2 (Mod 2 &3)
BPOPS 203 Assign 2 (Mod 2 &3)
BPOPS 203 Assign 2 (Mod 2 &3)
Kumbalgodu, Bangalore-74
DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING
1,2 2
1) Develop a C program that takes three coefficients (a, b, and c) of a quadratic
equation; (ax2 + bx + c) as input and compute all possible roots and print them
1) with appropriate messages.
1,2 2
2) Explain the working of goto statement and continue statement in C with
example.
17) Write the recursive program to find the GCD of two numbers. 4 3
20) How 2D array is represented in memory? Explain with a suitable example. 1,2 3
21) For a array declared as int a[50], compute the address of a[35] if a’s base 3
address is 1000 and word size=2
22) Write a C program to implement Bubble sort technique (ascending order) and 4 3
trace the program for the following input: 58 42 10 25 60
4 3
23) Write a C program to find the product of two given matrix.
24) Explain the declaration and initialization of one dimensional and two- 1,2 3
dimensional arrays with an example.
25) Write a C program to transpose a MxN matrix 4 3