02 Operators
02 Operators
(Total 15 questions)
SL Problem statement Difficulty
levels
1. Program that will take two numbers X and Y as inputs, then calculate and print the values *
of their addition, subtraction, multiplication, division (quotient and reminder).
3. Program that will take two numbers (a, b) as inputs and compute the value of the equation *
– (Without using math.h)
5. Program that will increment and decrement a number X by Y. (Use += and -= operators) *
6. Program that will multiply and divide a number X by Y. (Use *= and /= operators) *
7. Program that will declare and initialize an integer and a floating point number. Then it will **
perform floating to integer and integer to floating conversions using
(a) Assignment operation
(b) Type casting
10. Program that will take a, b & c as inputs and decide if the statements are True (1) of False **
(0)
a) ( )
b) ( )
c)
11. Program that will take a, b & c as inputs and decide if the statements are True (1) of False ***
(0)
1) ( )
2) ( )
3) ( )
( )
√
; where 1<= x <=180 [No checking needed]
Program that will take a floating point number X as input and evaluate A,B,C where- **
14. A = Value when X is rounded up to the nearest integer
B = Value when X is rounded down to the nearest integer
C = Absolute value of X
15. Program to find size of int, float, double and char of the system. **