Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago