Which of the following are the two ways dynamic scoping can be
implemented?
(May contain more than one possible answer)
A.) Shallow access
B.) Shallow binding
C.) Deep access
D.) Deep binding
Which of the following are the two ways dynamic scoping can be implemented? (May contain more...
1. Which of the following is a problem with dynamic scoping? Readability Access to nonlocal variables takes longer Static type checking may not be possible 2.Languages with dynamic type binding are usually implemented using: Compilers Interpreters Hybrid implementations JIT 3.Which variables are created using operator new? Static Stack-dynamic Explicit heap-dynamic Implicit heap-dynamic 4.Which variables are bound to memory cells before program execution and remain bound to the same memory cell during program execution? Static Stack-dynamic Explicit heap-dynamic Implicit heap-dynamic
Consider the following pseudocode which uses dynamic scoping. What does the program print if the language uses shallow binding? What does it print with deep binding? x: integer//global procedure print_x write_integer (x) procedure first x:= x * 3 procedure second (F: procedure) x: integer x: = 5 F () print_x () x: = 7 second (first) print_x ()
Aliases can be created by which of the following language constructs? (May contain more than one possible answer) A.) The union types of C and C++ B.) Assignment statements C.) Pointer assignments D.) Whole array operators
You may choose more than one answer. Which of the following is/are ways that a signal can be 'turned off'? heterologous desensitization homologous desensitization addition or removal of a phosphate group by a kinase feedback repression
Which of the following statements is true for DNA only? ( it can be more than one) A. It contains the pyrimidine thymine. B. Bases are attached to sugars in an α-N-glycosidic linkage. C. It contains the sugar ribose. D. It contains a 2' hydroxy group. Which of the following statements is true for both DNA and RNA? ( can only be one) A. Both can be hydrolyzed in alkaline solution. B. In base composition, %G = %C. C. In...
In which of the following numeric systems can you have two versions of zero? You may select more than one answer, but note that each incorrect answer will result and get full value. (Your final score for the question can never be less than ) a partial reduction in your score for the question - so you can't just select every answer Select one or more: a. Excess-M b. Signed magnitude C. Two's complement d. One's complement Assuming a signed...
Show the stack with all activation record instances, including the dynamic chain, when execution reaches position 1 in the following skeletal program. This programuses the deep-access method to implement dynamic scoping.void fun1(){float a;}void fun2(){int b, c;}void fun3(){float d;<--------1}void main(){char e, f, g;}The calling sequence for this program for execution to reach fun3 ismain calls fun2fun2 calls fun1fun1 calls fun1fun1 calls fun3
QUESTION 1 You may choose more than one answer Which of the following are modifications of proteins which may affect protein function? phosphorylation ubiquitination disulfide bonds GTP binding QUESTION 2 You may choose more than one answer. Which of the following post-translational modifications of proteins occur in the lumen of the endoplasmic reticulum? proteolytic cleavage formation of disulfide bonds aldol condensation of sugars glycosylation conformational folding and formation of quarternary structure QUESTION 3 You may choose more than one answer....
Which of the following are ways to declare a new data type in C++? more than 1 choice is accepted A. There is no need to declare the data type in C++ B. Using the new keyword C. Create an alias using typedef D. Create a new type by using class or struct. E. Create an extension of an existing type using inheritance. F. Using the auto keyword QUESTION 6 When an object is copied by assigning each of the...
dentify the following as better representing static rather than dynamic binding. if static is better answer correct, else leave blank a) an int is an int forever and ever amen b) 2/2.0 = 1.0 c) 3/2.0 -> error message d) binding is done at compile time e) binding is slower but more flexible a. static b. dynamic c. static d. static e. dynamic