Computer Knowledge

Digital Logic and Microprocessors

749 Questions

Digital logic and microprocessors form the core of computer science, covering logic gates, combinational and sequential circuits, and CPU architecture. These topics are crucial for computer knowledge sections in technical exams. Test your digital electronics basics here.

Logic gates and circuitsCombinational vs sequential circuitsMicroprocessor instructionsTruth tables and boolean functions

Digital Logic and Microprocessors Questions

Multiple choice technology programming languages
  1. ^

  2. !

  3. &

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

The ^ (XOR), & (AND), and | (OR) operators can be used both as integer bitwise operators (operating on individual bits) and boolean logical operators (operating on boolean values). The ! operator is only a boolean logical operator (logical NOT) and has no integer bitwise counterpart.

Multiple choice technology mainframe
  1. Branch on One

  2. Branch on Overflow

  3. Branch on OK

  4. None of These

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In IBM mainframe assembly, BO (Branch on Overflow) is a conditional branch instruction that transfers control when the overflow condition code is set. This occurs after arithmetic operations that exceed the register capacity. Option A (Branch on One) would likely be a different instruction; Option C is not a standard conditional branch.

Multiple choice technology mainframe
  1. Branch Instruction

  2. Arithmetic Instruction

  3. Decimal Instruction

  4. Assembler Directive

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

ZAP (Zero and Add) is a decimal instruction in IBM mainframe assembly that performs decimal arithmetic by converting packed decimal format. It's not a branch instruction (A), general arithmetic instruction (B uses binary arithmetic), or assembler directive (D which provides metadata to assembler). Decimal instructions specifically work with packed decimal data formats.

Multiple choice technology mainframe
  1. Register Operands

  2. Storage Operands

  3. Implied Operands

  4. Immediate Operands

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In IBM z/Architecture (Mainframe) assembly, decimal instructions (such as AP, SP, ZAP) operate on Packed Decimal data. These instructions are 'SS' (Storage-to-Storage) format, meaning both operands reside in memory (storage) rather than registers. This allows for processing large numbers that exceed register sizes.

Multiple choice technology
  1. N = 1

  2. N = 2

  3. N = 3

  4. N = 4

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Sort component in Ab Initio has exactly 2 ports - one input port for receiving unsorted data and one output port for delivering sorted data. This N=2 configuration is fundamental to its single-input single-output design.

Multiple choice technology
  1. Programmable Logic Array

  2. Program Logic Array

  3. Programming Logic Array

  4. Programmable Logical Array

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

PLA stands for Programmable Logic Array, a digital logic device that can be programmed to implement specific combinational logic functions. Option B is incorrect (Program instead of Programmable), Option C uses wrong word form (Programming), and Option D is incorrect (Logical instead of Logic).

Multiple choice technology
  1. Multi-Dimenssion Metal-Oxide Semiconductor

  2. Multi-Drain Metal-Oxide Semiconductor

  3. Multi-Drain Metal-Oxide Spectrometer

  4. Multi-Diagonal Metal-Oxide Spectrometer

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

MD-MOS stands for Multi-Drain Metal-Oxide Semiconductor, which refers to MOSFET devices with multiple drain terminals. These devices are used in analog applications where multiple output currents or signal routing from a single gate input is required.

Multiple choice technology
  1. Lenz Lnz Control

  2. Logical Link Control

  3. Lei Lab Copyright

  4. Logic Level Converter

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

LLC stands for Logical Link Control, one of the two sublayers of the Data Link Layer in the OSI model. It provides flow control and error management over the physical medium, and works with the MAC sublayer to form the complete Data Link Layer.

Multiple choice technology mainframe
  1. Binary Arithmetic

  2. Decimal Arithmetic

  3. Floating point arithmetic

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

IBM Assembler supports binary (fixed-point), decimal (packed or zoned), and floating-point arithmetic instructions to handle different types of numeric data. Since these three options cover the valid arithmetic modes, 'None of the Above' is incorrect.

Multiple choice technology
  1. AND , OR

  2. NAND, NOR

  3. NAND, EX-OR

  4. EX-OR, EX-NOR

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

NAND and NOR gates do not satisfy the associative law: (A NAND B) NAND C ≠ A NAND (B NAND C). In contrast, AND and OR gates are associative. This property makes NAND and NOR fundamentally different in circuit design.

Multiple choice technology mainframe
  1. R8

  2. R12

  3. R9

  4. R10

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When a TPF program is executing, Register 9 (R9) is designated to point to the ECB (Event Control Block). The ECB contains crucial information about the program's execution context, and R9 is the architecturally defined register that holds this pointer, allowing the program to access control information.

Multiple choice technology embedded technologies
  1. ADD

  2. XOR

  3. MOV

  4. SUB

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The MOV instruction transfers data between registers or memory locations without performing any arithmetic or logical operation. Since it doesn't modify the data, it doesn't affect processor flags like Zero, Sign, Carry, or Overflow. Instructions like ADD, SUB, and XOR perform operations that modify these flags based on their results.