Answer:
10
Explanation:
num1=3 and num2=2
num3=myproc(num1)+myproc(num2)
myproc(num1) results 6
myproc(num2) results 4
when we add both e get 10
Answer:
C. Symptoms of malware mutation
Explanation:
They are signs that could indicate that ones system is infected by virus.
Such signs includes:
1.Slow booting or startup.
2.Low space storage.
3.Blue screen of death.
4.Slow Internet performance.
5.Sending of spam messages.
6.Disabled security.
7.Browsing error.
8.Pop-up messages.
9.Renaming of files.
10.Loss of certain files, music, messages, etc.
Answer:
The expressions in each part of an AND or OR expression use <u>Short Circuit</u> evaluation; that is, they are evaluated only as much as necessary to determine whether the entire expression is true or false.
Explanation:
Logic operations follow different type of evaluation methods that can be short circuit or open circuit evaluation. In short circuit evaluation if first operand of the expression is true or false in OR or AND operation respectively, the result will found as true or false without checking the second operand of the expression. This is called Short Circuit Evaluation.
In OR operation, If first operand is true it means that the result of the expression is true without knowing that the other operand is true or false. In AND operation, If the first operand is False, the result will found as False without knowing that whether the 2nd operand is true or false.
This Mechanism is called Short Circuit Evaluation.
Answer:
if ( name1 > name2) {
first = name1;
} else {
first = name2;
}
Explanation:
First you need take a decision for that reason you need and if - else structure to decide if asign the variable name1 or the variable name2 to the result. Later you can use an > or < to compare two strings because it use the ASCII code to compare wich one is larger than another.
if ( name1 > name2) {
first = name1;
} else {
first = name2;
}
Answer:
breaking a problem into smaller parts
Explanation:
In language of computer science, decomposition is the process in which complex problems are divided into simpler parts. These simpler parts helps in the solving of the complex problems. They are made easier and comprehensible for the user to understand. Each simple part is further analyzed separately and the solution of the complex issues are derived. The process becomes lengthy but the solution is found.