Notes, summaries, assignments, exams, and problems for Computer science

Understanding Computer Security: From Worms to Encryption

Computer science1.91 KB

Understanding Computer Security

Common Threats

  • Worm: Designed to replicate itself, a worm operates as a standalone application, unlike a virus.
  • Trojan: Disguised as a legitimate program (e.g., a screensaver), a Trojan operates covertly to inflict damage.
  • Phishing: Attackers impersonate trustworthy entities to steal sensitive information, exploiting social engineering tactics.

Network and Security Concepts

  • Simple Mail Transfer Protocol (SMTP): A standard for email communication, SMTP is known for its lack of robust security.
  • Sandboxes: Software environments that isolate programs to prevent them from harming the host system, commonly used in web browsers.

Wireless Security

  • Wireless Internet (Wi-Fi): Enables wireless communication between devices, forming
...
Continue reading "Understanding Computer Security: From Worms to Encryption" »

Low-Level Programming: Machine Language, Pep/8 Assembly, and Algorithms

Computer science3.92 KB

Computer Fundamentals and Data

A Computer is a programmable electronic device that can store, retrieve, and process data.

Data and Instructions: Instructions that manipulate data are logically the same as the data itself and can be stored in the same memory location.

Understanding Machine Language

Machine Language is a language made up of binary-coded instructions built directly into the computer's hardware and used by the processor.

Why Machine Language?

It is the fundamental language the hardware understands (no choice).

Characteristics of Machine Language

  • Every processor has its own unique set of machine instructions.
  • The relationship between the processor and the instructions it can carry out is completely integrated.
  • Each machine-language instruction
...
Continue reading "Low-Level Programming: Machine Language, Pep/8 Assembly, and Algorithms" »

TCP vs UDP: Key Differences & Protocol Characteristics

Computer science3.24 KB

Here's a breakdown of key characteristics and differences between TCP and UDP protocols:

  • TCP and UDP sockets are created by the transport layer: False
  • Before any data exchange takes place between two UDP applications, a logical connection must be established between them: False
  • Both SMTP and POP3 are TCP based: True
  • The UDP segment contains a checksum: True
  • The TCP segment contains a checksum: True
  • UDP makes use of the Selective Repeat protocol: False
  • The Selective Repeat algorithm is used for congestion control: False
  • HTTP uses TCP as its underlying transport protocol: True
  • With POP3, the email message is always deleted from the mail server if the client downloads the email message to its local email client application: False
  • Only TCP uses port numbers,
...
Continue reading "TCP vs UDP: Key Differences & Protocol Characteristics" »

Image Optimization and Exporting for Web Use

Computer science2.79 KB

Image Optimization Process

During image design and transformation, there's complete freedom. Optimization is applied at the end, before exporting the image to a web-compatible format.

Optimization involves three key steps:

  1. Selecting the best file format to manage file size.
  2. Adjusting format options and colors. Each format has specific compression controls, some limiting color palettes.
  3. Defining export options based on image use.

Common Export Formats

  • GIF (Graphics Interchange Format): Up to 256 colors, supports transparency, ideal for animations, logos, and images with transparent areas. Often used for vector graphics.
  • JPEG (Joint Photographic Experts Group): Best for photos and textured images, supports many colors, but has fewer image quality options.
...
Continue reading "Image Optimization and Exporting for Web Use" »

Spreadsheet Tips: Protection, Formatting, and Printing

Computer science3.3 KB

Tasks 10–20

  1. Protect and password-protect sheets in a workbook: Tools > Protection > Protect Sheet > enter a password to unprotect.
  2. Set a background image on a sheet: Format > Sheet > Background > Browse > select image file.
  3. Fill a series (numeric or chronological): numerical and chronological (date, month, etc.): write the first two values, select them, click the bottom-right corner (AutoFill handle) of the selected range and drag.
  4. Apply color to cells or ranges: Format > Cells > Fill (Shading) or Format > Font > Color, respectively.
  5. Draw cell borders: Format > Cells > Border (choose line style, color, and which edges to apply).
  6. Hide gridlines on a sheet: Tools > Options > View > uncheck Gridlines.
...
Continue reading "Spreadsheet Tips: Protection, Formatting, and Printing" »

Client-Server Model, Peer-to-Peer, NFS, Samba, and SSL

Computer science3.39 KB

Client-Server Model

  • The client-server model defines the structure of communicating applications and their synchronization.
  • It consists of two interacting processes:
    • Server Process
    • Client Process
  • Client and server are inseparable; one cannot exist without the other.

Server

  • This process awaits hearing on a given server port. It continuously waits for remote client processes to connect.
  • Authentication
  • Security and information privacy in the system where they reside.
  • Must be able to handle requests from multiple clients simultaneously.
  • Important: All clients will be connected to the same server port.

In general, we say that a computer is a server when its operating system runs one or more server processes (FTP, HTTP, DNS, etc.).

Client

  • It is a process that sends
...
Continue reading "Client-Server Model, Peer-to-Peer, NFS, Samba, and SSL" »

Computer Hardware Essentials: Ports, Storage & Interfaces

Computer science4.92 KB

FireWire: High-Speed Serial Bus Interface

FireWire is an interface designed to connect up to 63 devices. The bandwidth of this bus is either 400 Mbps or 800 Mbps, depending on the version. IEEE 1394a supports up to 400 Mbps, while IEEE 1394b supports up to 800 Mbps.

Computer Peripherals: Input, Output & Storage

Peripherals are a set of elements, often referred to as information media or mass storage units, that are necessary to store data and information and are available to the central processor. There are two main types:

Input Devices

An input device is any device through which information is introduced to the central processing unit (CPU).

Output Devices

An output device is any device through which information is drawn from the central processing...

Continue reading "Computer Hardware Essentials: Ports, Storage & Interfaces" »

Essential Network Command-Line Utilities Explained

Computer science3.24 KB

Ping Command Options

  • -t: Sends echo requests to the host until interrupted.
  • -a: Resolves IP addresses to host names.
  • -n number: Specifies the number of echo requests to send.
  • -l size: Sets the send buffer size in bytes.
  • -f: Prevents fragmentation of the packet.
  • -i TTL: Sets the Time To Live (TTL) value.
  • -v TOS: Specifies the Type of Service (TOS).
  • -r amount: Records the route for this number of hops.
  • -s number: Records timestamps for this number of hops.
  • -j lista_de_host: Specifies a loose source route along the host list.
  • -k lista_de_host: Specifies a strict source route along the host list.

ARP Command Parameters

  • -a: Displays current ARP entries. If Dir_IP is specified, it shows the IP and physical addresses only for that specific computer.
  • -g: Same as
...
Continue reading "Essential Network Command-Line Utilities Explained" »

Database Field Properties and Data Types

Computer science3.5 KB

Essential Database Field Properties

  • Validation Rule and Validation Text: This is a standard that all data in a field must meet. If data is entered that does not meet this standard, the tables will not be updated correctly. The Validation Text is the message that appears on the screen when you enter a figure that does not meet the validation rule; this message reports the specific error being committed.
  • Required: This option lets you choose whether the field will be mandatory. If you select "Yes," you cannot leave this field blank, and the table is blocked until it is filled.
  • Input Mask: This sets the default format that the data will take automatically. We use 0 for numbers and L for letters. Example: 91 881 14 000 00 00 79/00
  • Indexed: This lets
...
Continue reading "Database Field Properties and Data Types" »

Computer Network Communications

Computer science2.52 KB

Processor Front

The processor front involves three components: source, destination, and message. The source (e.g., a terminal or computer) sends a message. The destination (e.g., another terminal or computer) receives the message. The front-end processor acts as the connection between the source and destination, managing the message transfer. It frees the host processor from communication tasks, handling message routing, transmission monitoring, code translation, and encryption. All data transmitted to or from the host processor are managed through this specialized front-end processor, allowing the host processor to operate more efficiently and focus on application processing.

Types of Communications

A network enables computer connections to share...

Continue reading "Computer Network Communications" »