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

  2. 1

  3. 101

  4. 111

  5. 110

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

This is the correct choice.

Multiple choice
  1. Automatic storage class

  2. Register storage class

  3. Storage structure

  4. External storage class

  5. The RemoteStackVariable class

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

A variable is said to belong to the external storage class, if the validity of the variable is from the point of definition to the rest of the program.

Multiple choice
  1. Auto

  2. Register

  3. Static

  4. Extern

  5. Intern

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

The static storage class instructs the compiler to keep a local variable in existence during the lifetime of the program instead of creating and destroying it each time it comes into and goes out of scope. Therefore, making local variables static allows them to maintain their values between function calls.