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
sineoko [7]
4 years ago
11

What will the following code print out: int numbers [] = {99, 87, . 66, 55, 101}; for (int i = 1; i < 4; i++) cout << n

umbers [i] << end1;a) 99 87 66 55 101 b) 87 66 55 101 c) 87 66 55 d) Nothing.
Computers and Technology
1 answer:
forsale [732]4 years ago
5 0

Answer:

87 66 55

Explanation:

Array is used o store the multiple values with same data type.

the array show a decimal value .66, i assume this is enter by mistake because option has no decimal value.

The index of the array is start from zero, it means the first element store in the array at position zero.

In the for loop the variable 'i' start from 1 not zero and it goes to i<4 means i=3.

So, it access the element from 2 to 4 because the index is position of element less than 1.

Therefore, 87 66 55 print.

You might be interested in
Why is digital data, at the base level in computers, represented in binary? * 10 points 0's and 1's are the easiest numbers to d
Liula [17]

Answer:

The representation of the digital data in the computer system in the binary form because it is easier and cheaper to use in the system. It is more reliable to build the machine and the devices for distinguish the binary states.  

Computer basically uses the 0 and 1 binary digits for storing the data in the system. The computer processor circuits are basically made up of the various types of transistors that uses electronic signals for the activation process in the system.

The o and 1 are the binary digits that reflect the different states of the transistor that is OFF and ON state.

8 0
3 years ago
On laptops, wireless cards tend to be attached to which panel?
HACTEHA [7]

Answer:

Hard Drive

Explanation:

Computers use a hard drive, which stores all information.

6 0
3 years ago
Which best describes an advantage of conceptual notes? They are great for studying vocabulary terms. They help students memorize
larisa86 [58]

Answer:

They make it easy to quickly see relationships between ideas.

Explanation:

A concept is an idea or a principle that could be used to understand an abstract notion. A conceptual note is one that makes the relationship between ideas easily discernible.

Without breaking much sweat or reading too deeply, the reader would find it easier to easily determine the relationship between ideas and how they relate to the subject matter. Conceptual notes can be taken on a laptop or paper.

5 0
3 years ago
Read 2 more answers
What is a Turing Test and the Loebner Prize?
irina [24]

Answer:

The Loebner Prize was an annual competition in artificial intelligence that awards prizes to the computer programs considered by the judges to be the most human-like. ... The format of the competition was that of a standard Turing test.Explanation:MORE POWRE

4 0
2 years ago
Write a program to convert a string (of up to 20 characters, including the terminating null character) to all uppercase characte
Harlamova29_29 [7]

Answer:

Check the explanation

Explanation:

#include <stdio.h>

#include<ctype.h>

#include<string.h>

void MyToUpper(char *p)

{

  int i;

  for(i=0;i<strlen(p);i++)

  {

      p[i]=toupper(p[i]);

  }

}

int main(void) {

  char str[20];

  printf("Enter a string:");

  fgets(str,20,stdin);

printf("The string you entered was: %s\n",str);

MyToUpper(str);

printf("The string converted to uppercase is: %s\n",str);

fflush(stdin);

  return 0;

}

5 0
3 years ago
Other questions:
  • A computer scientist creates a necklace to celebrate the birth of her daughter. The necklace encodes her daughter's
    6·1 answer
  • Which of the following indicates the main benefit of having a larger hard drive on a computer
    5·1 answer
  • What is the operating system in a computer?
    5·2 answers
  • Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. What critical detail must she ha
    14·2 answers
  • Robert’s computer is not working properly. It has become too slow to respond to programs. What can he do to maintain his compute
    15·1 answer
  • Bruno took the computer that he uses at work, and Pauline sits on the beach with her laptop computer, which she connects to the
    13·1 answer
  • I need help, thank you
    5·1 answer
  • What is an algorithm?
    11·1 answer
  • Explain the distinction between a real address and a virtual address.
    5·2 answers
  • How would you create a loop that never ends?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!