0% found this document useful (0 votes)
21 views2 pages

BPOPS 203 Assign 2 (Mod 2 &3)

The document contains 25 questions related to programming in C language. It covers topics like functions, arrays, loops, operators, sorting and searching algorithms. Students are asked to write programs to solve problems involving quadratic equations, calculators, sorting arrays, matrix operations and more. They are also asked explain concepts like goto, switch, formatted I/O, if-else, bitwise operators, storage classes, recursion, argument passing techniques and more.

Uploaded by

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

BPOPS 203 Assign 2 (Mod 2 &3)

The document contains 25 questions related to programming in C language. It covers topics like functions, arrays, loops, operators, sorting and searching algorithms. Students are asked to write programs to solve problems involving quadratic equations, calculators, sorting arrays, matrix operations and more. They are also asked explain concepts like goto, switch, formatted I/O, if-else, bitwise operators, storage classes, recursion, argument passing techniques and more.

Uploaded by

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

RAJARAJESWARI COLLEGE OF ENGINEERING

Kumbalgodu, Bangalore-74
DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING

Principles of Programming language using C (BPOPS203) Stream-IOT


Assignment-II BT CO

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.

3) Explain switch statement with syntax and example. 1 2

4) Develop a simple calculator program in C language to do simple operations 1 2


like addition, subtraction, multiplication and division. Use switch statement in
your program.
1,2 2
5) Explain with examples formatted input output statements in C.
1,2 2
6)Explain with syntax, if and if-else statements in C program.
7) Demonstrate the functioning of Bitwise operator in C. 1 2

8) Write a C program to find roots of quadratic equation 4 2

9) Illustrate Nested loops in C with suitable example. 1 2

10)What is typecasting and type conversion in C. Give example? 1 2

11) What is a function? what is its importance. 1 3

12) Discuss various scope of variables. 1,2 3

13) Discuss storage classes in C. 1,2 3

14) Explain the working of recursion with suitable 1,2 3


example.
15) Write a c Program to indicate function call, function declaration and return 1 3
statement.
16) i) Write a C program to sort the elements of a given array using bubble sort 1,2 3
ii. Write a C program to read N elements and find the biggest element in the array.

17) Write the recursive program to find the GCD of two numbers. 4 3

18) Explain to categories of argument passing technique with examples. (pass by 1 3


value and pass by reference)
19) i.) Perform Linear search and Binary search on input 10, 20,40,50,70 with 1,4 3
key element 50.
ii.) write a program to perform binary search on a given array.

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

You might also like