Question
Easy
A variable declared within the block {} has the following scope:
1
File Scope
2
Local Scope
3
Class Scope
4
Global Scope
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option B
Explanation
The correct option is (2): In the context of programming languages such as C and C++, a variable declared inside an arbitrary block of code, delimited by curly braces ({}), is said to have Local Scope or, more specifically, Block Scope. The fundamental principle of this scope is that the variable is created when the program execution enters the block and is automatically destroyed when the execution exits the block.тАжRead More
Similar Questions from REET Exam - Paper 1 - Year 2018
Question 1
Easy
Source :
HTET 2021
In the metallurgy of Aluminium, what is mixed with purified $Al_{2}O_{3}$ to lower the melting point of the mixture ?
Chapter :
Metals and Non-Metals
Topic :
Metallurgy
Question 2
Easy
Source :
HTET 2021
What is the maximum age limit member's of national commission for consumer protection ?
Chapter :
Computerised Accounting and Trade Environment
Topic :
Consumer Protection
Question 3
Easy
Source :
HTET 2021
Who is credited with implementing the Rolling Plan in India?
Chapter :
Indian Economy тАУ Development
Topic :
Economic Planning
Question 4
Easy
Source :
HTET 2021
What would be the Iso-quant curve in the case of perfectly complementary factors ?
Chapter :
Microeconomics: Firm Behavior & Markets
Topic :
Production & Cost