Answer:
a.
++score = score + 1
Explanation:
First you have to understand the increment operator;
There are three possible ways to increment the value of variable by 1.
1. <u>post increment</u>
syntax:
name++
it using in expression first then increase the value by 1.
2. <u>Pre increment</u><u> </u>
syntax:
++name
it increase the value by 1 before it using in expression.
3. simple method
name = name +1
In the question,
option 1: ++score = score + 1
it increase the value of score by 2 because their are two increment is used first for (score + 1) and second ++score.
Therefore, the correct option is a.
Answer:
Functional requirements usually define if/then behaviours and include calculations, data input, and business processes. Functional requirements are features that allow the system to function as it was intended. Put another way, if the functional requirements are not met, the system will not work.
Explanation:
Answer:
The code to this question as follows:
Code:
if(x < y) //if block that check value of x less then value of y
{
if(x<z) // inner if block that check value of x less then value of z
{
min = x; //assign value of x in min variable
}
else // inner else block when condition is false
{
min = z; //assign value of z in min variable
}
}
else //outer else block
{
if(y<z) //if block to check value of variable y is less then value of z
{
min = y; //assign value of y in min variable
}
else //else block
{
min = z; //assign value of z in min variable
}
}
Explanation:
In the given question it is defined, that an integer variable " x, y,z, and min" is declared, in which variable "x,y, and z" value is defined, and the variable is used to assign a big value.
- To check the biggest value we use the if-else statement in which, and if block check value of x is less than then the value of y if this condition is true so, inside this another if block declares, that will check if the value of x is less then z. if this is true, it will assign the value of x in min variable else it will assign the value of z in min.
- In the outer else part, another conditional block has used, that checks if the value of y is less than then the value of z if it is true, it assigns the value of y in min else it will assign the value of z in min.