Question 82Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

In C++, namespace defines a ________ for the identifiers that are used in a program.

  1. Asize
  2. Bscope
  3. Csyntax
  4. Dstandard
Show answerHide answer

Correct answer: (B) scope

Explanation

A namespace defines a named scope for identifiers, so names such as std::cout do not clash with the same names elsewhere.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 82 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.