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

1:Consider the following statement: The behavior that a user sees a program exhi

ID: 3748605 • Letter: 1

Question

1:Consider the following statement: The behavior that a user sees a program exhibit is fully defined in the machine code contained by it's executable. Is this statement correct? Answer yes/no, and justify your answer.

2:

In older computers, pixels representing the screen were stored at specific memory addresses (e.g. 0xC00000 to 0xFF0000). This meant that setting the color value of a pixel was as simple as doing an operation to change the contents of memory location (e.g., POKE (0xC0000000+640*y+x 0x990033) to set the pixel at x,y to a maroon color (990033 is a standard hex color). On a more advanced system, there would be additional region (say 0xFF0000 to 0xFFFFFF) which stored a color palette, where 0xFF0000 contained the color 0, 0xFF0001 contained the color 1, and so on. What type of effect can be efficiently implemented in graphics applications if the system uses a pallet instead of direct color values? Explain why your effect would be slow without a pallet.

Explanation / Answer

Please Note: I have answered the first question according to the Chegg Answering Guidelines. Please Re-Post for the other Questions.

1: Consider the following statement: The behavior that a user sees a program exhibit is fully defined in the machine code contained by it's executable. Is this statement correct? Answer yes/no, and justify your answer.

Answer)

The behavior that a user sees a program exhibit is fully defined in the machine code contained by it's executable.

This is Not True.

Thus, No.

This is because, simply speaking when a program runs as instructions in machine code, different processors behave differently, also, memory arrangement, operating systems, or peripheral devices differ. A program relies on these and such factors to execute and thus the behavior changes from the above usages, by executing different behavior in different systems.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote