Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u824439088/domains/brandnewday.co.in/public_html/bca/wp-includes/functions.php on line 6131
Home Back

Question:

Given the value of a = 7 and b = 9, what
will be the value of the following ?
(i) b% a;
(ii) b++;
(iii) a > b
(iv) a < b || b < a

Answer:

1. b % a:
Calculates the remainder when b is divided by a.
Given b = 9 and a = 7:
b % a = 9 % 7 = 2
Result: 2


2. b++:

Post-increment operator increments b by 1 after its current value is used.
Initial b = 9, after b++:

Result: b = 10


3. a > b:
Checks if a is greater than b.
Given a = 7 and b = 10:
7 > 10
Result: False


4. a < b || b < a:
Checks if a is less than b OR b is less than a.
Given a = 7 and b = 10:
7 < 10
First condition (7 < 10) is true, so overall result is: True