1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pshichka [43]
4 years ago
13

What does the statement that follows do? double gallons[6] = { 12.75, 14.87 }; a. It assigns the two values in the initializatio

n list to the first two elements but leaves the other elements with the values currently in memory. b. It assigns the two values in the initialization list to the first and second elements, third and fourth elements, and fifth and sixth elements. c. This statement is invalid. d. It assigns the two values in the initialization list to the first two elements and default values to the other elements.
Computers and Technology
1 answer:
Serhud [2]4 years ago
3 0

Answer:

It assigns the two values in the initialization list to the first two elements and default values to the other elements.

Explanation:

Given

The array initialization

Required

Interpret the statement

double gallons[6] implies that the length/size of the array gallons is 6.

In other words, the array will hold 6 elements

{12.75, 14.87} implies that only the first two elements of the array are initialized ; the remain 4 elements will be set to default 0.

You might be interested in
Essay:
nirvana33 [79]

Answer:

1) There are three ingredients needed to access the Internet from a laptop or desktop computer: (1) an ISP, (2) a modem and (3) a Web browser.

2) yeah ofcourse social media ia a very helpful tool for people because it helps us connect with people all around the globe.It helps you clear you doubts for the perfect example is now.You know you are clearing your doubt here in brainly which can be considered as a social media.

8 0
3 years ago
Which statements describe the elements of the email function? Check all that apply.
liq [111]

Which statements describe the elements of the email function? Check all that apply.

Messages are delivered from one email address to another.

An email address can be used to identify the sender in Contacts.

The local part of the email address contains the user name.

The domain part of the email address can a business name.

Answer:

The local part of the email address contains the user name.

The domain part of the email address can a business name.

Explanation:

Elements of email function include the local part of the email which can contain the username, the domain part of the email, the sender, receiver, and other components.

8 0
4 years ago
Read 2 more answers
Transcription in a virus that has an rna genome is complex because __________.
AnnZ [28]
I had to look for the options and here is my answer:

Transcription in a virus that contains an RNA genome is complicated due to the following reasons: the virus has to create a DNA intermediate, the viral genome needs to encode for RNA-dependent RNA polymerase, and lastly, the virus needs to have its own <span>RNA-dependent RNA polymerase.</span>
8 0
3 years ago
Initialize the list short_names with strings 'Gus', 'Bob', and 'Zoe'. Sample output for the givenprogram:Gus Bob Zoeshort_names
Gnesinka [82]

Answer:

short_names = ['Gus', 'Bob','Zoe']

Explanation:

A list is a type of data structure in python that allows us to store variables  of different types. Each item in a list has an index value which must be a integer value, and the items can be assessed by stating the index position. The syntax for creating and initializing a list is:

list_name = [item1, item2,item3]

  1. The name of the list (must follow variable naming rules)
  2. a pair of square brackets
  3. items in the list separated by commas.

The python code below shows the implementation of the solution of the problem in the question:

<em>short_names = ['Gus', 'Bob','Zoe']</em>

<em>print(short_names[0])</em>

<em>print(short_names[1])</em>

<em>print(short_names[2])</em>

The output is:

<em>Gus</em>

<em>Bob</em>

<em>Zoe</em>

6 0
3 years ago
One advantage of using personal computers for Internet access is that they have relatively large screens for viewing Internet co
Natasha2012 [34]

Answer:

True

Explanation:

Using personal computers for internet access has various advantages because of the physical attributes of these computers. One of the major reason that it is good for internet access is its large screen. The large screen allows things to be easily viewed and read. Also, personal computers have a keyboard that helps for easy data entry, as opposed to pads, and other types of devices that may have just touch-pad and data entry may be difficult.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Write a function: function solution(N); that, given a positive integer N, prints the consecutive numbers from 1 to N, each on a
    14·1 answer
  • What is the top folder of the file tree called
    5·2 answers
  • Which of the following is not a major reason for an email bounce?
    8·1 answer
  • As an IT tech for your company, you have been notified that the Windows domain does not seem to be functioning properly. Being f
    7·1 answer
  • Give the algorithm and flowchart for following C code:
    6·1 answer
  • Say you find a module in a package that does a lot of awesomely useful things, but the name of it is module_that_does_many_aweso
    12·1 answer
  • A _____ is an example of a systems program. A. command interpreter B. web browser C. text formatter D. database system
    10·1 answer
  • GIVING 10 or 20 POINTS for brainliest HELP ASAP!! Instructions Click the links to open the resources below. These resources will
    10·1 answer
  • Why can i go to discord if my school blocks it-
    9·1 answer
  • Which cyber protection condition establishes a protection.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!