Back to 课程

Computer Science GCES OCR

0% Complete
0/0 Steps
  1. Cpu Architecture Performance And Embedded Systems Ocr
    5 主题
  2. Primary And Secondary Storage Ocr
    6 主题
  3. Data Storage And Compression Ocr
    12 主题
  4. Networks And Topologies Ocr
    6 主题
  5. Wired And Wireless Networks Protocols And Layers Ocr
    6 主题
  6. Identifying And Preventing Threats To Computer Systems And Networks Ocr
    2 主题
  7. Operating Systems And Utility Software Ocr
    2 主题
  8. Ethical Legal Cultural And Environmental Impact Ocr
    2 主题
  9. Computational Thinking Searching And Sorting Algorithms Ocr
    3 主题
  10. Designing Creating And Refining Algorithms Ocr
    5 主题
  11. Programming Fundamentals And Data Types Ocr
    5 主题
  12. Additional Programming Techniques Ocr
    7 主题
  13. Defensive Design And Testing Ocr
    6 主题
  14. Boolean Logic Diagrams Ocr
    2 主题
  15. Programming Languages And Integrated Development Environments Ides Ocr
    3 主题
  16. The Exam Papers Ocr
    2 主题
  17. Structuring Your Responses Ocr
    3 主题
课 Progress
0% Complete

Exam code:J277

Combining Boolean Operators

  • Boolean operators can be combined to produce more complex expressions

  • The combination of two or more Boolean operators forms a logic expression

  • Brackets are used to clarify the order of operations

  • A logic diagram is a visual representation of combinations of Boolean operators within a logic circuit

  • An example would be Q = NOT(A OR B)

logic circuit1
  • In the diagram above, the inputs are represented by A and B

  • P is the output of the OR gate on the left and becomes the input of the NOT gate

  • Q is the final output of the logic circuit

  • This is a logic diagram for the Boolean expression Q = NOT(A OR B)

Examiner Tips and Tricks

You may be asked to draw a logic circuit from a logic statement or a Boolean expression OR write the logical expression that is expressed in the logic diagram

Logic circuits will be limited to a maximum of three inputs and one output

Example of combining Boolean operators

10-boolean-logic
  • P = (A OR B) AND NOT C

Apply Logical Operators in Truth Tables

What is a truth table?

  • A truth table is a tool used in logic and computer science to visualise the results of Boolean expressions

  • They represent all possible inputs and the associated outputs for a given Boolean expression

  • To create a truth table for the expression P = (A AND B) AND NOT C

    • Calculate the numbers of rows needed (2number of inputs)

    • In this example there are 3 inputs (A, B, C) so a total of 8 rows are needed (23)

    • To not miss any combination of inputs, start with 000 and count up in 3-bit binary (0-7)

A

B

C

0

0

0

0

0

1

0

1

0

0

1

1

1

0

0

1

0

1

1

1

0

1

1

1

  • Add a new column to show the results of the brackets first (A AND B)

Table shows binary logic with columns A, B, C, and A AND B. Values of A and B determine the output in A AND B column, following the AND logic gate truth table.
  • Add a new column to show the results of NOT C

Truth table with columns A, B, C, A AND B, and NOT C. Each row shows combinations of 0s and 1s for logical operations involving these variables.
  • The last column shows the result of the Boolean expression by comparing (A AND B) AND NOT C

A truth table with columns: A, B, C, A AND B, NOT C, and (A AND B) AND NOT C. Eight rows of binary values showing logical operations results.

Examiner Tips and Tricks

It is possible to create a truth table when combining expressions that show only the inputs and the final outputs.

The inclusion of the extra columns supports the process but can be skipped if you feel able to do those in your head as you go.

Worked Example

Complete the truth table for the following logic diagram [4]

<img alt=”logic circuit3″ class=”ContentBlock_figure__vJw2q” data-nimg=”1″ decoding=”async” height=”250″ loading=”lazy” sizes=”(max-width: 320px) 320w, (max-width: 640px) 640w, (max-width: 960px) 960w, (max-width: 1280px) 1280w, 1920w” src=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=3840/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png” srcset=”https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=16/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 16w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=32/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 32w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=48/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 48w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=64/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 64w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=96/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 96w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=128/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 128w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=256/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 256w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=384/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 384w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=640/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 640w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=750/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 750w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=828/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 828w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=1080/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 1080w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=1200/https://cdn.savemyexams.com/uploads/2023/05/screenshot-2023-05-30-at-08-34-38.png 1200w, https://cdn.savemyexams.com/cdn-cgi/image/f=auto,width=1920/ht

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注