Answer:
item based for loop is used to iterate items in a collection .it is useful to apply some operations on item. Index based for loop is used to execute some logic repetitively. While loop also useful to execute a logic repetitively
Explanation:
item based for loop is used to iterate items in a collection .it is useful to apply some operations on item. Index based for loop is used to execute some logic repetitively. While loop also useful to execute a logic repetitively
in c#.net , following example explains this
using system;
void main(){
String[] names=new names[20];
int counter=0;
//index based for loop
for(int i=0;i<20;i++){
console.read(names[i]);
}
//item based for loop
foreach(string s in names){
console.writeline(s);
}
//while loop
while(counter<20)
{
console.read(names[counter];
counter++;
}
}
Depending on the type of file, it normally runs or opens.
Int* p; defines a pointer variable.
Answer:
B) Developer is poured down the drain while fixer can be reduced
Explanation:
The effluents produced during photographic processing includes, wash water, bleach, fixer, and developer
The developer is an alkaline solution, with a pH of approximately 10.0, while the pH of the fixer is about 4.3, it is therefore, acidic
The rate of discharge of the developer to the fixer is 2 to 1, and the exhausted developer, fixer and process effluents combined are neutral and can be handle by the the treatment works and the drain pipes
Fixer which remain clear can be reused for more than a day, while the spent basic Developer and the acidic Spent Stop Bath can be combined to form a neutral solution, having a pH of approximately 7, which make them less hazardous to be disposed off down the sink into the drain
Therefore, <em>developer is poured down the drain while fixer can be reused</em>