What you learn today
- Quiz on bitwise operations, shifts and bit fields
The expert level started with bits. For review:
- Binary and hex:
%1010is 10,$FFis 255, underscores make long numbers readable. - Bitwise logic:
andtests and clears,orsets,xortoggles,notflips all bits. - Shifting:
sll/slato the left,srllogically andsraarithmetically to the right. - Rotating:
rolandrorshift in a circle – within 54 bits. - Bit fields:
exttakes a field out,insputs one in, at most 53 bits long.
You pass from 60 %. You can solve the math questions in your head if you think in binary.
Weekly quiz
10 questions. You pass from 60 % – the server does the grading.
Complete the day
- Passed the quiz with at least 60 %
Without an account progress is saved in this browser only.
Report a mistake in this lesson
Please sign in to report. Sign in