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
Vilka [71]
2 years ago
13

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

number of 0s and 1s?
Computers and Technology
1 answer:
Irina-Kira [14]2 years ago
3 0

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

You might be interested in
<img src="https://tex.z-dn.net/?f=4875%20-%204859" id="TexFormula1" title="4875 - 4859" alt="4875 - 4859" align="absmiddle" clas
asambeis [7]

answer : 16

    4875 - 4859 = 16


3 0
3 years ago
Read 2 more answers
def multiplication_table(number): # Initialize the starting point of the multiplication table multiplier = 1 # Only want to loop
Sauron [17]

In this def multiplication_table(number): # Initialize the starting point of the multiplication table multiplier = 1 * number # the additional condition to exit out of the loop is by the increment the variable for the loop multiplier.

<h3>How do you are making a multiplication desk for a loop in Python?</h3>
  1. Code the usage of a for loop
  2. ourNum = int(input("Enter the quantity you need to generate a multiplication desk for, then hit the `enter` key: "))
  3. ourRange = range(1,6)
  4. for x in ourRange:
  5. result = ourNum * x.
  6. print(ourNum," * ",x," = ",result.

If the numbers multiplier increases then the starting point of the multiplication table multiplier will be greater than 25 and will increase.

Read more about the multiplication table:

brainly.com/question/12617401

#SPJ1

7 0
2 years ago
The ________ phase in a project involves documenting lessons learned from the project, so that the experience is useful to other
pentagon [3]

Answer:

C. Closing

Explanation:

Closing phase is the process of concluding all activities for a project, phase, or contract.  The key benefits of this are the project or phase information is archived, the planned work is completed, and organisational team resources are released to pursue new endeavours.  This process is performed once or at predefined points in the project.

The activities necessary for the administrative closure of the project or phase include:

Actions necessary to satisfy completion or exit criteria for the closing phase of a project are :

  • Ensuring that all documents are up-to-date and that all issues are resolved;
  • Confirming the delivery and formal acceptance of project by the client;
  • Ensuring that all costs are charged to the project;
  • Closing project accounts;
6 0
3 years ago
Please help me ASAP!
netineya [11]

Answer:

loser

Explanation:

5 0
3 years ago
Read 2 more answers
A file that is embedded on the hard drive of a computer, often without a person's knowledge, that collects and stores informatio
Gnom [1K]
The correct answer would be Spyware
6 0
3 years ago
Other questions:
  • Write an essay of at least 300 words explaining your position on a proposed ban of Wikipedia in your future college. You should
    12·1 answer
  • PLS ANSWER QUICK!!!!
    12·1 answer
  • Write a function named repeat_words that takes two string parameters: 1. in_file: the name of an input file that exists before r
    13·1 answer
  • A vital step in maintaining an operating system is to regularly do what? Replace the hard drive. Organize the computer’s data. R
    11·2 answers
  • PLZ HELP
    15·2 answers
  • Can someone start me off with a short 2 or 3 paragraphs about the pros and cons of Microsoft Word, and if you can recommend a si
    12·1 answer
  • To make slides in a PowerPoint Online application presentation have the same transition effect, select __________ on the Transit
    11·2 answers
  • Computers were originally invented to
    12·2 answers
  • What is resource pooling?
    13·1 answer
  • During the post process,the Bios uses two different ways to notify you of a problem. Error beep codes and error messages .Explai
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!