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. Structure is the user defined data type .

  2. Structures are used to combine different data elements.

  3. Structures are used to represent the records.

  4. We can define pointer to structures.

  5. None of the above

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

All of the above are true statements.

Multiple choice
  1. A restrict pointer ensures the only means by which the object it points to can be accessed.

  2. It ensures that the variable's value may be changed in ways not explicitly specified by the program.

  3. It ensures that we can not change objects of type const during program execution.

  4. It is not defined in C++.

  5. None of the above

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

This is a true statement about 'restrict' type qualifiers in C++.