COMPUTER LITERACY
===================
Revision Notes
Final Examination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.VMware Workstation Pro Series: | |
| --------------------------------- | |
| MC60H-DWHD5-H80U9-6V85M-8280D | |
| 4A4RR-813DK-M81A9-4U35H-06KND | |
| NZ4RR-FTK5H-H81C1-Q30QH-1V2LA | |
| JU090-6039P-08409-8J0QH-2YR7F | |
| 4Y09U-AJK97-089Z0-A3054-83KLA | |
| 4C21U-2KK9Q-M8130-4V2QH-CF810 | |
| HY45K-8KK96-MJ8E0-0UCQ4-0UH72 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Union | |
| def separate_number(number: str, sep: str = ""): | |
| result = number[::-1] | |
| insert_idx = [] | |
| times = 0 | |
| for idx in range(len(number)): | |
| if idx % 3 == 0: | |
| insert_idx.append(idx + times) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##################################################################################################### | |
| # Copyright (c) 2023-2024 NWSOFT # | |
| # # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy # | |
| # of this software and associated documentation files (the "Software"), to deal # | |
| # in the Software without restriction, including without limitation the rights # | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # | |
| # copies of the Software, and to permit persons to whom the Software is # | |
| # furnished to do so, subject to the following conditions: # | |
| # # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MIT License | |
| Copyright (c) 2024 Andy Zhang | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAMES = { | |
| 2: "binary", | |
| 3: "trinary", | |
| 4: "quaternary", | |
| 8: "octadecimal", | |
| 10: "decimal", | |
| 16: "hexadecimal" | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| // A File Icon Preferences – User | |
| // ================================================================ | |
| { | |
| "color": "hsl(219, 28%, 88%)", | |
| "color_on_hover": "hsl(0, 0%, 97%)", | |
| "color_on_select": "hsl(0, 0%, 100%)" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| # Please excuse the awfully formatted code, I did not take the time to make it look nice. | |
| def main(): | |
| print() | |
| if len(sys.argv) != 2: | |
| print(f' Usage: {sys.argv[0]}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdafx.h" | |
| #include <windows.h> | |
| #include <iostream> | |
| using namespace std; | |
| int main(int argc, char *argv[]) | |
| { | |
| cout << "\r\n"; | |
| if (argc != 2) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| def shuffle(ary): | |
| old_ary = ary[:] | |
| a = len(ary) | |
| b = a - 1 | |
| for d in range(b, 0, -1): | |
| e = random.randint(0, d - 1) | |
| ary[d], ary[e] = ary[e], ary[d] |
NewerOlder