From 0f60112490a60d528f26cdbf4942ebb04c3ddb19 Mon Sep 17 00:00:00 2001 From: caglazir2 Date: Tue, 3 Mar 2026 18:01:18 -0500 Subject: [PATCH] 1. Bits/Booleans questions --- .envrc | 1 + questions.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4a96c22 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +source .venv/bin/activate \ No newline at end of file diff --git a/questions.md b/questions.md index 6a16806..5bd117b 100644 --- a/questions.md +++ b/questions.md @@ -21,16 +21,28 @@ The answers to the first two questions are given. 3. 00000001 +~a >> 3 + 4. 10000000 +a << 3 + 5. 01010000 +a & ~b + 6. 00001010 +~a & b + 7. 01010000 +a & ~b + 8. 10101011 +~b << 1 + ## Integer questions These questions are difficult! Try exploring ideas with `Bits`