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. True

  2. False

  3. Sometimes

  4. Can't say

  5. None of these

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

In Excel, macros CAN be used to validate cell values through VBA programming. The Data Validation feature can use custom formulas, and event macros like Worksheet_Change can check and validate cell contents when they're modified. The statement is false because Excel provides multiple ways to validate cell values using macros.

Multiple choice
  1. from the innermost loop or switch

  2. only from the innermost switch

  3. only from the innermost loop

  4. from the program

  5. from the outermost loop

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

The break statement is a jump statement which causes an exit from the innermost loop or switch.

Multiple choice
  1. a is pointer to integer

  2. a is pointer to an array of pointers to integer

  3. a is pointer to function which returns integer

  4. a is a pointer to array of size 5

  5. an array of pointer to function returning pointer to function returning pointer to integer.

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

This is the correct answer.