Notes, summaries, assignments, exams, and problems

Software Testing and Debugging

Computer science4.52 KB

SOFTWARE TESTING

Testing can only show the presence of errors, not their absence. The goal of testing is confidence.

  • Validation: Are we building the right product? What does the customer need?
  • Verification: Are we building the product right? Functional/Non-Functional requirements.

SOFTWARE INSPECTION VS. SOFTWARE TESTING

While inspection will go through the code without running the program, testing will run the program and look at the results. Incomplete programs can only be inspected, not tested. Inspections can control aspects of good software (maintainability…), not just the results.

TEST CASE:

  • Requirements
  • Data/Input
  • Actions
  • Expected Results

TEST CASE PRINCIPLES:

  • A test tries to find flaws in a program.
  • A good test case will show a possible defect
...
Continue reading "Software Testing and Debugging" »

Exploring the Five Kingdoms of Life: A Comprehensive Overview

Biology2.55 KB

Five Kingdoms of Life

1. Monera

This kingdom includes bacteria and cyanobacteria. Bacteria are prokaryotic, lacking a true nucleus. Key components include the cell membrane, nuclear region (or nucleoid), ribosomes, cytoplasm, and often a cell wall. Cyanobacteria, also known as blue-green algae, are thought to have originated atmospheric oxygen around 2 billion years ago through photosynthesis.

Bacteria

Bacteria reproduce asexually, typically through binary fission. Some can form cysts for protection in unfavorable conditions. Cyanobacteria are crucial for various ecological processes.

2. Protists

Protists are unicellular, heterotrophic eukaryotes. They possess organelles like the Golgi apparatus, lysosomes, ribosomes, centrosome, mitochondria, endoplasmic...

Continue reading "Exploring the Five Kingdoms of Life: A Comprehensive Overview" »

Medieval Europe: Feudalism, Society, and Gothic Art

History4.17 KB

Medieval Europe

T-6: The Feudal System

Set in medieval Europe and inspired by Roman and Germanic history, the feudal system was based on a mutual aid contract between a lord and a vassal. The vassal swore loyalty to his lord, who in return granted him a fief, typically land.

Medieval society was divided into three estates:

  • Nobility: Responsible for warfare and defense. They lived in castles and trained as knights, adhering to a code of chivalry.
  • Clergy: Dedicated to prayer and religious duties. The Church, led by the Pope, played a significant role in medieval life. The clergy was divided into secular and regular clergy (monks who lived in monasteries).
  • Commons: Primarily peasants who formed the basis of the agrarian economy.

Peasants

The medieval...

Continue reading "Medieval Europe: Feudalism, Society, and Gothic Art" »

Systematic Layout Planning (SLP) for Facility Design

Design and engineering3.94 KB

Systematic Layout Planning (SLP)

The Systematic Layout Planning (SLP) methodology provides a common framework for solving facility layout and implementation problems.

Core Elements of SLP

  • Product (P): Characteristics of the product being manufactured.
  • Quantity (Q): Volume of production.
  • Tour (R): The path or flow of materials and products.
  • Service (S): Support services required.
  • Time (T): Time considerations for production and processes.

The SLP Sequence: Phases of Analysis

The SLP sequence involves a preliminary analysis of production, routes to be used, activity relationships, and more. It is structured into three distinct phases:

Phase I: PQ Analysis and Relational PQ Diagram

This phase involves an analysis of Product-Quantity (PQ) to generate a Relational

...
Continue reading "Systematic Layout Planning (SLP) for Facility Design" »

Movie Terminology and Other Useful Words

Arts and humanities2.84 KB

  • Spooky: Frightening and ghostly.

  • Thought-provoking: Stimulating you to think about something, often something you haven't thought of before.

  • Thrilling: Exciting, action-packed.

  • Underrated: Much better than what people believe.

  • Uplifting: Making you feel happy and cheerful.

  • Multiplex: A cinema with many different screens so it can show many films at the same time.

  • Premiere: The first showing of a film before it's available for people to see.

  • To book the seats/tickets: To reserve tickets.

  • To give thumbs up: To write positive reviews.

  • Cast: All the actors/actresses in a film.

  • To take your seats: To find your row and number and sit down.

  • General release: Released in all cinemas and available for people to see or buy.

  • The show must go on: Even if there was

...

Continue reading "Movie Terminology and Other Useful Words" »

A Chronology of Western Literary Periods and Movements

Arts and humanities2.86 KB

Dating Terminology:

  • Christian Terms: BC (Before Christ), AD (Anno Domini)
  • Secular Terms: BCE (Before the Common Era), CE (Common Era)

I. The Classical Period (1200 BC - 455 AD)

A. Homeric or Heroic Period (1200 - 800 BC)

B. Classical Greek Period (800 - 200 BC)

C. Classical Roman Period (200 BC - 455 AD)

D. Patristic Period (70 AD - 455 AD)

II. The Medieval Period (428 - 1450)

A. The Old English (Anglo-Saxon) Period (428 - 1066)

B. The Middle English Period (1066 - 1450)

III. The Renaissance and Reformation Period (1485 - 1649)

A. Early Tudor Period (1485 - 1558)

B. Elizabethan Period (1558 - 1603)

This period marks the works of William Shakespeare.

C. Jacobean Period (1603 - 1625)

D. Caroline Age (1625 - 1649)

IV. The Enlightenment (Neoclassical) Period (1660

...
Continue reading "A Chronology of Western Literary Periods and Movements" »

Legal positivism" "meaning and scope of legal rules

History3.2 KB

  1. THE GENERAL ASSEMBLY The most democratic organ, in which each state (193) gets one vote, no matter how big or small, rich or poor. The General Assembly has the competence to discuss and make recommendations on all matters that fall within the scope of the UN Charter.

  1. THE SECURITY COUNCIL The most powerful organ. Its primary responsibility is to maintain peace and security.

It is composed of 15 members, 5 permanent with veto power (United States, China, France, Russia, and the United Kingdom) and 10 elected by the GA for 2 years.

The Security Council is the only organ that can impose sanctions on states or deploy military forces on behalf of the international community to keep the peace in certain areas, regions, or countries.

  1. THE SECRETARIAT

...

Continue reading "Legal positivism" "meaning and scope of legal rules" »

The Rise of Global Imperialism and Colonialism (1870–1914)

History6.22 KB

Imperialism and the Second Industrial Revolution

Imperialism emerged during the last third of the nineteenth century, driven by the Second Industrial Revolution. European powers began expanding across the globe, establishing vast colonial empires, particularly in Africa and Asia.

Key Causes of 19th Century Colonialism

The drive for colonialism was multifaceted, encompassing economic, demographic, political, and ideological factors:

  • Economic: The need for cheap raw materials, inexpensive labor, and the opening of new markets for industrial goods.
  • Demographic: European overpopulation led many families to migrate to colonies in Africa and elsewhere seeking a better life.
  • Political: Powers sought to dominate areas of economic and strategic interest,
...
Continue reading "The Rise of Global Imperialism and Colonialism (1870–1914)" »

English Grammar Exercises and Narrative Writing Samples

English2.8 KB

English Grammar Proficiency Exercises

Sentence Correction and Identification

  1. By the time we got to the airport, the flight had already left. (C)
  2. She went to the concert last night with her friends. (I)
  3. The more you practice, the better you speak English. (C)
  4. He was wearing a sleeveless blue French shirt and a pair of smart black shoes. (I)
  5. They had been waiting for two hours before the airline announced the delay. (I)
  6. I have known my best friend since elementary school. (C)
  7. While the passengers were boarding, the crew was checking the cabin. (I)
  8. If you heat water to 100 degrees, it boils. (I)
  9. I will have been studying for three hours by 8 p.m. tonight. (C)
  10. She had already left when I called her. (C)
  11. She has been working at the airport for three years.
...
Continue reading "English Grammar Exercises and Narrative Writing Samples" »

Essential Python Programming Snippets

Computer science2.76 KB

File Handling

# Basic file reading
file = open("data.txt", "r")
content = file.read()          # Read entire file
lines = file.readlines()       # Read as list of lines
file.close()

# Reading line by line
file = open("data.txt", "r")
for line in file:
    print(line.strip())        # strip() removes \n
file.close()

# Write to file (overwrites)
file = open("output.txt", "w")
file.write("Hello World\n")
file.close()

# Append to file (adds to end)
file = open("output.txt", "a")
file.write("New line\n")
file.close()

Working with Lists

# Creating lists
numbers = [1, 2, 3, 4, 5]
names = ["John", "Maria", "Carlos"]

# Accessing elements
first = numbers[0]            # First element
last = numbers[-1]            # Last element
slice = numbers[1:4]
...
Continue reading "Essential Python Programming Snippets" »