Question: Question 2 0 / 3 points what determines a block of code Question options: a named location in memory to store data we will need

Question 2 0 / 3 points

what determines a block of code

Question options:

a named location in memory

to store data we will need later in the program

a pair of {}

named block of code that returns a value

Question 5 0 / 3 points

Question options:

-1

0

1

x

Question 7 0 / 3 points

Which of the following do you use to declare and initialize a five-element double array named prices, in which the first element is initialized to 6.5, while the others are initialized to 0.0?

Question options:

double prices[5] = {6.5, 0, 0, 0, 0, 0};

double prices[5] = {0, 0, 6.5};

double prices[5] = {0, 6.5, 0, 0, 0};

double prices[5] = {6.5};

Question 9 0 / 3 points

What does the following statement do? code [0 ] ='A';

Question options:

Tests to see if element 0 of the code array is equal to the letter A

Assigns the letter A to the first element in the code array

Searches through the elements of the code array to see if the letter A exists

Replaces all of the elements of the code array with the letter A

| |

Question 12 0 / 3 points

What is the index of 300? int [] a = {50, 75, 100, 150, 200, 300, 450, 510, 700};

Question options:

3

4

5

6

Question 14 0 / 3 points

if we have the statement int k[8]; what is the value in k[4]?

Question options:

0

garbage

a space

3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!