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

Essential Terminology for Graphic Design, Printing, and Web Projects

Computer science3.55 KB

Core Graphic Design Concepts and Terminology

Vector Graphics and File Types

  • Vector allows for resizing without loss in quality.
  • Vector graphics are smaller in file size.
  • PNG file type (Portable Network Graphics).
  • SVG (Scalable Vector Graphics).

Digital Asset Sourcing

  • He found the images online, but they were in the public domain.
  • The team member created the images himself.

The whole is greater than the sum of the parts.

Typography and Text Handling

  • Kerning: The spacing between specific pairs of characters.
  • Leading: The distance between each line of text.

Font Classifications

  • Script
  • Decorative
  • Serif
  • Sans Serif

Text Overflow

Even though it's not visible, the excess text is still in the bounding area, and a small plus (+) symbol is displayed at the bottom of the...

Continue reading "Essential Terminology for Graphic Design, Printing, and Web Projects" »

C Program for Bit Stuffing and Destuffing

Computer science4.61 KB

Bit stuffing and destuffing are crucial techniques used in data link layer protocols to ensure reliable data transmission. They prevent sequences of data bits from being misinterpreted as control characters or flags, especially when the data itself contains patterns identical to these control sequences.

What is Bit Stuffing?

Bit stuffing is the process of adding one or more extra bits into a data stream to break up a sequence of identical bits that might otherwise be misinterpreted as a control signal. For example, in protocols like HDLC, a flag sequence (01111110) is used to mark the beginning and end of a frame. To prevent the actual data from containing this sequence, a '0' bit is stuffed after every five consecutive '1's in the data stream....

Continue reading "C Program for Bit Stuffing and Destuffing" »

Blue Prism RPA Roles, Governance, and ROM Foundations Q&A

Computer science16.07 KB

RPA Governance and Demand Pipeline Management

Demand Pipeline Prioritization Steps

Which of the following does not describe the “Prioritization” step as part of managing the demand pipeline?

R: Helping a friend

Head of Robotic Automation Role and Responsibility

Which of the following statements are true when describing the role and responsibility of the Head of Robotic Automation?

R: All of the above

RPA Governance Board Objectives

Select from the below which statement best describes the Demand Generation objective within the RPA Governance Board?

R: Identify quality RPA automation opportunities

Select from the below which statement best describes the Demand Management objective within the RPA Governance Board?

R: Responsible for defining and prioritizing

...
Continue reading "Blue Prism RPA Roles, Governance, and ROM Foundations Q&A" »

Sistema de Gestión de Inventario para Concesionarios

Computer science993 bytes

Gestión de Concesionario

Bienvenido al sistema de administración de vehículos. Utilice las siguientes opciones para gestionar su inventario:

Configuración de Base de Datos

El script de inicialización crea la base de datos coches y la tabla ocasion con los campos necesarios: marca, modelo, combustible, color, año y precio.

Formulario de Alta de Vehículos

Datos del Vehículo

Marca: VolvoSaabFiatAudi
Modelo:
Color:

Combustible:

Diesel Gasolina
Año de matriculación:
Precio:

Procesamiento de Datos (PHP)

El archivo Alta.php recibe los parámetros mediante el método GET y realiza la inserción en la base de datos MySQL utilizando la conexión establecida.

MIPS Overflow, Floating-Point Arithmetic, and Digital Logic

Computer science6.76 KB

1. Half-Adder Truth Table and Circuit

For a two single-bit input, draw the truth table and corresponding circuit for the half-adder.

Truth Table

Where A and B are the input values, C is the output carry, and Σ is the sum.

ABC (Carry)Σ (Sum)
0000
0101
1001
1110

(The question also requires a circuit diagram, which typically consists of an XOR gate for the Sum and an AND gate for the Carry.)

2. MIPS Overflow Handling Options

MIPS provides the following instruction options to handle overflow:

  • add, addi, sub: These instructions cause an exception on overflow.
  • addu, addui, subu: These instructions do not cause an exception on overflow.

3. MIPS Signed Addition Overflow Check

To avoid exceptions when performing signed addition, one can use addu and check for overflow...

Continue reading "MIPS Overflow, Floating-Point Arithmetic, and Digital Logic" »

Pascal Movie Database Management Procedures

Computer science8.83 KB

Pascal Movie Database Management

This document details several procedures written in Pascal for managing a movie database. The database is stored in a file of records, where each record represents a movie.

Data Structure

The code defines a pelicula (movie) record with the following fields:

  • codigo: integer (Movie ID)
  • genero: string (Genre)
  • nombre: string (Title)
  • duracion: integer (Duration)
  • director: string (Director)
  • copias: integer (Number of Copies)
  • precio: real (Price)

A constant valoralto is defined as 9999, used as a sentinel value.

And the file is defined as:

maestro= file of pelicula ;

Procedures

leerp(var p: pelicula)

Reads movie data from the input (keyboard) and stores it in the pelicula record p. It reads the codigo first. If it's not equal to...

Continue reading "Pascal Movie Database Management Procedures" »

Structural and Behavioral Design Patterns in Software Development

Computer science2.12 KB

Structural Design Patterns

Decorator - Adds additional functionality to a class

Adapter - 'adapts' one interface for a class into one that the client expects

Façade - creates a simplified interface from an existing one

Flyweight - A high quantity of objects share common properties to save space.

Bridge - decouples an abstraction from its implementation so that the two can vary independently.

Behavioral Design Patterns

Chain of Responsibility - Linked list of handlers

Command - Enables all the info for a request to be contained within a single object.

Interpreter - Developing domain specific languages

Iterator - Sequentially access elements of an aggregate object.

Mediator - Removes the need for classes to communicate with each other directly.

Observer...

Continue reading "Structural and Behavioral Design Patterns in Software Development" »

Implementación de Triggers SQL para Gestión de Prácticas y Vehículos

Computer science4.17 KB

Tarea 1: Registrar Kilometraje por Práctica Insertada

Requisito: Crear un TRIGGER donde, cada vez que se inserta una práctica a un alumno, se deben sumar 50 KMS al vehículo que tiene asignado el alumno.

Definición del Trigger PRAC (Inserción de Práctica)

CREATE TRIGGER PRAC
ON PRACTICA
FOR INSERT
AS
    DECLARE @CODMON INT;
    DECLARE @CODAL INT;

    -- 1. Obtener el ID del Monitor asignado al Alumno de la práctica insertada
    SELECT @CODAL = A.CodMon#
    FROM ALUMNO A
    INNER JOIN INSERTED I ON A.CodAl# = I.CodAl#;

    -- Nota: La siguiente selección es redundante o lógicamente incorrecta en este contexto:
    -- SELECT @CODMON = M.CodMon#
    -- FROM MONITOR M
    -- INNER JOIN ALUMNO A ON M.CodMon# = A.CodAl#
    -- WHERE M.
...
Continue reading "Implementación de Triggers SQL para Gestión de Prácticas y Vehículos" »

Singly Linked List Data Structure in C: Full Implementation

Computer science9.45 KB

Singly Linked List Data Structure in C: Full Implementation

This document provides a comprehensive implementation of a singly linked list in C, demonstrating fundamental operations such as appending nodes, inserting nodes at specific positions, deleting nodes, calculating list length, and displaying list contents. Understanding linked lists is crucial for mastering dynamic data structures in C programming.

Understanding the Node Structure

A singly linked list is composed of individual elements called nodes. Each node contains two primary parts: the data it holds and a link (or pointer) to the next node in the sequence. The root pointer always points to the first node of the list, or is NULL if the list is empty.


#include <stdio.h>
#include
...
Continue reading "Singly Linked List Data Structure in C: Full Implementation" »

Refer to the exhibit. When a static IP address is being configured on the host, what address should be used for the default gateway

Computer science15.07 KB

1allows 4 an mtu as high as 9198 bytes.​: jumbo frame
2.R highly scalable & have a very high fault tolerance,massive storage capabilities,& fast data access.: sans
3.R not used 2 find noes on ne2rks other than the local ne2rk.: mac addresses
4.as a ne2rk support technician,U only need 2 know how 2 support ipv6.: false
5.@ what layer of the osi model would a tcp or udp header be added 2 a payload?: layer 4
6.border routers: connect an autonomous system with an outside ne2rk
7.by default,the pathping command sends how many pings per hop?​: 100
8.cable that is coated with flame-resistant polyvinyl chloride (pvc) is acceptable 4 use in plenum areas.: false
9.a ________ consists of a host's ip address & the port number of an application
...
Continue reading "Refer to the exhibit. When a static IP address is being configured on the host, what address should be used for the default gateway" »