From 4ba88e84e5d3884bbab602eb47980b58510c59c9 Mon Sep 17 00:00:00 2001 From: Boyan Date: Fri, 4 Nov 2022 18:40:12 +0100 Subject: [PATCH] made them look nicer --- 1_Data_Storage.md | 30 +++++++++++++++--------------- 2_Data_Manipulation.md | 28 ++++++++++++++-------------- 3_Programming_Languages.md | 26 +++++++++++++------------- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/1_Data_Storage.md b/1_Data_Storage.md index ef530e7..835e296 100644 --- a/1_Data_Storage.md +++ b/1_Data_Storage.md @@ -1,22 +1,22 @@ -## How many bits are needed to represent 1024 different bit patterns? +### How many bits are needed to represent 1024 different bit patterns? 10.0 -## How many errors in a single code pattern could be corrected when using an error-correcting code in which each code pattern is a Hamming distance of at least seven from any other code pattern? +### How many errors in a single code pattern could be corrected when using an error-correcting code in which each code pattern is a Hamming distance of at least seven from any other code pattern? 3, Three -## A computer's main memory consists of numerous memory cells, each of which contains **(eight, 8)** Each memory cell is identified by a numeric value called the cell's**(memory address, address)**. +### A computer's main memory consists of numerous memory cells, each of which contains **(eight, 8)** Each memory cell is identified by a numeric value called the cell's**(memory address, address)**. -## If the patterns 101.11 and 1.011 represent values in binary notation, what is the binary representation of their sum? -###111.001 +### If the patterns 101.11 and 1.011 represent values in binary notation, what is the binary representation of their sum? +####111.001 -## In which of the following addition problems (using two's complement notation) does an overflow error occur? +### In which of the following addition problems (using two's complement notation) does an overflow error occur? 0100 + 0100 -## Represent the bit pattern 1011010010011111 in hexadecimal notation +### Represent the bit pattern 1011010010011111 in hexadecimal notation B49F -## The following is an error-correcting code in which any two patterns differ by a Hamming distance of at least three. Decode each of the following patterns: +### The following is an error-correcting code in which any two patterns differ by a Hamming distance of at least three. Decode each of the following patterns: | Symbol | Representation | |--------|----------------| | A | 000000 | @@ -33,25 +33,25 @@ B49F 011000 - D 101101 - F -## What is the smallest negative integer that can be represented in a two's complement system in which each value is represented by eight bits? +### What is the smallest negative integer that can be represented in a two's complement system in which each value is represented by eight bits? 10000000, -128 (either is correct) -## Which of the following data storage systems provides the most efficient random access to individual data items? +### Which of the following data storage systems provides the most efficient random access to individual data items? Main memory -## Which of the following is the binary representation of 4 5/8? +### Which of the following is the binary representation of 4 5/8? 100.101 -## Which of the following representations in two's complement notation represents the largest value? +### Which of the following representations in two's complement notation represents the largest value? 00000010 -## A7DF is the hexadecimal representation for what bit pattern? Put a single space between each group of 4 bits, for ease of reading +### A7DF is the hexadecimal representation for what bit pattern? Put a single space between each group of 4 bits, for ease of reading 1010 0111 1101 1111 -## Which of the following best describes the NAND operation? +### Which of the following best describes the NAND operation? An AND followed by a NOT -## What is the result of the following subtraction problem (using two's compliment notation)? 00001111 - 10101010 +### What is the result of the following subtraction problem (using two's compliment notation)? 00001111 - 10101010 01100101 diff --git a/2_Data_Manipulation.md b/2_Data_Manipulation.md index 251cdd7..acf8142 100644 --- a/2_Data_Manipulation.md +++ b/2_Data_Manipulation.md @@ -1,43 +1,43 @@ -## A computer's main memory consists of numerous memory cells, each of which contains ........ bits. Each memory cell is identified by a numeric value called the cell's ........... . +### A computer's main memory consists of numerous memory cells, each of which contains ........ bits. Each memory cell is identified by a numeric value called the cell's ........... . Eight. Address. -## In which of the following locations is information most readily available for manipulation by the CPU? +### In which of the following locations is information most readily available for manipulation by the CPU? General-purpose registers -## Which of the following instructions (as described in the language description table) places 00000000 in register A? +### Which of the following instructions (as described in the language description table) places 00000000 in register A? 2A00 -## Which of the following is not contained in a CPU? +### Which of the following is not contained in a CPU? Memory cell -## Which step of the machine cycle examines the op-code of the next instruction to be executed? +### Which step of the machine cycle examines the op-code of the next instruction to be executed? Decode -## Author's note: Q6 on this quiz involves [Caesar cipher](https://en.wikipedia.org/wiki/Caesar_cipher), it is way too long to even try to memorize, but it's ez. +### Author's note: Q6 on this quiz involves [Caesar cipher](https://en.wikipedia.org/wiki/Caesar_cipher), it is way too long to even try to memorize, but it's ez. Look it up -## Turn the string "The Answer" into binary using the ASCII table. Apply "01101001 00101110 00001010 01010010 00110101 00010111 01011110 00000011 00010010 00011101" to it using XOR. Look up the result in the ascii table. +### Turn the string "The Answer" into binary using the ASCII table. Apply "01101001 00101110 00001010 01010010 00110101 00010111 01011110 00000011 00010010 00011101" to it using XOR. Look up the result in the ascii table. forty-two. -## The bus in a computer is an example of which form of communication? +### The bus in a computer is an example of which form of communication? Parallel -## Which of the following instructions does not fall in the category of arithmetic/logic instructions? +### Which of the following instructions does not fall in the category of arithmetic/logic instructions? JUMP -## Which of the following parallel architectures allows fastest access to all memory cells from all processors +### Which of the following parallel architectures allows fastest access to all memory cells from all processors Shared Memory -## Which of the following is not a form of parallel processing? +### Which of the following is not a form of parallel processing? SISD -## Which of the following instructions (as described in the language description table) changes the contents of a memory cell? +### Which of the following instructions (as described in the language description table) changes the contents of a memory cell? 40AB -## Which of the following instructions (as described in the language description table) places 00000000 in register 5? +### Which of the following instructions (as described in the language description table) places 00000000 in register 5? 9555 -## Which of the following instructions (as described in the language description table) will not change the contents of register 5? +### Which of the following instructions (as described in the language description table) will not change the contents of register 5? A508 diff --git a/3_Programming_Languages.md b/3_Programming_Languages.md index d4ac261..90454d3 100644 --- a/3_Programming_Languages.md +++ b/3_Programming_Languages.md @@ -1,38 +1,38 @@ -## Most machine languages are based on the +### Most machine languages are based on the Imperative paradigm -## Positions within arrays are identified by means of numbers called +### Positions within arrays are identified by means of numbers called Indices -## Which of the following is an example of a language that is based on the functional paradigm? +### Which of the following is an example of a language that is based on the functional paradigm? LISP -## Which of the following is a means of nullifying conflicts among data types? +### Which of the following is a means of nullifying conflicts among data types? Coercion -## Which of the following is not a control statement? +### Which of the following is not a control statement? Assignment statement -## Which of the following is not a possible value of the expression 4 + 6 / 2 - 1 +### Which of the following is not a possible value of the expression 4 + 6 / 2 - 1 5 -## Which of the following is not a step in the process of translating a program? +### Which of the following is not a step in the process of translating a program? Executing the program -## Which of the following is not associated with object-oriented programming? +### Which of the following is not associated with object-oriented programming? Resolution -## Which of the following is not associated with the concept of data type? +### Which of the following is not associated with the concept of data type? Operator precedence -## Which of the following is the scope of a variable? +### Which of the following is the scope of a variable? The portion of the program in which the variable can be accessed -## Author's note: i am not copying the program segment. +### Author's note: i am not copying the program segment. -## In contrast to ........ languages such as English and Spanish, programming languages are considered ........ +### In contrast to ........ languages such as English and Spanish, programming languages are considered ........ natural, formal -## Match the terms with their definitions +### Match the terms with their definitions Not copying that, but have a screenshot.. ![screencap](https://cdn.discordapp.com/attachments/458628210272239626/1038145187723100190/image.png)