Question

In: Computer Science

Anwser questions : 1. Complexity of instruction selection depends upon Select one: a. Level of the...

Anwser questions :

1. Complexity of instruction selection depends upon

Select one:

a. Level of the IR

b. Desired quality of the generated code

c. Nature of the ISA

d. All of them

2.

Which is NOT part of a language runtime system?

Select one:

a. process scheduling

b. Multi-threading support

c. Exception handling

d. Memory allocation

3. What is the grammar G for the following language?

          L (G) = { 0n 1n | n>=1 }

Solutions

Expert Solution

1. Answer--- option D

Complexity of instruction selection depends upon, Level of the IR , Desired quality of the generated code , Nature of the ISA.

Explanation-----------

  1. Level of IR can help to genrates more efficient code.
  2. completeless of ISA may affets our code.
  3. context and amount of information to the process affects the code quality.            

These all factors are depends upon, complexity of instruction selection.

2. Answer----- option A

process scheduling.

Explanation------------------

  1. Dynamic or runtime multi -threading are used.
  2. Exception handling are used in runntime. Its a runtime mechanism to check if any exception is occurs or not.
  3. memmory allocation contains comiple time or also runtime. Its also called as dynamic memory allocation.so its also part of runtime system.
  4. now, process scheduling is just, the activity of the process manager that handles the remove of the running process from the CPU and the select the another process.

so, Process scheduling is not the part of process scheduling. so, answer is option A.

Q.3 Answer---

the language L (G) = { 0n 1n | n>=1 }. here both the 0 and 1 accept grammer upto n.

now consider, n=0 then our grammer is 0^1 and 1^1= 01

if n=2 then we get 0011.

so, grammer L(G) = {01,0011,000111,00001111.......................}.

If you have any problem concern with this, then please feel free to ask in comment section. I will always there for you in any time. and dont forget to hit the like button. Thumbs up guys...


Related Solutions

Based upon the readings and the videos in this module, select one of the following questions...
Based upon the readings and the videos in this module, select one of the following questions to respond to for this module for your initial response. Try to pick a question of personal and/or of professional interest to you. Copy and paste the question you select in bold type as part of your initial response so that everyone can see your question choice. Discuss the potential view that the costs of establishing and maintaining accounting standards enforcement bodies in every...
1. The price level depends upon? a. interest rate and employment. b. total spending and total...
1. The price level depends upon? a. interest rate and employment. b. total spending and total production. c. the level of total spending and labor productivity. d. unemployment rate and total production e. total interest and market rate
Select one answer as the best response and explain your reason for the selection. 1. Generally...
Select one answer as the best response and explain your reason for the selection. 1. Generally speaking technological progress leads to higher output purely because it raises the productivity of capital purely because it raises the steady-state capital stock because it raises both the productivity of capital and the steady state capital stock purely because it increases the capital stock for a given production function purely because it raises the output produced by a given capital stock Explain your answer:...
1. Which of the following types of evolution result in adaptations? Select one: a. Sexual selection...
1. Which of the following types of evolution result in adaptations? Select one: a. Sexual selection b. Natural selection. c. Genetic Drift d. All of the above. e. Both A & B 2. According to the video on the jumping peacock spider, males attract a mate using... Select one: a. Visual signals b. Chemical signals c. Acoustic signals d. All of the above e. Both A & C 3. Which type of sexual selection is depicted in the jumping spider?...
Directions: Select the correct answer to the following questions and provide a rationale for your selection...
Directions: Select the correct answer to the following questions and provide a rationale for your selection in the spaces provided. 9. A nurse who has just assumed the role of unit manager is examining her skills in interprofessional collaboration. Which of the following actions support interprofessional collaboration? (Select all that apply.) ____ A. Use aggressive communication when addressing the team. ____ B. Recognize the knowledge and skills of each member of the team. ____ C. Ensure that a nurse is...
In the practice, the sample method selection which is used by auditor is: Select one: a....
In the practice, the sample method selection which is used by auditor is: Select one: a. Simple random selection b. Block sample c. Systematic sample d. Probability sample
Reducing balance depreciation: Select one: a. Is an accelerated depreciation method b. Depends on the net...
Reducing balance depreciation: Select one: a. Is an accelerated depreciation method b. Depends on the net book value of the asset at the beginning of the year c. Is appropriate for assets that loose most of their value at the beginning of their life d. All of the above are correct
Piagetian theory, as applied to music instruction, involves Select one: a. Progressive stages of musical development...
Piagetian theory, as applied to music instruction, involves Select one: a. Progressive stages of musical development and a sound-before-symbol approach.  Age eight is a watershed year in a child's cognitive development. At this time, children are capable of identifying timbres, discriminating among random melodies, and perceiving structure in simple melodies, although they are less successful in perceiving the sound of more than one simultaneous musical line (or harmony). b. Learning I occurs without effort, as music within the environment is absorbed...
The most important factor(s) effecting the learning curve rate include(s): Select one: A. Complexity of the...
The most important factor(s) effecting the learning curve rate include(s): Select one: A. Complexity of the task B. Percentage of mechanical input C. Percentage of human input D. Only A and C Yield management, also known as revenue management is the amount of output of acceptable quality emerging from a production system compared with the amount that entered it. Select one: True False Obtaining lower unit costs through the use of larger facilities is called economies of scope. Select one:...
1. Entity-level controls are__________ Select one: a. Are designed to supplement a key control that is...
1. Entity-level controls are__________ Select one: a. Are designed to supplement a key control that is either ineffective or cannot fully mitigate a risk or group of risks by itself. b. Are designed to mitigate risks that threaten processes, activities, tasks, and transactions. c. Are designed to reduce key risks associated with business objectives d. Are designed to directly mitigate risks that exist at the organization-wide level. 2. Which of the following statement regarding risks and controls associated with business...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT