問題一覧
1
* let n=2, the index of arr will be 0,1,2
False
2
* let n=2, arr[0] =8, arr[1]= 5, max number =5
False
3
* largest in the previous code is name of variable
False
4
* call the function in previous code () within int main
True
5
* the previous code considers declaration function only
False
6
* max = arr[0]; means the value of max is zero
False
7
*in definition of function, the function returns float
False
8
* to print elements of arr[n] must include loop
True
9
* let n=3, for(i=1; i<2; i++)
False
10
* cin>>n; means print on the screen n
False
11
* the function in previous code has one parameter
False
12
*in the previous code, n is declared in two scopes
True
13
* let n= 3, there are three iterations
True
14
* let n= 2, in the declaration the function, the value of i in iteration 2 is 3
False
15
* the datatype of function in the previous code is
int
16
* the previous function is
return type
17
* calling the function within
main ()
18
* ;in the previous code, max = arr[i]
the value in the position of size array-1 is assigned in max
19
* if the function in general does not return value, we can use
void word
20
declaration and calling the function
declaration and calling the function
21
* the function in the previous code has two parameters
array and variable
22
* the name of function in the previous code is
largest
23
* calling function is
function name(its parameters)
24
* in the previous code, the max means
variable for containing the largest value
25
* in the previous code, statement of calling function is
largest(arr, n)
26
* in the previous code, let n = 4 in the declaration stage, the index will be
3,2,1,0
27
* in the previous code, let n = 3 in declaration stage the value of i in the end of second iteration is
3
28
* in the previous code, let n = 3 in execution stage, the value of i in the end second iteration is
2
29
* in the previous code, let n = 3 in execution stage, the value of i in the beginning second iteration is
1