Question Bank BPOPS203
Question Bank BPOPS203
Question Bank BPOPS203
Module 1
4. Explain Input and Output statements and their syntax in the C programming language. Write a
C program to read the radius and print the area of a circle.
5. Write a C program to compute simple interest. Draw the flowchart for the same.
6. Define a variable. Explain how variables are declared with syntax in C Programming
language.
7. Define computer. Describe the various types of computers based on speed, memory and cost.
9. Explain the structure of c program in detail. Write a sample program to demonstrate the
components in the structure of C program.
10. Explain (i) Keywords (ii) Identifiers (iii) Constants (iv) Data types.
Module 2
2. Identify all conditional control statements used in C. Illustrate the usage of any two of these
statements with appropriate syntax and examples.
4. Compute the roots of a quadratic equation by accepting the coefficients. Print appropriate
messages.
5. Write a C program that reads from the user an arithmetic operator and two operands. Perform
the corresponding arithmetic operation on the operands using switch statement.
6 Differentiate between Typecasting and Type conversion with example.
8. 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 with appropriate messages.
10 . ) Write a C Program to display the following by reading the number of rows as input,
1
121
12321
1234321
--------------------------- n th row
11. With an example explain else if ladder and nested if-else statement.
12. Explain the working of goto statement in C programming with suitable example.
13. Explain the working of continue statement in C programming with suitable example
Module 3
1. Examine the concept of functions in C programming. Illustrate the syntax for function
declaration, function call, and function definition with an example.
2.Analyze the concept of arrays in C programming. Demonstrate with a detailed example how to
declare and initialize a one-dimensional array.
5. What are the different operations that can be performed on arrays? Describe how to perform
each of these operations.
12. Write a C Program to calculate the sum of first N natural numbers using recursion.
14. Write a C program to implement Bubble sort technique (ascending order) and trace the
program for the following input: 58 42 10 25 60.
15. Define Array. How 1Dimension integer array is represented in memory? with the help of
suitable example demonstrate the initializing the array elements
Module 4
1. Define String and explain how String is declared in C. Discuss different ways of reading and
writing a string.
3. Define Pointer. Show how pointer variables declared and initialized with example.
4. Show the memory representation of array of strings and explain the following with respect to
array of strings:
a. Array of String Declaration
b. Array of String Initialization.
5. List any 4 String handling functions in C and explain them with example for each.
9. Write functions to implement string operations such as compare, concatenate, and find string
length.
10. What is String? Explain the declaration and initialization of a string with example.
11. Develop a program using pointers to compute the sum, mean and standard deviation of all elements
stored in an array of N real numbers.
12. Write a C code for the following. (i) Extracting a Substring from Left (ii)Reversing a string
19. List the operations of a string. Explain any two operations with suitable example
Module 5
1.Show how Structure is declared and discuss the importance of typedef with respect to
structures.
2. Explain the following with respect to structures with example for each:
a. Structure variable declaration
b. Structure variable initialization
c. Accessing members of structures
3. Develop a program to Implement structures to read, write and compute average- marks of the
students, list the students scoring above and below the average marks for a class of N students.
6. Define a structure by name DoB consisting of three variable members dd, mm and yy of type integer.
Develop a C program that would read values to the individual member and display the date in mm/dd/yy
form.
11. Write a C program to swap two integers without using temporary variable
Important note: Along with these questions you should study question bank of all the 3 internals and
all the 12 lab programs without fail.