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
irga5000 [103]
3 years ago
8

Which statement below returns 'soccer'?

Computers and Technology
1 answer:
Ivenika [448]3 years ago
4 0

Answer:

The answer is the second option.

sports = {2: 'football', 3:'soccer', 4:'volleyball', 5:'softball'};

console.log(sports[3]);

will output:

soccer

Explanation:

There were several syntax errors in the code (assuming it is javascript):

- Text strings must be enclosed in single or double quotes.

- sports is an object, not an array, so it should have { } and not [ ]

You might be interested in
Which of the following is an object-oriented programming language?
Svetradugi [14.3K]

Explanation:

This is the correct answer

<h3>python</h3>
7 0
2 years ago
ساعدوني على الإجابة على هذه الأسئلة
aleksandr82 [10.1K]

Answer:

Can you Translate for Russian or Eanglish

Explanation:

7 0
3 years ago
How many bits strings of length 12 contain (8 pts)? a. exactly three 1s? b. at most three 1s? c. at least three 1s? d. an equal
Irina-Kira [14]

1. Exactly three 1 s?

$$\left(\begin{array}{c}12 \\3\end{array}\right)=220$$

2. At most three$1 \mathrm{~s}$ ?

$$\left(\begin{array}{c}12 \\0\end{array}\right)+\left(\begin{array}{c}12 \\1\end{array}\right)+\left(\begin{array}{c}12 \\2\end{array}\right)+\left(\begin{array}{c}12 \\3\end{array}\right)=1+12+66+220=299 \text {. }$$

3. At least three 1 s?

Take a shortcut by using the previous answer:$2^{12}-66-12-1=4017$

4. An equal number of$0 \mathrm{~s}$ and $1 \mathrm{~s}$ ?

$$\left(\begin{array}{c}12 \\6\end{array}\right)=924$$

<h3>What is strings ?</h3>

The C programming language includes a set of functions executing operations on strings in its standard library. Different operations, such as copying, concatenation, tokenization, and searching are supported.

In C programming, a string exists as a sequence of characters terminated with a null character \0. For example char c[] = "c string"; When the compiler discovers a sequence of characters enclosed in the double quotation marks, it appends a null character \0 at the end by default. The C language does not have a distinctive "String" data type, the way some other languages such as C++ and Java do. Instead, C stores strings of characters as arrays of chars, completed by a null byte.

1. Exactly three 1 s?

$$\left(\begin{array}{c}12 \\3\end{array}\right)=220$$

2. At most three$1 \mathrm{~s}$ ?

$$\left(\begin{array}{c}12 \\0\end{array}\right)+\left(\begin{array}{c}12 \\1\end{array}\right)+\left(\begin{array}{c}12 \\2\end{array}\right)+\left(\begin{array}{c}12 \\3\end{array}\right)=1+12+66+220=299 \text {. }$$

3. At least three 1 s?

Take a shortcut by using the previous answer:$2^{12}-66-12-1=4017$

4. An equal number of$0 \mathrm{~s}$ and $1 \mathrm{~s}$ ?

$$\left(\begin{array}{c}12 \\6\end{array}\right)=924$$

To learn more about strings refer to:

brainly.com/question/27251062

#SPJ4

3 0
2 years ago
Before hard disk drives were available, computer information was stored on:
kobusy [5.1K]
Floppy disks . is the answer
6 0
3 years ago
How long do deleted items remain in the recycle bin? forever one week until it is emptied until you log off or shut down?
GarryVolchara [31]
C. Until it is emptied is the answer to your question!
7 0
4 years ago
Read 2 more answers
Other questions:
  • Frank works for an organization that wishes to install a software program on a single server with multiple users connected. Whic
    8·1 answer
  • The function of a start winding in a split-phase motor is to A. provide the starting torque. B. reduce the starting current. C.
    14·1 answer
  • hard disk drive has 16 platters, 8192 cylinders, and 256 4KB sectors per track. The storage capacity of this disk drive is at mo
    13·1 answer
  • List 7 ways of generating<br>airlines​
    15·2 answers
  • Type the correct answer in the box. Spell all words correctly.
    12·1 answer
  • Write a function to prompt the user to enter the information for one movie (title, release date, mpaa rating and number of stars
    8·1 answer
  • which of the following is something that an information systems (IS) professional would do? A. devise new ways to use computers
    10·1 answer
  • Which line of code will use the overloaded multiplication operation?
    8·1 answer
  • describe the role and importance of computers in New Media. Prepare a report on increasing interest and impact of mobile phones
    9·1 answer
  • The recipient list cannot be edited.<br> Group of answer choices<br><br> True<br><br> False
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!