Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 11 (1 point) If you put a value in the square brackets of a one-dimensi

ID: 3916734 • Letter: Q

Question

Question 11 (1 point)

If you put a value in the square brackets of a one-dimension array parameter, this value is _________ by the compiler.

Question 11 options:

used

ignored

Save

Question 14 (1 point)

Why should you use a named constant for the size of an array?

Question 14 options:

Readability of code

Makes changes to the program easier

Helps reduce logic errors

All of the above

Question 16 (1 point)

If you put a value in the square brackets of a one-dimension array parameter, this value is _________ by the compiler.

Question 16 options:

used

ignored

Question 17 (1 point)

In the expression
double score[10];
double is called the ___________ of the array

Question 17 options:

root index

lowered portcullis

fundamental unit

base type

driving sentinel

Question 18 (1 point)

The following array declaration is legal
double scores[4]={0.1,0.2,0.3};

Question 18 options:

True

False

used

ignored

Explanation / Answer

Ans:11

ignored

Ans:14

Helps reduce logic errors

Ans:16

ignored

Ans:17

base type

Ans:18

The given statement is True.

we can have less element than size of the array but not more.

ex:

#include<stdio.h>

int main()

{

double scores[4]={0.1,0.2,0.3};

printf("%f ", scores[2]);

return 0;

}


the output is 0.3000 hence the given statement is correct.

========================================================

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote