They'd also theoretically see the size of the URL, and the size of the page, along with the transport type. So they can infer a lot of information from the exchange, but they couldn't say for sure what you were viewing on a specific website.
It doesn't really help. The ISP needs to route you somewhere to get the data, so they'll need to know who you want to talk to. Even if they don't see the DNS name (like if you used a third party DNS server) they can still associate the IP address with someone.
There's things like TOR and VPNs that can route your information through other third parties first, but that impacts performance pretty significantly.
I would just write down the steps I would take, just some psudocode. It doesn't have to work, it just has to make sense in the style of the language you're talking about.
import random library
import any GUI/display libraries required for the outcome desired
build array of integers [1..52] (or 0..51 if you're being fancy)
for loop 1..1000
select random number A 1..52 (or 0..51 if you used that above)
select random number B 1..52 (or 0..51 if you used that above)
swap elements in the array A and B
pop first two elements from array
decode at display time what the two numbers represent in terms of playing cards
If the test requires more than that, then they're crazy. The syntax doesn't matter, just that you can logic yourself through the problem.
You can use the IDE, google, or whatever to fill in the specifics. If you wanted me to do that in literally any programming language, once the psudocode is done, you just spend an hour or so looking up the details.
Arrrrrr
Stonehenge sprayed with paint by environmental protesters ( www.dw.com ) Englisch
Windows updating just before thesis defense ( lemmy.world )
Would you? ( lemmy.world )
*Cough Cough...* Chrome... *Chough*... ( slrpnk.net )
The Fuckening ( lemmy.ml )
When your day is going too well and you don't trust it and some shit finally goes down .......
Code interviews for a PHP developer roles Englisch
Senior to Boss? ( lemm.ee )