Computer Knowledge

Programming Fundamentals

2,381 Questions

Programming fundamentals form the core logic of software development and computer science. This includes variable declarations, pointer assignments, loop iterations, and exception handling. These technical topics are regularly tested in computer knowledge and IT officer competitive examinations.

Variables and arraysPointer assignmentsLoop iterationsException handling blocksCompile time errorsFunction references

Programming Fundamentals Questions

Multiple choice
  1. This instruction moves contents of register A to register B.

  2. This instruction moves contents of B register to A register.

  3. This instruction moves contents of register A and register B to accumulator.

  4. None of these

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

This is the correct description of the mnemonic code as in the instruction, first operand is the destination address and second operand is the source address.

Multiple choice
  1. LDA and STA

  2. MVI group

  3. ADD instructions

  4. LDAX and STAX

  5. Subtract instructions

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

These instructions provide a means of moving data between the accumulator and a memory location indirectly, with the RAM address contained in either BC or DE register pair in 8085 processor.

Multiple choice
  1. compilation

  2. assembling

  3. debugging

  4. execution

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

Debugging is the process of identifying and fixing errors in a computer program. It involves testing, analyzing code behavior, and making corrections to eliminate bugs. Compilation translates source code into machine code but doesn't fix errors. Assembling converts assembly language to machine code. Execution simply runs the program without making corrections. Only debugging specifically focuses on correcting program errors.