In C, what happens when an identifier declared in an inner block has the same name as an identifier declared in an enclosing block?
Asked in GPSC ICT Officer, Class-2 2026
Show answer
Answer: C. The inner declaration shadows the outer identifier, making the outer identifier inaccessible by its unqualified name within the inner block.
This previous-year question came without the commission's answer key; the answer was checked by AI. Always confirm with the official key.
More GPSC Prelims previous year questions questions
- Identify the true/false statements from the following: Statement-I: Photoperiodism can also be defined as the developmental responses of plant to the relative length of light and dark periods. Statement-II: Vernalization is defined as the qualitative or quantitative dependence of plant to flower on exposure to a low temperature.
- Choose the statement which is not true from the following.
- Select the odd statements related to rootstock used in fruit crops: 1. Grape – Malling 9 2. Sapota – Khirni 3. Apple – Dogridge 4. Citrus – Jambheri
- Choose the statements which are false from the following: 1. Anatomy is the study of an internal structure of an organism, while morphology is the study of various external features of an organism. 2. The term ‘phloem’ is derived from the Greek word ‘phloios’ meaning stem. 3. Among many environmental factors, Carbon (C) and Oxygen (O) are crucial for the plants to perform routine and fundamental cellular activities. 4. Meristematic cells in a plant body divide continuously throughout the life of a plant. 5. Lateral meristems are found in the apical part of the stem and roots and they contribute to the plant thickness. 6. The flowering plants are referred to as angiosperms.
- Find out the odd statement from the following.
- Choose the statements which are not false from the following: 1. Majority of area in Gujarat comes under coastal tropical zone. 2. Physical properties of soil are more important than chemical properties. 3. Subsoil is more important than surface soil in fruit crop cultivation. 4. Slope of site more than 1% makes the land almost unsuitable for cultivation.
- Identify the true/false statement from the following: Statement I: Grape is a woody perennial climber. Statement II: Fruit development in grape is due to vegetative parthenocarpy.
- Which of the following group (states) has major share in fruit crop production?