Multiple choice technology databases

A procedure can have a procedure declaration inside

  1. True

  2. False

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

In many programming languages, such as Pascal or PL/SQL, procedures can contain nested procedure declarations. This allows for helper routines local to the outer procedure scope.

AI explanation

This is testing whether nested procedure/subroutine declarations are permitted. In many block-structured languages (e.g., Pascal, Ada) nested procedures are explicitly allowed, but in languages like C/C++ and in the generic structured-programming teaching model this question seems to draw from, a procedure cannot contain another procedure's full declaration inside its body — only calls to already-declared procedures. Given no other language is specified, False (nesting not allowed) matches the common 'no nested procedure declarations' teaching point, though the answer is genuinely language-dependent.