1.

What would be the value of 'a':

a. int a = 10/45*23%45/(45%4*21)

b. float a = 10+45.0*23-45+(4*21.0)

2.

True or false (0 or not):

a. 4>5 && 5>4

b. 4>5 || 5>4

c. (232+23*1233) || 0

d. (232+23*1233) && 0

3.

If a is 15, then what would be the value of:

printf("%d",++a);

printf("%d",a++);

printf("%d",--a);

printf("%d",a--);

4.

What would be the output of:

printf("%d\n",1==5==5);

5.

What is the error in:

int a;

3=a

1.

Length and breadth of a rectangle are 5 and 7 respectively. Write a program to calculate the area and perimeter of the rectangle.

2.

Write a program to input the value of the radius of a circle from keyboard and then calculate its perimeter and area.

3.

Write a program to enter a 4 digit number from keyboard. Add 8 to the number and then divide it by 3. Now, the modulus of that number is taken with 5 and then multiply the resultant value by 5. Display the final result.

4.

Now, solve the above question using assignment operators (eg. +=, -=, *=).

5.

Enter two numbers from keyboard. Write a program to check if the two numbers are equal.

6.

Write a program to enter the values of two variables 'a' and 'b' from keyboard and then check if both the conditions 'a < 50' and 'a < b' are true.

7.

Now solve the above question to check if atleast one of the conditions 'a < 50' and 'a < b' is true.

8.

If the marks of Robert in three subjects are 78,45 and 62 respectively (each out of 100 ), write a program to calculate his total marks and percentage marks.

9.

Write a program to enter the values of two variables from the keyboard and then interchange the values of the two variables. E.g.-

If entered value of x is 5 and y is 10 then

**printf("%d %d",x,y )**

should print**10 5**.

If entered value of x is 5 and y is 10 then

should print

10.

Take input of some length in meter and covert it to feet and inches.

11.

Write a program to convert Fahrenheit into Celsius.

12.

The total number of students in a class are 45 out of which 25 are boys. If 80% of the total students secured grade 'A' out of which 15 are boys, then write a program to calculate the total number of girls getting grade 'A'.

1.

2.

For example, if he entered number is 5696, then the displayed number should be 7818.

3.

INPUT : 132 OUTPUT : 6

4.

INPUT : 132 OUTPUT : 231