Introduction to Computer Science Flashcards

1
Q

What is data?

A

Data consis of raw numbers and symbols that can be arranged into meaningful information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is firmware?

A

Firmware describes the instructional software that computer chips have and remains the same over time. They are either used for booting up a computer or electronic devices that always perform the same task, such as your smart refrigerator or a child’s toy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a file?

A

A discrete unit of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a pixel?

A

A single square which is assigned a color and is used to assemble a larger image.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the BIOS?

A

Basic Input/Output System. its functions are: identify hardware components attached to the machine, look for an OS, start the OS. The BIOS handles hardware requests from the operating system, applications, and drivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Machine language?

A

a set of binary instructions that can be executed directly by a CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is mainframe?

A

A large, powerful, centralized computer, a mainframe is what terminals connect to for processing requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is ASCII?

A

This is a binary code scheme where letters, numbers, and symbols are represented by exactly one byte of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is resolution?

A

The number of pixels able to be displayed, typically expressed as width x height (in pixels).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is sampling?

A

This is the representation of analog data by taking samples of the wave values over small time intervals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is modem?

A

Portmanteau of modulator-demodulator. This is a device used to translate one type of signal to another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What’s the number range able to be represented by a byte?

A

-128 to 127 (8 bits)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between the MDR and the
CIR?

A

The MDR is responsible for temporarily storing data being read from or written to the memory. CIR holds the current instruction being executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is propositional logic relevant for computer
science?

A

Propositional logic forms the basis for circuit design and for the implementation of algorithms in software. In circuit design the logical gates implements the concepts of propositional logic and in the programming languages conditional statements and loop constructs are based on evaluating logical expressions using propositional logic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is propositional logic?

A

Propositional logic deals with the study of propositions and their logical relationships. Logical connectives like negation, conjunction, disjunction are provided to connect propositions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

XML

A

Extensible Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is an IRQ?

A

An IRQ stands for “Interrupt Request”. A device can send status messages to the CPU by in interrupt request line, labeled from 00 to 15. The CPU interrupts its tasks an executes a corresponding
interrupt handler to perform the necessary acƟons. Each device in a computer system is assigned a unique IRQ number. The CPU uses this number to identify the source of the interrupt and determine the appropriate interrupt handler to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Name a few sorting algorithms.

A

Bubble sort, quicksort, merge sort, binary insertion sort.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is a checksum?

A

A checksum is a small-sized block of data derived from another block of digital data for the purpose of detecting errors that may have been introduced during its transmission or storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the difference between a bit, a byte and
an octet?

A

1 byte = 1 octet = 8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

How it can be determined in the decimal to binary
conversion if the corresponding digit in binary
representaƟon is a 1 or a 0.

A

In decimal to binary conversion, you divide the decimal number by 2 repeatedly
while recording the remainders. The remainders will determine if the corresponding
digit in the binary representaƟon is 1 or 0. Lets consider the following example: We
have the decimal number 6. We convert this number to binary as follows: 6/2 = 3
remainder 0 3/2 = 1 remainder 1 1/2 = 0 remainder 1 The binary representaƟon of
the decimal number 6 is: 110 (remainder in reverse order).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the default gateway?

A

The default gateway is the router or device that allows the computer to access other
devices outside of its local network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is the parity error-checking?

A

Communication with telephone-based modems was one bit at a time. For every 7 bits, an 8th parity bit was added for error checking. These basically worked like a very simple checksum. For every 8 bits there must be an even or odd number of ones in the data. If it did not match, then it was assumed there was an error.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is CRC?

A

Cyclic Redundancy Check. A block of data is processed through a mathematical algorithm and a result is appended to the data. After the data is sent, a calculation is repeated to check the integrity. The CRC can be applied to any length of binary data and will always return a code of the exact same length. This makes CRC a
“hashing” algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

How does TCP/IP error detection work?

A

TCP/IP divides data into pieces to be sent over a network into segments or datagrams.
These segments have a “header” at the beginning which defines the sending and receiving hosts, transmission settings, and also a 16-bit checksum to verify the data. The maximum size of this segment is ~65kb. When each segment arrives at the destination computer it is checked against the checksum value; if the values don’t match, a retransmit request is sent to the source computer.

TCP/IP also checks for transmission errors on other levels. The
receiving computer must also send an acknowledgement (ACK) for each datagram received. This is accomplished by giving each datagram a sequence number in the header. The recipient machine sends an ACK for each sequence number—if one of the numbers is not acknowledged after a certain period of time, the source computer will retransmit.

TCP/IP will also detect broken routes over the network and re-route to new ones. This is one reason why TCP/IP has been used for decades on the internet: it is fault-tolerant. Part of the network can stop working without taking the entire network offline.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What symbol represents a terminator?

A

An oval, which is used at the beginning of a flowchart and at all the endings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What symbol represents a process?

A

Rectangle. Used for data calculation or filtering.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What symbol represents a decision?

A

A diamond. There are multiple pathways to take.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

What symbol represents input/output?

A

Parallelogram.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

What are multidimensional arrays?

A

Arrays that contain other arrays. For every dimension, complexity is raised by an exponent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

What is Unicode?

A

An international encoding standard.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

How can alphanumeric symbols from encoding systems such as Unicode or ASCII be sorted?

A

Since each letter and symbol has a binary value attached to it, that value can be used to sort.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

What is bubble sort and what is its complexity?

A

A simple but inefficient sorting algorithm which iterates all elements multiple times, comparing contiguous elements and swapping them if needed according to the specified criterion. It has a worst-case complexity of O(n^2).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What is the meaning of verification in the
Waterfall Model?

A

Testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

What is binary insertion sort and what is its complexity?

A

Binary inserƟon sort is a sorƟng algorithm that uses the same method we used for a binary search—by spliƫng the data in half repeatedly. To sort the data, it builds a new output list and takes items from the input list. The input list are items yet to be sorted, and the output are the ones already sorted. For inserƟng an element from the input list in the output list the data in the output list is spliƩed in half repeatedly unƟl the correct posiƟon of the new element is found.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What is quicksort and what is its complexity?

A

It works by selecting a ‘pivot’ element from the array and partitioning the other elements into two sub-arrays, according to whether they are less than or greater than the pivot. The sub-arrays are then sorted recursively. This can be done in-place, requiring small additional amounts of memory to perform the sorting. Its average complexity is O(n*log(n)).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What is binary search?

A

Binary search is a search algorithm that searches for data in a sorted list. It works by dividing the list into two halves, and then repeaƟng this process on each of the halves unƟl it reaches the desired data. The algorithm can be used to find an element in a sorted array.

38
Q

What is jump search?

A

Jump search is a search algorithm that uses a jump size to find the target element in an ordered list. The jump size is the number of elements that are skipped over between each comparison. Let’s say the book is 2,500 pages long. We calculate the square root of n, the number of pages, which gives us 50, which we will use for the jump size, or m. Ken will first jump to page 50 and see if Josh is higher or lower, then keep jumping unƟl he is past Josh. Then, he will go back to the previous jump and do a linear search (page by page) on the next 50 pages to find him.

39
Q

What is Big O?

A

The “Big O” function demonstrates the mathematical complexity of
an algorithm, which is based on the data size of “n” elements.

40
Q

How much storage does an integer or a character data type use?

A

This depends on the used language or underlying hardware architecture but typically, int uses 32 bytes and char uses 1 byte.

41
Q

What is propositional logic?

A

Propositional logic takes the concept of human statements and represents them as a formal equation. These logic equations can be used to evaluate the truth or falsity of claims made, or propositions.

42
Q

What is CNF/DNF?

A

Conjuctive normal form: a conjunction of several disjunctions.
Disjunctive normal form: a disjunction of several conjunctions.

43
Q

What is the ALU?

A

The Arithmetic and Logic Unit performs arithmetic calculations and logic operations such as OR and AND.

44
Q

What are the 5 CPU registers specific to the Von Neumann design?

A

PC, MAR, MDR, AC, CIR

45
Q

What is a bus and what are the most common ones?

A

A bus is a connection used for data transfer, it’s what CPUs use for input and output. There are 3 main ones: Address Bus, Control bus (used to send and receive status from devices), Data bus (to send an receive data such as arithmetic operations). In some designs, these three are merged into a system bus.

46
Q

What is addressing?

A

In the Von Neumann architecture, each byte of memory has a unique binary address. The number of bits used for adressing will identify the number of bytes available.

47
Q

What’s the main disadvantage of Von Neumann’s memory management?

A

Since data and instructions are on the same memory bus, reading large volumes of data may cause the CPU to wait for many cycles to load the next instruction.

48
Q

What are channel codes and how do devices communicate with the CPU?

A

Input and output devices on a computer are typically assigned a binary “channel code” for the CPU; that means when a CPU receives this code it will be followed by a status message from that device.

The CPU can also use this code to send information back to the device. This information flows along the control bus.

Control codes for a device can include things like ready, busy, error, and request for input or output.

Aside from the control bus, devices can also use the data bus to send data and the address bus to point to a specific memory address that may be read from or written to.

49
Q

What is a word?

A

A word is the standard data size used by a processor. A 64-bit system uses 64-bit words; registers have this size.

50
Q

What are the 3 main functions of an operating system?

A

1) Provide a user interface
2) Control the hardware
3) Run applications

51
Q

What is a cluster?

A

A group of servers that share the workload for a certain task.

52
Q

What’s the measuring unit for supercomputer power?

A

FLOPS (floating point operations per second). gigaFLOP = 1 billion calcs per second

53
Q

What is a WAN?

A

A wide access network is a network of interconnected LANs. The internet is the largest WAN.

54
Q

What’s the standard wiring for a LAN?

A

Consists of UTP (UNSHIELDED twisted pair cable) of various categories. Bps = Bytes per second, bps = bits per second.
Category 6 UTP cable allows for up to 10gbps speeds.

55
Q

What is a hub?

A

A hub is the simplest network device, taking a signal from one cable and splitting out over several ones. Each split signal is called a “port”. The ports can also communicate with the larger network through the uplink connection.

56
Q

What is a frame?

A

A unit of data transmitted over a network. A frame has a “from” and “to” MAC addresses.

57
Q

What is a switch?

A

A hub with basic filtering capabilities.

58
Q

What is a packet?

A

A unit of data transmitted over a network that is identified by an IP address, instead of a hardware address like a frame.

59
Q

What is a router?

A

The most intelligent of the 3 connecting devices. It can filter data, including blocking data that does not belong to a network (firewall).

60
Q

Explain the ring, mesh, star, hybrid and bus network topologies.

A

Ring: devices are connected together in a ring, and each device needs to check data to see if it needs to pass it to the next device. This design has fallen out of use for not being fault-tolerant.

Mesh: all devices are connected to each other, which makes it fault-tolerant because there are multiple paths to each node. The inconvenient physical arrangement which required a lot of cable made it fall out of use.

Star: the most widely used topology nowadays. Devices are connected to a central node which has the role of sending data to each outer node. It is fault-tolerant to a point but if the central node fails, the network will not function.

Bus: this requires all devices to be connected to a bus, and if the connection fails anywhere, the entire network fails, making it not fault-tolerant. Data can travel up and down the data bus.

Hybrid: any topology that connects multiple topologies is called a hybrid. For example, multiple star networks connecting through a bus network backbone.

61
Q

What is a backbone?

A

The core of a network that connects the main parts together. It can also connect multiple networks.

62
Q

What are the differences between the 2.4GHz and 5GHz frequencies?

A

Data in 2.4 can travel farther and through obstacles better than 5, but 5 can carry more data. 802.11ac is currently the fastest wireless protocol and is backwards-compatible with older devices.

63
Q

What are the network layers of the OSI (Open Systems Interconnection) standard?

A

Application Layer: interface exposed to user and applications to make network requests to the OS.

Presentation Layer: formats data and provides encryption.

Session Layer: maintains connections via ports.

Transport Layer: Handles transmission protocols and settings, handles error checking and breaks down the data in chunks that are sent out separately.

Network Layer: Routes data to destination through the physical route of the packets. This layer is handled by the router; in TCP/IP, this is where the IP address is used. Data in this level is organized in packets.

Data Link Layer: Converts electrical signals into data; this is where the MAC address is used.

Physical Layer: Consists of the electrical signals sent over the network and the physical devices that interact with them. Collision detection occurs in this layer.

64
Q

What is TCP/IP and its layers?

A

Transmission Control Protocol / Internet Protocol is a suite of communication protocols to interconnect network devices.

This model is divided into the following layers:

Application: equivalent to OSI’s Application, Presentation and Session layers.

Transport: similar to OSI’s transport layer. TCP is used here.

Internet: equivalent to OSI’s network layer. IP is used here.

Network Access: equivalent to OSI’s Data Link and Physical layers.

65
Q

What is an IP address?

A

This is the unique address of a network device; there cannot be a duplicate on the same network. It is divided into a network ID and a host ID.

66
Q

What is a subnet mask?

A

This is a binary sequence that identifies which parts of the address are the network ID and host IDs. In IPv6, this is called a prefix.

67
Q

What is the default gateway?

A

This is the network device that is used to access an external network. It is typically a router.

68
Q

How is TCP/IP fault-tolerant?

A

TCP/IP checks that all packets are received and looks for alternative paths to deliver the data in case a node along the way stops working.

69
Q

What is the CMOS?

A

A chip that used to contain all BIOS configuration but is now mainly used to preserve the system clock.

70
Q

What is the BIOS?

A

The Basic Input/Output System handles hardware requests from the operating system and drivers. It identifies connected hardware components and when booting up a computer, it looks for an installed operating system and starts it.

71
Q

What is FAT?

A

FAT is a filesystem that works by dividing a disk into clusters and stores the contents of the clusters in a File Allocation Table.

72
Q

Decision Support Systems (DSS)

A

Projection of revenue predictions, hiring needs

73
Q

Executive Information System (EIS)

A

Focuses on data of the whole company such as market research data, performance analysis.

74
Q

Online Analytical Processing (OLAP)

A

High-performance data analysis system. Used for sales figures, product comparisons, creating reports.

75
Q

What is an embedded system?

A

It is a specific-purpose system that performs a primary task, such as medical equipment, fire alarms, washing machines, etc.

76
Q

What is a microcontroller?

A

A microcontroller is a computer chip with a processor, RAM and i/o built in. The i/o travels through specific pins on the chip. These can receive and send data to USB ports and Ethernet. They are an entire computer on a chip.

77
Q

What is the Software Development Lifecycle and what are its stages?

A

APLADESIDEVTESDE

Analyze requirements: create a requirements document, organizing the main ideas behind the proposal.
Planning: determine feasibility, assign teams.
Design: blueprint for development.
Development
Testing
Deployment/maintenance: release and shipping updates to address bugs in the software.

78
Q

What is the Waterfall model?

A

REQDESIMVERMA

Requirements
Design
Implementation
Verification
Maintenance

79
Q

What is the Big Bang model?

A

Coding, design, requirements and testing all begin simultaneously with little planning. It is risky but may lead to the quickest release of software.

80
Q

Convert 3 binary numbers to decimal, 3 decimal numbers to binary, 2 binary numbers to hexadecimal, 2 hexadecimal numbers to binary, 1 hex to decimal, 1 decimal to hex

A

Decimal to binary: Keep on dividing the decimal number by 2 until the result of the division operation is 0 while recording the remainder. The first digit of the binary number is the remainder of the division operation that resulted in 0. The last digit of the binary number is the remainder of the first division operation. The rest in reverse order is the binary number.

81
Q

What is the difference between the ALU and the
control unit?

A

The ALU and the control unit are components of the CPU. The control unit is responsible for the operation of the ALU and communicaƟon with the input and output devices. It interprets processor instructions and carries them out.

82
Q

What is the difference between a proposition and
a statement?

A

A statement is a way of expressing a proposition; some statements can be worded in different ways while having the same underlying proposition.

83
Q

What are general principles of ACM code of ethics?

A

SOCIETY, !HARM, HONESTY, CREATIVITY, CONFIDENTIALITY, PRIVACY

84
Q

What is DHCP?

A

Dynamic Host Configuration Protocol (DHCP) is a protocol used to assign IP addresses and other network configuraƟon parameters to each device on a network so that the devices can communicate with each other.

85
Q

What is Ethernet?

A

Ethernet is a set of standards (defined by IEEE 802.3) used for LANs and WANs.

86
Q

What is an input output system?

A

Input and output system is a system that allows the user to communicate with the computer hardware.

87
Q

What is a CPU cache?

A

The CPU cache is a small memory that is placed on the CPU chip itself. It is a memory for data and instrucƟons that the processor can access very quickly. This allows to speed up memory access Ɵmes. There are different levels of cache: some processors have three levels labelled L3, L2, and L1, each smaller and with a faster access Ɵme. This provides a way to avoid memory boƩlenecks as the CPU does not always have to make a request of system RAM; a small amount of currently used data is located in the cache.

88
Q

What is the Von Neumann architecture?

A

The von Neumann architecture is a reference model for the architecture of a computer. It consists of - a CPU, - a memory that holds both computer program instrucƟons and data, - an input system, - an output system. The CPU consist of an ALU, a control unit and registers, which contain a fixed number of bits. These registers can contain data or instrucƟons that have been read from memory. Besides the processor and memory, there also should be some type of input (entering data) and output system (outpuƫng data) to be able to communicate with other devices or a human being.

89
Q

What is a correct algorithm?

A

The correctness of an algorithm is an important requirement for algorithm development. Any algorithm that is used must be mathemaƟcally correct. An algorithm is totally correct if it receives valid input, terminates, and always returns the correct output. We can prove this by formal reasoning or mathemaƟcally, for instance, with a proof by inducƟon.

90
Q

What are the parts of an URL?

A

Protocol, computer name, domain name, directory, filename.

91
Q

What is data contextualization?

A

All informaƟon is stored in binary format in computers. If you want to store alphabeƟcal leƩers, you can represent each leƩer with a specific number. To convert the stored binary numbers back into leƩers, you need addiƟonal contextual informaƟon, such as the code that was used for conversion. Examples of such codes include ASCII or Unicode.

92
Q

How many different numbers can you represent
with N bits?

A

2^N