(A) 2,2
(B) 4,4
(C) 2,4
(D) 4,2
Tag: Introduction to Programming
4,2 will be output of the previous question if the parameters are passed by:
(A) reference
(B) name
(C) value
(D) none of the above
COMMON feature of a FORTRON is not found in most of the languages that followed it because:
(A) it is difficult to implement
(B) memory is not of primary concern now a days
(C) virtual memory concept obviats it
(D) all of the above
Binding (of an identifier to a value) can occur while:
(A) writing a program
(B) compiling a program
(C) invoking a sub-program and executing a program
(D) all of the above
For which of following application will you prefer a co-routine to a sub-routine:
(A) simulation of multi-processing
(B) complex searching process
(C) handling inter-leaved lists
(D) all of the above
Jensen’s device makes explicit use of the property of:
(A) value parameters
(B) reference parameters
(C) name parameters
(D) value-result parameters
Heap allocation is required for languages that:
(A) support recursion
(B) support dynamic data stuctures
(C) use dynamic scop rules
(D) none of the above
Which of the folliwing is dangling reference:
(A) Accessing a storage that is already disposed at the request of the user
(B) Accessing a storage that is already disposed at the request of the processor
(C) Accessing a storage that is declared but not initialized
(D) All of the above