Notes, summaries, assignments, exams, and exercises for Computers for Vocational training

Sort by
Subject
Level

Computer Networks: Benefits and Twisted Pair Cabling Explained

Posted by Anonymous and classified in Computers

Written on in English with a size of 2.74 KB

What is a Computer Network?

A computer network connects two or more computing devices, such as computers, servers, routers, or switches, through wired or wireless communication channels. This enables efficient sharing of data, resources, and applications.

The primary purpose of a computer network is to facilitate communication and resource sharing among users and devices, whether within a small area like a home or office, or across large geographical regions like the internet.

Advantages of Computer Networks

  1. Resource Sharing: Devices like printers, scanners, and internet connections can be shared across the network, reducing hardware costs.
  2. Data Sharing: Users can easily share files and data in real-time, improving collaboration and efficiency.
  3. Centralized
... Continue reading "Computer Networks: Benefits and Twisted Pair Cabling Explained" »

DBMS vs RDBMS: Key Differences and Core Concepts

Posted by Anonymous and classified in Computers

Written on in English with a size of 3.15 KB

What is a DBMS?

A Database Management System (DBMS) is software that enables users to define, create, maintain, and control access to a database. It acts as an interface between users and a database, allowing users to interact with data without needing to know how it is stored internally. It serves as a bridge between data and application programs/users.

Popular DBMS Examples

  • MySQL
  • Oracle Database
  • Microsoft SQL Server
  • MongoDB

Types of DBMS

  • Hierarchical DBMS: Data organized like a tree.
  • Network DBMS: Data linked in a network structure.
  • Relational DBMS (RDBMS): Data stored in tables (most common).
  • NoSQL DBMS: Used for unstructured or big data.

DBMS Architecture

The 3-Level Architecture is essential for database design:

  • Internal Level: How data is physically
... Continue reading "DBMS vs RDBMS: Key Differences and Core Concepts" »

Developing Logical and Mathematical Thinking in Children

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 3.73 KB

What is Mathematical Logical Thinking?

These are the skills students develop associated with logical and mathematical concepts, reasoning, comprehension, and exploration of the world through real proportions, thus strengthening more abstract aspects of thought.

Geometry with Dinosaurs

This activity involves cutting out various geometric shapes with EVA rubber. Children will then create their own dinosaurs using these shapes. Through this activity, they can learn geometric shapes, count the number of elements used in each dinosaur (like the sides of the shapes), and create new geometric shapes from the ones they already have.

Logical Reasoning with Chupa Chups

This activity consists of creating logically structured material and playing with it using... Continue reading "Developing Logical and Mathematical Thinking in Children" »

Tensors and Variables in PyTorch and TensorFlow

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 2.4 KB

Tensors and Variables in PyTorch and TensorFlow

Here's a brief explanation of tensors and variables in the context of deep learning frameworks like PyTorch and TensorFlow:

Tensors

  • Definition: A tensor is a multi-dimensional array used to represent data (such as scalars, vectors, matrices, or higher-dimensional data).
  • Common Operations: Tensors can be manipulated with mathematical operations (addition, multiplication, etc.), reshaped, sliced, etc.

In PyTorch, tensors are the core data structure:

import torch
# Create a tensor
a = torch.tensor([[1, 2], [3, 4]])
# Basic operations
b = a + 2         # Adds 2 to each element
c = a * a         # Element-wise multiplication
d = a @ a         # Matrix multiplication

Output:

Tensor `b`: [[3, 4], [5, 6]]
Tensor
... Continue reading "Tensors and Variables in PyTorch and TensorFlow" »

Dijkstra's Algorithm in C: Code & Explanation

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 3.5 KB

Dijkstra's Algorithm in C

This code implements Dijkstra's algorithm to find the shortest path from a source vertex to all other vertices in a graph represented as an adjacency matrix. The program reads graph data from an input.txt file and writes the results to an output.txt file.

Code Implementation


#include <stdio.h>
#include <limits.h>
#include <stdbool.h>

#define MAX_VERTICES 100

// Function to find the vertex with minimum distance
int minDistance(int dist[], bool visited[], int vertices) {
    int min = INT_MAX, min_index;

    for (int v = 0; v < vertices; v++)
        if (!visited[v] && dist[v] <= min) {
            min = dist[v];
            min_index = v;
        }

    return min_index;
}

// Dijkstra'
... Continue reading "Dijkstra's Algorithm in C: Code & Explanation" »

Shell script

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 2.47 KB

Ejercicio de descuentos:

#!/bin/bash

read -p "¿Desea el billete también de vuelta? (s/n): " idavuelta

until [ $idavuelta=="s" ] || [ $idavuelta=="n" ]; do

read -p "¿Desea el billete también de vuelta? (s/n): " idavuelta

done

read -p "¿Tiene carnet joven? (s/n): " carnetjoven

until [ $carnetjoven="s" ] || [ $carnetjoven="n" ]; do

read -p "¿Tiene carnet joven? (s/n): " carnetjoven

done

descuento=0 billete=20

if [ $idavuelta="s" ]; then

descuento=20

billete=" expr $billete \* 2'

fi

if [ $carnetjoven="s" ]j then

descuento=30

fi

costefinal=`expr $billete \* \( 100 - $descuento \) / 100`

echo "El precio final del billete es $costefinal"



Ejercicio de medias:

#!/bin/bash

acu=0

cont=0

read -p "Introduce un numero: " num

while [ $num -ne 0 ]; do

acu=`expr $acu + $num`

cont=... Continue reading "Shell script" »

Bootstrap Components: Navigation Tabs, Tables, and Forms

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 2.78 KB

Corrected Exam

<!DOCTYPE html>

Images and Table with Nav Tabs

Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus deserunt natus est et, incidunt id quasi ex veniam tenetur quibusdam optio dolor rem dicta officia voluptate nemo rerum quod amet.

Data Table

#NameAgeCountry
1Alice25USA
2Bob30UK
3Charlie28Canada

Alert Notification

Hello! This is an alert that can be closed by clicking on the "X" button.

<!DOCTYPE html>

Document

Form Section

Text Input
Select Option Choose... Option 1 Option 2 Option 3 Option 4
Accept Terms

Send

Grid

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Assumenda autem culpa dolorum dolorem voluptatum quisquam ipsam quia quae libero rerum aut pariatur saepe quaerat doloribus... Continue reading "Bootstrap Components: Navigation Tabs, Tables, and Forms" »

Book Search App with OpenLibrary API and LocalStorage

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 8.38 KB

Obtener elementos del DOM

const resultsContainer = document.getElementById('results');
const favoritesContainer = document.getElementById('favorites');
const readContainer = document.getElementById('read');

Buscar libros en OpenLibrary usando fetch().then()

function fetchBooks(query, limit = 10, callback) {
  fetch(`https://openlibrary.org/search.json?q=${encodeURIComponent(query)}&limit=${limit}`)
    .then(res => res.json())
    .then(data => {
      const books = data.docs || [];
      callback(books);
    })
    .catch(err => {
      console.error("Error fetching books:", err);
    });
}

Guardar en localStorage si no está duplicado

function saveToLocalStorage(key, book) {
  const stored

... Continue reading "Book Search App with OpenLibrary API and LocalStorage" »

Firebase Google Login and Notes App in JavaScript

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 4.45 KB

Firebase Google Login and Realtime Notes Implementation

import { initializeApp } from "https://www.gstatic.com/firebasejs/10.7.2/firebase-app.js";
import { getAuth, signInWithRedirect, getRedirectResult, GoogleAuthProvider } from "https://www.gstatic.com/firebasejs/10.7.2/firebase-auth.js";
import { getDatabase, ref, set, onChildAdded, onChildChanged } from 'https://www.gstatic.com/firebasejs/10.7.2/firebase-database.js';

Firebase Configuration and Initialization

const firebaseConfig = {
    apiKey, authDomain, databaseURL, projectId, storageBucket, messagingSenderId, appId
};
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const db = getDatabase(app);
let user = null;
let note_ref = null;
document.addEventListener('deviceready'... Continue reading "Firebase Google Login and Notes App in JavaScript" »

Understanding Key Information Systems and Technologies

Posted by Wikiteka Community and classified in Computers

Written on in English with a size of 3.77 KB

Internet Technologies

The internet relies on several key technologies:

  • Transmission Control Protocol (TCP): Enables connections and data exchange between hosts.
  • Internet Protocol (IP): A unique 32-bit numeric address for each computer, represented by four numbers (0-255) separated by periods.
  • Domain Name System (DNS): Converts domain names (e.g., google.com) to IP addresses.
  • Hypertext Transfer Protocol (HTTP): The standard for transferring web pages.
  • Hypertext Markup Language (HTML): Formats documents and links to other resources.
  • Uniform Resource Locator (URL): References a web resource's location and retrieval method.

Cloud Computing

Cloud computing provides access to shared computing resources over a network. Different service models exist:

  • Software
... Continue reading "Understanding Key Information Systems and Technologies" »