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. ending of the loop

  2. beginning of the loop

  3. middle of the loop

  4. none of the above

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

In a do-while loop, the 'do' keyword marks the beginning of the loop block, while the condition is checked at the end.

Multiple choice
  1. if statement

  2. if - else statement

  3. switch statement

  4. none of the above

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

The switch statement is the standard C construct for multiway branching, allowing a variable to be tested for equality against a list of values.

Multiple choice
  1. address of a varible

  2. indication of a variable

  3. variable which stores the address of another variable

  4. none of the above

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

A pointer is a variable that stores the memory address of another variable, allowing indirect access to the data stored at that address.

Multiple choice
  1. LIFO

  2. FIFO

  3. FILO

  4. None of the above

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

A stack is a linear data structure that follows the Last-In, First-Out (LIFO) principle, where the last element added is the first one to be removed.