Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(S. 20pta) Multiple choice questions (2 points each). Cirele one correct anewer

ID: 3755679 • Letter: #

Question

(S. 20pta) Multiple choice questions (2 points each). Cirele one correct anewer more than one answer is circled, you will not got any credt - Which one of the following improves orthogonality of a programming tanguage? (a) A manageable set of features and constructs (b) Minimal feature multiplicity (c) Adequate predefined data types (d) A relatively small set of primitive constructs that can be combined in a relatively smal number of ways without exceptions (e) None of the above to com- -Which one of the following is incorrect about interpreted languages in comparison to eat piled programs? (a) Easier implementation and debugging of programs (run-time errors can easily and im- mediately be displayed) (b) Slower execution (10 to 100 times slower than compiled programs) (c) Requires less storage space (d) None of the above is incorrect (All are correct), - What is the meaning of Von Neumann bottleneck? (a) The low connection speed between the memory and the processor (b) The impediment to readability of the "goto" statement (c) The increased amount of time needed to interpret a source program compared to translation- based approaches (d) None of the above - Which one of the following is incorrect about the addresses of variables? (a) A variable may have different addresses at different times during executiorn (b) A variable may have different addresses at different places in a program (c) If two variable names can be used to access the same memory location, they are called aliases 3

Explanation / Answer

1: Option D Orthogonality means that operations change just one thing without affecting others.

2: Option D All options are correct.

3: Option C A faster processor just means that it will spend more time idle.

4: Option A While compling any program compiler gets the current available address for processes to compile the program.

5: Option B because stack uses recursive functions.

6: Option A allocation and de-allocation in heap-memory

7: Option D type allocation at load time and operator operates at run time.