{"id":382,"date":"2023-08-04T20:30:41","date_gmt":"2023-08-04T20:30:41","guid":{"rendered":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?page_id=382"},"modified":"2023-08-05T08:55:09","modified_gmt":"2023-08-05T08:55:09","slug":"logic-statements-truth-tables","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/","title":{"rendered":"Logic Statements &#038; Truth Tables"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Logic Statements<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Logic Statements<\/h3>\n<p>Logic statements, also known as logical statements or propositions, are declarative sentences that express a specific truth value. They can be either true or false, but not both simultaneously. Logic statements are fundamental building blocks of logic and are used to construct logical arguments and reasoning.<\/p>\n<p>They can written is a wide number of ways but in your exam you will likely come across the following 3 styles and usually you will be asked to construct either a truth table or a logic circuit from the logic statement.<\/p>\n<ul>\n<li>Logic Statements using ifs and 1s\/0s<\/li>\n<li>Logic statements written as an equation<\/li>\n<li>Logic statements written as a natural language sentence<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">ifs and 1s \/ 0s<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Logic Statements using ifs and 1s\/0s<\/h3>\n<p>This is basically an equation written using simple more simple natural language<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>X = 1 if input A is 0 and input B is 1<\/p>\n<p><strong>Truth table<\/strong><\/p>\n<p>The truth table for the above example would look like this:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-387 size-full\" src=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-drawing-9.png?_t=1691225057\" alt=\"\" width=\"457\" height=\"265\" srcset=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-drawing-9.png 457w, https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-drawing-9-300x174.png 300w\" sizes=\"(max-width: 457px) 100vw, 457px\" \/><\/p>\n<p><strong>Logic Circuit<\/strong><\/p>\n<p>The simplest form of logic circuit representation would look like this:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-388\" src=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-Diagram.drawio.png\" alt=\"\" width=\"591\" height=\"201\" srcset=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-Diagram.drawio.png 591w, https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-Diagram.drawio-300x102.png 300w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Equations<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Logic statements written as an equation<\/h3>\n<p>This is where a logic statement is expressed using standard mathematical notation,<\/p>\n<p>Example: Q = (NOT A) AND B<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Natural Language<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Logic statements written as a natural language sentence<\/h3>\n<p>Here a logic statement is written as a normal sentence, often applied to a read-world scenario.<\/p>\n<ul>\n<li><strong>X<\/strong>avier will attend the party if <strong>A<\/strong>my isn&#8217;t going and <strong>B<\/strong>ethany is going.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Practice<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Practice<\/h3>\n<p>Can you draw the truth tables and logic circuits for the following examples?<\/p>\n<ol>\n<li>X = 1 if input A is 0 or input B is 0<\/li>\n<li>X = 1 if input A is 1 or input B is 0, but only if input C is 0<\/li>\n<li>Q = (A AND B) OR (NOT B)<\/li>\n<li>Q = (A OR B) AND (A AND (NOT B))<\/li>\n<li>A chick incubator alarm(X) is activated if the temperature is too high(A), too low(B) and the manual override switch(C) is disabled.<\/li>\n<li>Sarah(S) wears a coat to school if it is rainy(R) or cold(C), but not if she is taking the bus.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Resources<\/h3>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logic Statements Logic statements, also known as logical statements or propositions, are declarative sentences that express a specific truth value. They can be either true or false, but not both simultaneously. Logic statements are fundamental building blocks of logic and are used to construct logical arguments and reasoning. They can written is a wide number&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Logic Statements &#038; Truth Tables<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":100,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science\" \/>\n<meta property=\"og:description\" content=\"Logic Statements Logic statements, also known as logical statements or propositions, are declarative sentences that express a specific truth value. They can be either true or false, but not both simultaneously. Logic statements are fundamental building blocks of logic and are used to construct logical arguments and reasoning. They can written is a wide number&hellip;&nbsp;Read More &raquo;Logic Statements &#038; Truth Tables\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\" \/>\n<meta property=\"og:site_name\" content=\"Edexcel iGCSE Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-05T08:55:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-drawing-9.png?_t=1691225057\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\",\"url\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\",\"name\":\"Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website\"},\"datePublished\":\"2023-08-04T20:30:41+00:00\",\"dateModified\":\"2023-08-05T08:55:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logic Statements &#038; Truth Tables\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website\",\"url\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/\",\"name\":\"Edexcel iGCSE Computer Science\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/","og_locale":"en_GB","og_type":"article","og_title":"Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science","og_description":"Logic Statements Logic statements, also known as logical statements or propositions, are declarative sentences that express a specific truth value. They can be either true or false, but not both simultaneously. Logic statements are fundamental building blocks of logic and are used to construct logical arguments and reasoning. They can written is a wide number&hellip;&nbsp;Read More &raquo;Logic Statements &#038; Truth Tables","og_url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/","og_site_name":"Edexcel iGCSE Computer Science","article_modified_time":"2023-08-05T08:55:09+00:00","og_image":[{"url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-content\/uploads\/sites\/27\/2023\/08\/Untitled-drawing-9.png?_t=1691225057"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/","url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/","name":"Logic Statements &#038; Truth Tables - Edexcel iGCSE Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website"},"datePublished":"2023-08-04T20:30:41+00:00","dateModified":"2023-08-05T08:55:09+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/logic-statements-truth-tables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/"},{"@type":"ListItem","position":2,"name":"Logic Statements &#038; Truth Tables"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/#website","url":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/","name":"Edexcel iGCSE Computer Science","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Logic Statements Logic statements, also known as logical statements or propositions, are declarative sentences that express a specific truth value. They can be either true or false, but not both simultaneously. Logic statements are fundamental building blocks of logic and are used to construct logical arguments and reasoning. They can written is a wide number&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/382"}],"collection":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":5,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/382\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/pages\/382\/revisions\/390"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/edexcel-igcse-computer-science\/wp-json\/wp\/v2\/media?parent=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}