Computer Knowledge

Programming Fundamentals

2,611 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. It increases the running time of programs

  2. It makes program verification difficult

  3. It increases the memory required for programs

  4. It results in compiler generating larger machine code

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

The goto statement creates non-linear control flow, making it difficult to trace the state of the program and verify its correctness.

Multiple choice
  1. To exit from the program.

  2. To exit from the loop.

  3. To end the current iteration and jump to the next iteration.

  4. None of these

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

Break statement is used for exiting from the loop, hence this is the answer.