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

POP Question Bank

The document is a remedial assignment for BMS Institute of Technology and Management, detailing various programming tasks in C language. It covers topics such as file types, keywords, operators, control structures, functions, arrays, and structures, along with practical programming exercises. The assignment aims to enhance understanding of C programming concepts through hands-on coding tasks.
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)
88 views4 pages

POP Question Bank

The document is a remedial assignment for BMS Institute of Technology and Management, detailing various programming tasks in C language. It covers topics such as file types, keywords, operators, control structures, functions, arrays, and structures, along with practical programming exercises. The assignment aims to enhance understanding of C programming concepts through hands-on coding tasks.
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/ 4

BMS INSTITUTE OF TECHNOLOGY AND

MANAGEMENT
Avalahalli, Doddaballapur Main Road, Bengaluru - 560064

Remedial Assignment 01
1. List and explain files used in a C program
: Source files, header files, object files, executable files
2. List and explain any five keywords from C language
3. What are identifiers? List rules for forming identifiers.
4. What are different types of constants in C?[Integer,floating,character,string]
5. List and explain operators in C.[Arithmetic, relational, equality, logical, unary,
conditional, bitwise, assignment, comma, sizeof]
6. Explain Operator Precedence and associativity.
7. Explain type conversion and type casting.
8. Demonstrate working of arithmetic operators in C
9. Demonstrate working of relational operators in C
10. Demonstrate working of logical operators in C
11. Demonstrate working of assignment operators in C
12. Demonstrate working of increment/decrement operators in C
13. Demonstrate working of ternary operator in C
14. Demonstrate working of bitwise operators in C
15. Write a C program to find the bigger of two numbers using ternary operator.
16. Demonstrate working of sizeof( ) operator in C
17. Write a C program to find the sum of two numbers
18. Write a C program to find the area of a rectangle
19. Write a C program to find Simple Interest
20. Write a C program to swap two numbers
21. Write a C program to swap two numbers without using a third variable
22. Write a C program to check voting eligibility of a person using simple if /if-else
23. Write a C program to check whether a given number is positive,negative using simple
if/if-else
24. Write a C program to check whether a given number is odd or even using simple if/if-else
25. Write a C program to find bigger of 2 numbers using simple if/if-else
26. Write a C program to find largest of 3 numbers using simple if/if-else
27. Write a C program to find largest of 3 numbers using nested if
28. Write a C program to simulate the operations of a calculator using switch statement
29. An electricity board charges the following rates for the use of electricity:
For the first 200 units 80 paise per unit
For the next 100 units 90 paise per unit
Beyond 300 units Rs.1 per unit
All users are charges a minimum of Rs.100 as meter charge.
If the total amount is more than Rs.400, then an additional surcharge of 15% of
the total amount is charged.
Write a program to read the name of the user, number of units consumed and print
out the charges.
30. A transport company charges Rs.500/- for an individual from Bangalore to Mysore. A
discount of 50% is given for children whose age is less than equal to 6 years and a
discount of 40% is given to senior citizens whose age is greater than or equal to 60 years.
The luggage charges are as follows
Upto 10kgs, Free
For the next 20kgs, Rs.8 per kg
Anything beyond 30kgs, Rs.5 per kg
Write a C program to calculate the ticket charges of an individual based on his
age and weight of his luggage.
31. Write a C program to compute the roots of a quadratic equation by the accepting the
coefficients.
32. Write a program to display first 'n' natural numbers using while statement
33. Write a program to find the sum of first 'n' natural numbers using while statement
34. Write a program to find factorial of a given number using while statement
35. Write a program to compute the sum of series 1 + X + X 2 + X3 + X4 + ...... + Xn using
while statement
36. Write a C Program to find the reverse of a positive integer and check for palindrome or
not using while statement
37. Write a C Program to find GCD and LCM of two numbers using Euclids algorithm using
while statement
38. Write a C Program to find the square root of a given number N using while statement
39. Write a C program to check whether a given number is prime or not using for statement
40. Write a C program to print Fibonacci series using for statement
41. Write ‘C’ programs to add two numbers using all 4 categories of functions
1) Functions with no arguments and no return values
2) Functions with no arguments but a return value
3) Functions with arguments and no return value
4) Function with arguments and a return value
42. Write a C program using functions to check whether the given number is prime or not.
43. Define an array. How to initialize one-dimensional array? Explain with suitable
examples.
44. Write a C program to sort the given array elements in Ascending order.
45. How to declare and initialize a Two-dimensional array? Discuss with examples
46. Write a C program to print the sum of diagonal elements of 2-D matrix.
47. Write a C program to multiply two matrices of different order.
48. Write a C program to read and display a 3 by 3 matrix.
49. Write a C program to add 2 matrices of size n by n.
50. Define recursive function.

a) Write a c program to find the factorial of a given number using a recursive


function.
b) Write a c program to generate Fibonacci series for n terms using a
recursive function.

51. Illustrate string manipulation library functions with their syntaxes and example.
52. Develop a program (i) To check whether a string is a palindrome or not.(ii) To find the
length of the string.
53. What is a pointer? Describe how the pointer variable is declared and initialized.
54. Construct a program in C to pass arguments to a function using pointers.
55. What is structure? Explain the difference between structure and union with an example.
56. Construct a c-program using structures to read, write, compute average -marks and
display the students scoring above and below the average marks for a class of N students.
57. What are files? Explain the different file operations in the c-program.
58. Make use of files in the C-program to copy a text file to another,and read both the input
file name and target file name.
59.

You might also like