1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
alexdok [17]
3 years ago
15

2. Assuming that the bits in an integer are numbered from 0, from right (least significant) to left (most significant), write an

expression using bitwise logical operators to extract the 4 bits numbered 6 to 3 from an integer i1, and shift them all down so that bit numbered 3 ends up in position number 1.
Computers and Technology
1 answer:
3241004551 [841]3 years ago
4 0

Answer:

Explanation:

Two ways of interpreting this question

(I) Shifting all the bits along with the choosen four,

in that case it will be i1>>2;

(ii) Just shifting the choosen four bits and keeping the remaining as it is.

It is equivalent to replacing the first four bits of i1 with i1>>2. let us call N = i1, and M = i1>>2.

max = ~0 //All one's

//1's through position 4, then all zeros

left = max - ((1<<4) - 1);

So we just have zeros between bits one to four and other are one.

Now final step;

(N&left) | m

You might be interested in
How does knowledge of disk management assist in terms of increasing systems performance 10marks
AlexFokin [52]

Answer:

<h3>bagaimana pengetahuan tentang manajemen disk membantu dalam hal meningkatkan kinerja sistem 10marks</h3>
4 0
2 years ago
Joaquin is considering a career as an animator and wants to know more about the daily work of an average animator. Which strateg
Advocard [28]
Lacking a response to my question, I'll assume there's no "correct' answer here. 

Joaquin could contact the university's graphic arts department, or if he's interested in the programming side of it, the computer science department, and ask if they have any information on the topic. If he's already majoring to become an animator, then he should talk to one of his professors to see if they know someone in the business that would speak with Joaquin. 

The faster and better way would be to go to reddit, or some site at which animators congregate (most probably found through Google), read the forums, and create if he's not finding a suitable answer.
3 0
4 years ago
What is a good principle to implement when you find yourself attempting to
Maurinko [17]

its less is more A

to much could make it really bad

5 0
4 years ago
What are advantages of using document templates?
Sergeeva-Olga [200]

The benefits of using templates. Creating new documents for every opportunity your company approaches can waste valuable time and money. Instead, focus on original, internal templates that can be utilized for a variety of projects, including enterprise communications, as well as customer projects

4 0
3 years ago
Read 2 more answers
Software that interprets commands from the keyboard and mouse is also known as the ​
Luda [366]

Answer:

THE OPERATING SYSTEM (OS)

Explanation:

6 0
4 years ago
Other questions:
  • Where should you look for most objective and unbaised information
    15·1 answer
  • The type of meter used to test downstream digital signal quality
    12·1 answer
  • Circular errors are caused by adding the cell name of a/an _______ cell to a formula.
    8·1 answer
  • An Alias is a nickname???
    7·1 answer
  • D. The 7-bit ASCII code for the character '&amp;' is:
    7·1 answer
  • Write a program that prints the following 45 pairs of numbers:
    8·1 answer
  • ¿Consideran que nuestra sociedad chilena (modelo económico, los medios de comunicación, educación, la publicidad) promueve la sa
    11·1 answer
  • Select the correct term to complete the sentence.
    7·1 answer
  • Write an SQL query to list all the records from the member and branch tables.
    6·1 answer
  • the function must find the substrings of s that start with a vowel and end with a consonant, then print the alphabetically first
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!