Update
This commit is contained in:
parent
21973f4724
commit
a8a9ce5cfc
22 changed files with 2026 additions and 1983 deletions
|
@ -535,7 +535,8 @@ Bear in mind this is not a school test that's supposed to decide if you get to a
|
|||
125. Write the hexadecimal values of a pure green color in 24 bit RGB, [RGB565](rgb565.md) and [RGB332](rgb332.md) formats.
|
||||
126. You're a [gigachad](gigachad.md) currently headed to a bar from a concert of three cute Thai singers. Entering the bar you see the singers sitting at the bar. From Internet you know two are [transsexual](transsexual.md) and one is a biological women, but because Asians look all the same you don't know which is which -- of course you want to get laid by the real woman while avoiding a chick with penis because that's [gay](gay.md). You can't ask them about this as such questions are forbidden and you'd get [cancelled](cancel_culture.md), so you randomly choose one of them and start hitting on her. Suddenly one of their Asian friends comes who is visibly gay and enjoys cock, he slaps one of the other chicks' ass and they leave together, so you know that chick was a tranny. Taking into account [probability](probability.md), should you keep hitting on your current chick or rather switch to hitting on the other one that's now left from the pair? Or does it not matter? Explain your reasoning.
|
||||
127. Someone wants to kill you in a very special way: he [magically](magic.md) shrinks you so that you're just 2 cm tall and puts you in a blender, but doesn't put the lid on as he's convinced you can't escape. The blender will be turned on in one minute. What do you do?
|
||||
128. Did you enjoy this quiz?
|
||||
128. When a download manager is about to start downloading a file whose size is known, it usually reserves the whole space that will be needed for the file on the disk beforehand by creating a file of that size, into which it subsequently writes the data as it's downloaded. What is the main reason for doing this? Why doesn't the program simply create an empty file and then keep appending data to it as it gets downloaded?
|
||||
129. Did you enjoy this quiz?
|
||||
|
||||
### Answers
|
||||
|
||||
|
@ -665,9 +666,10 @@ sin(x) / cos(x) - log2(2) = tg(x) - 1*, so we get *tg(x) >= 1*. So that will hol
|
|||
123. Constant bitrate means a given time unit of the video will always be encoded with (at least approximately) the same number of [bits](bit.md). One second of the video will therefore take the same size no matter how complex or simple the encoded scene is. Advantages are for example being able to estimate size of any video just from its duration alone, easier seeking and rewinding to a random position, or that during streaming over network there will be a constant number of bits transferred per second, which is very predictable and good for many protocols. Disadvantage may be that sometimes space is wasted (we encode a simple scene with more bits than necessary) and that quality of the video won't be constant (scenes for which bits don't suffice will have to have their quality lowered).
|
||||
124. Draw the shit on paper: draw a ball (Earth) and a point above it (ISS), then draw a tangent line from the point to the ball. Then draw a line from the ball center to the ISS and from the ball center to where the tangent line touches that ball (the horizon). Obviously there's a right angle at the tangent line touch point, so we have a right triangle. One side is the Earth radius and the longest side is the radius plus the orbit height. From this we compute the remaining side as *sqrt((6378 + 400)^2 - 6378^2)*, which gives us approx. 2293 km.
|
||||
125. 24 bit RGB is easy: 00ff00. For 565 we want a 16 bit value whose upper and lower 5 bits are zero, with the middle bits being ones, i.e. 0000011111100000 in binary, which is 07e0 in hexadecimal. Similarly for 332 we get 1c.
|
||||
126. This is a variant of the [Monty Hall](monty_hall.md) problem, the correct thing is to switch, reasoning being as follows: Initially you pick a chick at random, giving you higher probability (2/3) of choosing a tranny. Now if you chose a tranny, then once the other tranny is eliminated, the biological chick is the one you are NOT hitting on now, so you should switch. Of course if you picker the biological one at start, you will now switch to a tranny, but this is the less likely scenario.
|
||||
126. This is a variant of the [Monty Hall](monty_hall.md) problem, the correct thing is to switch, reasoning being as follows: Initially you pick a chick at random, giving you higher probability (2/3) of choosing a tranny. Now if you chose a tranny, then once the other tranny is eliminated, the biological chick is the one you are NOT hitting on now, so you should switch. Of course if you picked the biological one at start, you will now switch to a tranny, but this is the less likely scenario.
|
||||
127. Apparently the expected answer is this: just jump out of the blender. How? If you're so small, you can jump much higher, just like bugs can, as physics on such a small scale functions differently (which is why for example elephants can't jump at all while a cat can jump to a height many times its own height).
|
||||
128. yes
|
||||
128. It prevents [fragmentation](fragmentation.md), especially with large files. Creating a small file and then appenging to it by small chunks will more likely lead to the file not fitting to the preallocated space and having to be split and scattered all over the disk.
|
||||
129. yes
|
||||
|
||||
## Other
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue