[Solved] 1 Index Array Must Positive Integer True B False 2 Single Declaration Statement Declare Ar Q37198323
1) The index of the array must be a positive integer
A) True
B) False
2) A single declaration statement can declare an array ofcharacters and an array of integers.
A)True
B) False
3)You can change the size of an array after is declared.
A)True
B)False
4)How many storage spaces the following statementallocates?
int number1[10], number2[30];
A) none this statement does not allocate space
B) 300
C) None of the above
D) c.40
5)What is the selection that best describes the followingstatement:
int function( int, double [ ] );
A) Function call
B) Function definition
C) none of the above
D) Function prototype
6) The function prototype:
tax(int, double);
Does not return any values
A) True
B) False
7) What are the values of A[K] and A[K+1] after codecorrespopnding to the following pseudocode is run?
A[K] = 10;
A[K+1] = 20;
Temp = A[K];
A[K] = A[K+1] ;
A[K+1 ] = Temp ;
A) A[K] = 10, A[K + 1] = 20
B) A[K] = 20, A[K + 1] = 10
C) A[K] = 20, A[K + 1] = 20
D) A[K] = 10, A[K + 1] = 10
8)The size of the array must be a negative integer
A) True
B) False
9) A function is called by using its name.
A) True
B) False
10) A 2-dimensional array is called a table.
A) True
B) False
11) printf(“Enter an integer n “);
n is an escape sequence character that moves the cursor to thenext tab position
A) True
B) False
12)int m, n, x, y ;
m= 10;
n = 20;
x = 15;
y = m + n / x;
After the last statement is executed the value of y will be11
A) True
B) False
13) The opertors *, /, %, + and – all have the same level ofprecedence.
A) True
B) False
14) All programs can be written in terms of the followingcontrol structures:
A) Comments, Selection, Repetition
B) Sequence , Selection, Repetition
C) Sequence , Loops, Repetition
D) Sequence, Functions, Repetition
15) Assuming that x is a double and the value is 123.4567, thefollowing statement: printf(“%0.2lf “, x);
will display
A) 0.46
B) 123.46
C) 123.45
D) 123.456
16) Every C program should have a function called main.
A) True
B) False
17) #include<stdio.h>
This is a pre-processor directive that tells to include thestandard input/output header file in the program.
A) True
B) False
18) scanf(“%d”, num1);
Assuming that num1 is an integer variable, will the above statementrun properly?
A) True
B) False
19) C will consider the variables number and NUmberidentical.
A) True
B) False
20) Which statement inputs an integer?
A) scanf(“%i”, &num1);
B) scanf(“%f”, &num1);
C) two of these are correct
D) scanf(“%d”, &num1);
Expert Answer
Answer to 1) The index of the array must be a positive integer A) True B) False 2) A single declaration statement can declare an a… . . .
OR

