Answer the following questions true (T) or false (F)

1. A variable declared within a function block is said to be local to the function.

2. Consider two blocks, one within another. If an identifier is declared as a variable in the inmost of these two blocks, one can access this variable from the outer block.


1. True
Explanation: Such a variable is said to be local to the function or to have the function as its scope, and is also known as a local variable if the scope is clear from the context.
2. False
Explanation: The scope of a local variable extends from the definition to the end of the block in which the variable is defined. This excludes the outer block.

Computer Science & Information Technology

You might also like to view...

To check whether system or resource errors have occurred, you should check the events in the Windows application log and SQL Server log.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If you have multiple artboards, use the Fit All in Window option to view all artboards in the document window.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A ________ style contains formatting characteristics that you apply to text

Fill in the blank(s) with correct word

Computer Science & Information Technology

Multiple fields may be used when sorting records.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology