[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655466-105":59,"doc-detail-655466-en":131,"doc-similar-655466":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","logic-gates-logical-gates-tutorial","Logic Gates - Logical Gates Tutorial","","A beginner-friendly lesson explains what logic gates are and how computers use them to switch information between ON and OFF. It defines Boolean logic using the rule that true corresponds to 1 and false corresponds to 0, then walks through an equality-check example with inputs converted into binary. The material introduces major gates (NOT, AND, OR, XOR), describes each gate’s behavior, and connects gate behavior to truth tables for visualizing outputs.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/logic-gates-logical-gates-tutorial/655466/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/logic-gates-logical-gates-tutorial/655466.png","ImageObject",300,407,{"name":92,"@type":93},"Angel","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What are logic gates and what do they do?","Question",{"text":113,"@type":114},"Logic gates are switches that turn ON or OFF depending on whether a condition is true or false. They output true (ON) or false (OFF) after checking a rule.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Why must inputs be in binary when using logic gates?",{"text":118,"@type":114},"Computers think in ON/OFF, which correspond to 1 and 0. So a logic gate expects the information given to it as binary values rather than numbers like 5 or 6.",{"name":120,"@type":111,"acceptedAnswer":121},"How do the NOT and AND logic gates differ?",{"text":122,"@type":114},"A NOT gate outputs the opposite of its single input: 1 becomes 0 and 0 becomes 1. An AND gate needs two inputs and turns ON only when both inputs are ON; otherwise it outputs OFF.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},655466,1793073615,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},687207412472,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Logic Gates  \nWhat are logic gates?  \n• In the binary lesson, we discussed the switches inside a computer  \n• Logic gates are the switches that turn ON or OFF depending on what the user is doing!  \n• They are the building blocks for how computers work.  \nWhat are logic gates?  \n• Logic gates turn ON when a certain condition is true, and OFF when the condition is false  \n– They check whether or not the information they get follows a certain rule  \n• They either spit out the answer true (ON) or false (OFF)  \n• Remember:  \n– True= ON = 1  \n– False = OFF=0  \nLet’s do an example!  \n• Let’s say a certain logic gate needs to determine if two numbers are equal  \n• The rule would be “is equal”  \n• If the two input numbers are equal, it will go into its ON position, indicating true  \n• If they are not equal, it will go into its OFF position, indicating false  \n5   \n6   \nLet’s do an example!  \n• But we learned before that computers only think of things in terms of ON and OFF, which to them is 1 and 0  \n• So a computer wouldn’t take an input of 5 or 6 – all of the information need to be 0s and 1s  \n• Reminder: Input refers to the information you give the logic gate, and output refers to what it spits out!  \n• Let’s try this example again, keeping this rule in mind!  \n1  \n(ON)  \n1  \n(ON)  \n1  \n(ON)  \n0  \n(OFF)  \nTypes of Logic Gates!  \n• Major logic gates: NOT, AND, OR, and XOR  \n• There are also other ones, such as NAND, NOR, and XNOR that we’re not going to cover.  \n• This is called Boolean logic  \n• In a circuit schematic each logic gate is represented by a different picture, like the ones shown below.  \nNOT  \n• NOT is the most simple logic gate.  \n• All it does is take in an input that is either ON or OFF and spits out the opposite.  \n• So for a 1 it will give a 0, and for a 0 it will give a 1.  \n• Another name for a NOT gate is inverter, because it inverts (makes opposite) the input  \nAND  \n• Unlike NOT, AND needs two inputs  \n• It only turns on when both inputs are ON  \n• If only one input is on, it spits out OFF  \n• If both inputs are off, it spits out OFF  \nAND Truth Table  \n• A convenient way to visualize the outputs for the logic gates is through a truth table  \n• The truth table depicts the gate’s response to each possible set of inputs  \nInput 1  \nInput 2  \n\n|  | 0 | 1 |\n| --- | --- | --- |\n| 0 | 0 | 0 |\n| 1 | 0 | 1 |\n\nOutput  \nOR  \n• OR also needs two inputs  \n• OR needs one input to be ON for it to spit out ON  \n• It is also ON when both inputs are ON  \n• It is OFF when both inputs are OFF","cbCaigTOpRtnqP7Z","https://ap.wps.com/l/cbCaigTOpRtnqP7Z","pdf",417577,"English","# What are logic gates?\n# Let’s do an example\n# Types of Logic Gates\n## NOT gate\n## AND gate\n## OR gate","[{\"question\":\"What are logic gates and what do they do?\",\"answer\":\"Logic gates are switches that turn ON or OFF depending on whether a condition is true or false. They output true (ON) or false (OFF) after checking a rule.\"},{\"question\":\"Why must inputs be in binary when using logic gates?\",\"answer\":\"Computers think in ON/OFF, which correspond to 1 and 0. So a logic gate expects the information given to it as binary values rather than numbers like 5 or 6.\"},{\"question\":\"How do the NOT and AND logic gates differ?\",\"answer\":\"A NOT gate outputs the opposite of its single input: 1 becomes 0 and 0 becomes 1. An AND gate needs two inputs and turns ON only when both inputs are ON; otherwise it outputs OFF.\"}]","Logic Gates - Logical Gates Tutorial | PDF",1792961913,48,[147,151,154,158],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/135356bcb6a00dd41042b285a8eacb1f.webp",983,736,{"page_no":14,"url":152,"width":153,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/96a1ad58a36fe58baf8bca7e4ff6df35.webp",982,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d00e00bdccc2fc0f7ba2fdf299265020.webp",981,735,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c890a1a3ec6ff2dab6c8143a03ed1ffb.webp",980,734,{"list":163,"token":66},[164,170,176,183,189,194,201,207,214,220],{"doc_id":165,"doc_title":166,"file_type":138,"home_preview_img_url":167,"slug":168,"view_count":39,"category_name":30,"create_tm":169},657684,"Basic Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975660853/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=Eazlh%2B0VolQGH71TCc7%2B763djd4%3D","basic-logic-gates",1792986269,{"doc_id":171,"doc_title":172,"file_type":138,"home_preview_img_url":173,"slug":174,"view_count":39,"category_name":30,"create_tm":175},655478,"Basic Logic Gates in Digital Electronics - What are Basic Logic Gates, Basic and Derived Logic Gates, Derived Logic Gates, and Differences","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082926/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=pGJ7n%2Fcvlsj%2Bv9FK%2BScHcwEVUCc%3D","basic-logic-gates-in-digital-electronics-what-are-basic-logic-gates-basic-and-derived-logic-gates-derived-logic-gates-and-differences",1792961954,{"doc_id":177,"doc_title":178,"file_type":138,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":30,"create_tm":182},657681,"Lecture 3 - Logic Gates (II)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975144440/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=sQ2yqSQaW6ISpOQZ6h72G1AzS08%3D","lecture-3-logic-gates-ii",12,1792986267,{"doc_id":184,"doc_title":185,"file_type":138,"home_preview_img_url":186,"slug":187,"view_count":52,"category_name":30,"create_tm":188},655475,"Introduction to Logic Gates - Basic Gates - Negative Gates - Exclusive Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082902/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=HE2fHBFyHZLX70i3tzJWpI%2F207g%3D","introduction-to-logic-gates-basic-gates-negative-gates-exclusive-gates",1792961945,{"doc_id":190,"doc_title":191,"file_type":138,"home_preview_img_url":192,"slug":193,"view_count":105,"category_name":30,"create_tm":188},655474,"Lecture Two - Logic gates - AND gate - OR gate - NOT gate - Universal Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082901/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=4KiMQqB46R8MMQhFEuwSs155Z48%3D","lecture-two-logic-gates-and-gate-or-gate-not-gate-universal-logic-gates",{"doc_id":195,"doc_title":196,"file_type":138,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},655471,"Logic Gates and Typical Functional Blocks - Lectures Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773833/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=YxikprD7axj84mgOIe4MgcMM0gg%3D","logic-gates-and-typical-functional-blocks-lecture-notes",15,1792961922,{"doc_id":202,"doc_title":203,"file_type":138,"home_preview_img_url":204,"slug":205,"view_count":39,"category_name":30,"create_tm":206},655465,"Digital Logic Gates 1.0 - Features and Component Parameters - Functional Descriptions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773809/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=zu6ouBTcd6EtFFDmlUaS5MBs74o%3D","digital-logic-gates-10-features-and-component-parameters-functional-descriptions",1792961912,{"doc_id":208,"doc_title":209,"file_type":138,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":30,"create_tm":213},655483,"Logic Gates - Principles and Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975082996/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=tMLjAa%2FiGx%2B2KWiid1aXUSbWlzI%3D","logic-gates-principles-and-operations",11,1792961968,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":44,"category_name":30,"create_tm":219},655467,"Logic Circuits - Definition of Logic Gates - AND, OR, NOT Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=%2FbS6xbM34fHRYHZUVRsIfKL8gMM%3D","logic-circuits-definition-of-logic-gates-and-or-not-gates",1792961914,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":44,"category_name":30,"create_tm":225},655472,"Interpreting Logic Gates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974773836/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112479&Signature=yr1iLwvxfqiRtIaRwcY%2FzQKYo60%3D","interpreting-logic-gates",1792961924]