Multiple choice technology databases

A procedure can have a procedure declaration inside

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
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.