12 Questions
What does GOSUB do in early BASIC variants?
Jumps to a specified line number
What happens when an argument is passed ByRef?
The procedure can modify the passed variable
In Microsoft Small Basic, what is the keyword used to denote the start of a subroutine?
Sub
In C and C++, what is a function that does not return a value called?
Void function
What does passing an object ByVal do?
Copies the reference to the object
What does the keyword 'Function' represent in Visual Basic (VB)?
Returning no value
What is the default data type for parameters in Visual Basic (VB) if not specified?
Object
In PL/I, what information can be provided by a descriptor when passing arguments to a procedure?
String lengths and array bounds
What does the Sub keyword signify in relation to returning values in Visual Basic (VB)?
Returning no value
What does the ampersand (&) signify when used in a function call like addTwo(&v)?
It stands for address of v
What characteristic distinguishes a free function from a member function in C++?
Definition within a class
What concept does the procedure represent in Visual Basic (VB) when used in a class?
Method
Learn about the GOSUB command in early BASIC variants, which allows control to jump to a specified line number in the code, execute a subroutine, and then resume execution at the next line. Explore how this feature influenced programming styles in early BASIC implementations.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free