<span>Computer design replaced (B) models draw or created by hand. Technology nowadays has a big contribution in terms of planning and designing a building or a structure without burning your eyebrow facing that paper and handling your pen. Computer designs are used to make the design more accurate and more precise compared to traditional hand drawn designs.</span>
Answer:
B. 1 6 3
Explanation:
Given function definition for calc:
void calc (int a, int& b)
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
Function invocation:
x = 1;
y = 2;
z = 3;
calc(x, y);
cout << x << " " << y << " " << z << endl;
- Since x is passed by value, its value remains 1.
- y is passed by reference to the function calc(x,y);
Tracing the function execution:
c=3
a=3
b=c+a = 6;
But b actually corresponds to y. So y=6 after function call.
- Since z is not involved in function call, its value remain 3.
So output: 1 6 3
If this is Excel, it would be C. Sheet tab
Answer:
import java.util.Scanner;
public class StoreGuesses {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
final int NUM_GUESSES = 3;
int[] userGuesses = new int[NUM_GUESSES];
int i = 0;
for (i = 0; i < NUM_GUESSES; ++i){
userGuesses[i] = scnr.nextInt();
}
for (i = 0; i < NUM_GUESSES; ++i){
System.out.print(userGuesses[i] + " ");
}
}
}
/*
Output:
2 4 6
2 4 6
*/