Notes, summaries, assignments, exams, and exercises for Computer science for Secondary education

Refer to the exhibit. A network administrator has segmented the network into two VLANs and configured Router1 for inter-VLAN routing. A test of the network, however, shows that hosts on each VLAN can only access local resources and not resources on t

Computer science20.53 KB

  1.  A network technician is configuring port Security on a LAN switch interface. The security policy requires host MAC Addresses to be learned dynamically, stored in the address table, and Saved to the switch running configuration. Which command does the technician Need to add to the following configuration to implement this Policy? Switch(config)# interface fa0/1 
    Switch(config-if)# switchport mode access 
    Switch(config-if)# switchport port-security

·Switch(config-if)# switchport port-security mac-address sticky

  1. On which switch interface would an Administrator configure an IP address so that the switch can be managed Remotely?

·VLAN 1

  1. Refer to the exhibit. Match the packets with Their destination IP address to the exiting interface on the router.
...
Continue reading "Refer to the exhibit. A network administrator has segmented the network into two VLANs and configured Router1 for inter-VLAN routing. A test of the network, however, shows that hosts on each VLAN can only access local resources and not resources on t" »

Python Programming Basics: Essential Code Snippets

Computer science4.07 KB

Python Fundamentals: Practical Code Examples

This document presents a collection of basic Python code snippets, demonstrating fundamental programming concepts such as conditional statements, loops, data input, and list manipulation. Each example is designed to illustrate a specific programming principle, making it ideal for beginners learning Python.

Compare Car Top Speeds with Python

This Python script compares two user-entered car speeds to determine which is faster, showcasing basic input and conditional logic.

car_a = int(input("Please enter the top speed of a Ferrari: "))
car_b = int(input("Please enter the top speed of a Lamborghini: "))

if car_a >= car_b:
    print("The fastest car is a Ferrari.")
elif car_b > car_a:
    print("The
...
Continue reading "Python Programming Basics: Essential Code Snippets" »

Understanding Open Standards, Smart Grids, and VoIP

Computer science3.04 KB

Key Features of an Open Standard

An "open standard" is characterized by two primary features:

  • Consensus-based: Developed through a consensus-driven process, ensuring no interested parties are excluded.
  • Publicly Available: Specifications are accessible to the public.

Smart Grid: Definition and Advantages

The smart grid represents the integration of telecommunications and informatics with the power/electricity grid.

Benefits of the Smart Grid:

  • Energy savings and improved consumption management.
  • Cost reduction.
  • Enhanced system reliability.
  • Improved electricity routing via intelligent switches.

OSI Model: Layer Identification

The 7-layer OSI model includes:

  • Layer 1: Physical
  • Layer 2: Data Link
  • Layer 3: Network

Advantages of IP over TDM for Businesses

Businesses

...

Continue reading "Understanding Open Standards, Smart Grids, and VoIP" »

Memory Management and File System Architecture

Computer science12.9 KB

1. Demand Paging

In a standard virtual memory system, the operating system does not load an entire program into physical memory (RAM) at once. Instead, it uses Demand Paging—a strategy where pages are loaded into memory only when they are needed (on demand).

How It Works: The Page Fault Mechanism

  1. CPU Reference: The CPU tries to access a specific virtual address.
  2. Page Table Check: The Hardware (MMU) checks the page table entry for that page. Each entry has a Valid/Invalid (V/I) Bit:
    • Valid (1): The page is already in RAM. The address is translated, and execution continues.
    • Invalid (0): The page is currently on the disk (hard drive/SSD). This triggers a Page Fault interrupt.
  3. OS Trap: The operating system takes control to handle the page fault.
  4. Disk
...
Continue reading "Memory Management and File System Architecture" »

Mastering JavaScript Objects: A Comprehensive Reference

Computer science7.71 KB

Introduction to JavaScript Objects

In JavaScript, an object is a self-contained environment that stores data as a collection of properties and methods. A property is an association between a name (or key) and a value, while a method is a function associated with an object.

Think of an object as a real-world entity. For example, a Car is an object. It has properties like color, brand, and weight, and methods like start, drive, and brake.

// A simple conceptual look at an object
let car = {
    brand: "Tesla",       // Property (key: value)
    color: "Red",         // Property
    start: function() {   // Method
        console.log("Engine started!");
    }
};

Types of Objects in JavaScript

While almost everything in JavaScript is an object (or acts...

Continue reading "Mastering JavaScript Objects: A Comprehensive Reference" »

C++ Programming: Streams, Functions, and Memory

Computer science11.17 KB

In C++, Input/Output (I/O) operations are managed through a hierarchy of classes collectively known as streams. A stream is an abstraction that represents a flow of data between a source (like a keyboard) and a destination (like a screen).

Here is a comprehensive breakdown of how C++ handles both unformatted and formatted I/O operations, along with the core stream mechanisms.

Streams, Insertion, and Extraction

At the heart of C++ I/O are the standard stream objects:

  • cin: Standard input stream (usually the keyboard), an instance of istream.
  • cout: Standard output stream (usually the screen), an instance of ostream.

The Insertion Operator (<<)

Used with cout to output data. It "inserts" data into the output stream.

cout << "Hello, World!";
...
Continue reading "C++ Programming: Streams, Functions, and Memory" »

Telephone Means and Equipment: Features and Services

Computer science9.05 KB

Telephone Means and Equipment

Fixed individual devices (copper networks have been replaced by optical fiber networks)

Private branch exchanges (PBX): it connects calls between two destinations or ends

Function: call transfers among extensions, caller ID…

Types: IP PBXs call centers, they manage just phone calls contact centres, they not only manage phone calls but emails, SMS, online messages, faxes, etc.

Mobile devices: PDA, Smartphone

Services: Internet, e-mail, videoconference, digital camera, audio an Video quality player, an agenda, GPS, own, Operating system

Additional services offered by the telephone equipment

Common features

A.Fixed telephony: -Notice of charge(aviso de cargo) you receive info on the cost of a call Call forwarding(desvio

...
Continue reading "Telephone Means and Equipment: Features and Services" »

Image and Sound Processing, Networks, and Digitalization

Computer science3.34 KB

Image Processing

Imaging Technique

  • Bitmap (Raster): Formed by pixels, each with a color. Programs: GIMP, Photoshop. Formats: GIF, JPEG, BMP, TIFF, PNG, PCX (Paintbrush), RAW, TGA, PSD (Photoshop), XCF (GIMP).
  • Vector: Obtained using lines. Programs: Corel Draw, OpenOffice.org Draw, AutoCAD, QCad. Formats: DXF, CDR, DWG, ODG/SXD, SWF, AI, SFHx.
  • 3D: Three-dimensional figures. Widely used in games. Programs: Virtual Hammer.

Memory Cards

  • SD
  • MMC
  • XD
  • Memory Stick

Image Properties

  • Color Depth: Total number of bits used to encode an image. More depth means more shades.
  • Brightness: Related to light intensity emitted over a given area.
  • Contrast: Brightness difference between the maximum and minimum brightness.

Color Specification Systems

  • RGB (Red, Green, Blue): Used
...
Continue reading "Image and Sound Processing, Networks, and Digitalization" »

Evolution of the World Wide Web: From Web 1.0 to Web 3.0

Computer science8.53 KB

Evolution and History of the World Wide Web

1. Introduction and Origins of the Web

The World Wide Web (WWW) is an information system where documents and other web resources are identified by Uniform Resource Locators (URLs), interlinked by hypertext links, and accessible via the Internet.

  • The Genesis: Invented by British scientist Sir Tim Berners-Lee in 1989 while working at CERN (European Organization for Nuclear Research).
  • The Core Motivation: Developed to automate information-sharing among scientists globally, overcoming compatibility barriers between different computers and operating systems.
  • The Core Building Blocks: By 1990, Berners-Lee defined the three fundamental technologies that remain the backbone of the modern web:
  1. HTML (HyperText Markup
...
Continue reading "Evolution of the World Wide Web: From Web 1.0 to Web 3.0" »

Microprocessor Techniques: Binary Codes and Instruction Execution

Computer science3.82 KB

The application of several binary codes in microprocessor technique

Nbà + integer arithmetic, table/matrix indexing, event counting., C2à integer arithmetic, exponents in floating point notation.,Bcdà Faults:not effetive use of binary Word, absence of sign., Grayà code disksor bars to control position of moving elements., AScià Communication(text), service of: mosaic display, printers, autonomous keyboards.

Neuman:

It has a single storage system, Processor needs two clocks cycles. Dont use pipeline, Only one bus is used for both data transfers, older

Harvards:

It has two separated memories, 1 cycle if appropiate pipeling strategies, It has separate data and instruction busses, modern

Enumerate the phases of processor instruction execution.

Instruction...

Continue reading "Microprocessor Techniques: Binary Codes and Instruction Execution" »