LOGIC GATES
   Guest   
Q

 

A program is to simulate the operation of a particular type of logic gate.

• The gate has two inputs (TRUE or FALSE) which are entered by the user.

• The program will display the output (TRUE or FALSE) from the gate.

The program uses the following identifiers in the pseudocode below:
 
IDENTIFIER   DATA TYPE                   DESCRIPTION 
Ina              BOOLEAN                     INPUT SIGNAL
Inb              BOOLEAN                     INPUT SIGNAL
Outz            BOOLEAN                     OUTPUT SIGNAL

 

 

[4]

 

The selection statement (lines 04 – 09) could have been written with more simplified logic.

Rewrite this section of the algorithm in pseudocode. [3]

 



Out of / 7 marks

Your Work
You are not logged in! You can answer but you cannot save your work.    SIGN UP   SIGN IN
Times Taken 0  
 

RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
RadEditor's components - toolbar, content area, modes and modules
   
Toolbar's wrapper 
 
Content area wrapper
RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
Editor Mode buttonsStatistics moduleEditor resizer
  
RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.
   
 
Spin UpSpin Down