Problem Statement and Algorithm Description

CSP-J1 Computer Fundamentals M1

Computer Basics9.6 KBUploaded on2026/10/09 12:59

CSP-J1 Fundamentals of Computer Science Course Overview (M1)

M1 Computer Fundamentals

This module covers the history of computing, hardware components, operating system fundamentals, networking basics, information security, and NOI competition rules.


History of 1.1 Computer Development

  • Suggested Duration: 20 minutes
  • Tags: #History #Turing #VonNeumann

Concept Explanation

  1. Evolution of Fourth-Generation Computers

    • Generation 1 (1946-1957): Vacuum tube computers. Large size, high power consumption, and prone to damage. Representative model: ENIAC.
    • Generation 2 (1958-1964): Transistor computers. Smaller size, lower power consumption, and higher reliability.
    • Generation 3 (1965-1970): Small- and medium-scale integrated circuit computers.
    • Fourth Generation (1971-present)Computers based on large-scale and very-large-scale integrated circuits. Microcomputers began to become widely used.
  2. Key Figures and Theories

    • Alan TuringProposed the "Turing machine" model, laying the logical foundation for computing; known as the "Father of Computer Science." The Turing Award is the highest honor in the field of computer science.
    • John von NeumannProposed the "stored-program" concept (Von Neumann architecture). Core idea: A computer consists of five components—the arithmetic logic unit, control unit, memory, input device, and output device. Instructions and data are stored in binary form.
  3. Turing Machine Model

    • An abstract computational model consisting of an infinite tape, a read/write head, a set of control rules, and a state register. It demonstrates the possibility of universal computation.

Knowledge Check Practice

  1. In what year was the ENIAC born?

    • A. 1945
    • B. 1946
    • C. 1947
    • D. 1948
    • Answer:B
  2. Which of the following descriptions about the Von Neumann architecture is incorrect?

    • A. A computer consists of five major components
    • B. Separation of Instructions and Data
    • C. Both instructions and data are represented in binary.
    • D. Instructions are executed in order
    • Answer: B (Von Neumann architecture stores instructions and data in the same memory; Harvard architecture separates them.)
  3. What is the highest honor in the field of computer science?

    • A. Nobel Prize
    • B. Fields Medal
    • C. Turing Award
    • D. Academy Awards
    • Answer:C

1.2 Computer Hardware Components

  • Suggested Duration: 25 minutes
  • Tags: #Hardware #CPU #Memory

Concept Explanation

  1. Detailed Overview of the Five Key Components

    • Arithmetic Logic Unit (ALU): Performs arithmetic operations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT).
    • Controller (CU): Coordinates all operations, fetches instructions from memory, and decodes them.
    • CPU (Central Processing Unit)= ALU + Control Unit.
    • Memory:
      • Memory (Main Memory): RAM (Random Access Memory, volatile) and ROM (Read-Only Memory, non-volatile). Fast speed with relatively small capacity.
      • Secondary StorageHard drives (HDD/SSD), USB drives, and optical discs. Slower speeds, high capacity, permanent storage.
    • Input device: Keyboard, mouse, scanner, and microphone.
    • Output Device: Monitors, printers, and speakers.
  2. Bus

    • The common communication backbone connecting components within a computer.
    • Data Bus: Transmit data.
    • Address Bus: Memory address for data transfer (width determines addressing capability).
    • Control Bus: Transmit control signal.
  3. Performance Metrics

    • Clock Speed: CPU clock frequency, in Hz (GHz).
    • Character LengthThe number of bits a CPU can process at once (32-bit/64-bit).

Knowledge Check Practice

  1. Which type of memory loses data when power is turned off?

    • A. ROM
    • B. Hard Drive
    • C. RAM
    • D. USB Flash Drive
    • Answer:C
  2. What two main components make up the CPU?

    • A. Arithmetic Unit and Memory
    • B. Controller and Arithmetic Logic Unit
    • C. Controller and Memory
    • D. Input and Output Devices
    • Answer:B
  3. Which of the following is an input device?

    • A. Printer
    • B. Display
    • C. Projector
    • D. Scanner
    • Answer:D

1.3 Operating System Fundamentals

  • Suggested Duration: 22 minutes
  • Tags: #OS #Windows #Linux

Concept Explanation

  1. Definition and Role of an Operating System

    • System software that manages computer hardware and software resources.
    • Role: Interface between users and computers, resource manager.
  2. Common Operating Systems

    • DesktopWindows, macOS, Linux (Ubuntu, CentOS, etc.).
    • Mobile: Android, iOS, HarmonyOS.
    • Server-side: Linux series dominates.
  3. File Management

    • File naming rules: Typically consists of a filename and an extension (e.g., test.txt). The extension determines the file type.
    • Path: Absolute path (starting from the root directory) or relative path.
    • Wildcard:*(representing any number of characters),?(Represents a single character.)
  4. Common Shortcuts (Windows)

    • Ctrl+C/V/X: Copy / Paste / Cut
    • Ctrl+Z: Undo
    • Alt+Tab: Switch Window
    • Win+L: Lock Screen

Knowledge Check Practice

  1. Which of the following is not an operating system?

    • A. Linux
    • B. Python
    • C. Windows
    • D. macOS
    • Answer: B (Python is a programming language)
  2. In Windows, which key must you hold to select multiple non-contiguous files?

    • A. Shift
    • B. Ctrl
    • C. Alt
    • D. Tab
    • Answer: B (Shift to select contiguous files)

1.4 Fundamentals of Computer Networking

  • Suggested Duration: 28 minutes
  • Tags: #Network #IP Address #Protocol

Concept Explanation

  1. Network Categories

    • LAN (Local Area Network): Limited coverage, such as homes and school computer labs.
    • MAN (Metropolitan Area Network): Covers a city.
    • WAN (Wide Area Network): Wide coverage, such as the Internet.
  2. IP Address

    • IPv4: 32 bits, typically represented in dotted-decimal notation (e.g., 192.168.1.1). Range: 0.0.0.0 - 255.255.255.255.
    • IPv6: 128 bits, solving the IP address exhaustion problem.
  3. Common Protocols

    • TCP/IP: The fundamental protocol suite of the Internet.
    • HTTP/HTTPS: Hypertext Transfer Protocol, used for browsing web pages.
    • FTP: File Transfer Protocol.
    • SMTP/POP3: Email send/receive protocol.
  4. Network devices

    • Router: Connects different networks and selects paths (Network Layer).
    • Switch: Device connectivity within a LAN (Data Link Layer).
    • Modem: Analog-to-digital conversion.

Knowledge Check Practice

  1. How many bits are in an IPv4 address?

    • A. 16
    • B. 32
    • C. 64
    • D. 128
    • Answer:B
  2. Which of the following IP addresses is invalid?

    • A. 192.168.1.1
    • B. 10.0.0.1
    • C. 256.1.1.1
    • D. 172.16.0.1
    • Answer: C (max 255 per segment)

1.5 Information Security and Computer Viruses

  • Suggested Duration: 20 minutes
  • Tags: #security #virus #encryption

Concept Explanation

  1. Computer virus characteristics

    • parasitic: Attaches to another program.
    • Contagious: Self-replicating propagation.
    • LatentDifficult to detect before an attack occurs.
    • Destructive: Destroy data or systems.
  2. Information Security Technology

    • Encryption technology: Symmetric encryption (same key), Asymmetric encryption (public/private keys).
    • FirewallIsolate internal and external networks; monitor inbound and outbound traffic.
    • Digital Signature: Verify identity and prevent tampering.
  3. Common Attacks

    • Phishing site: Prompting for password input.
    • Trojan: Masquerades as legitimate software to steal information.

Knowledge Check Practice

  1. Which of the following statements about computer viruses is correct?

    • A. is a biological virus
    • B. is a special type of hardware failure
    • C. is artificially generated code
    • D. Won't get infected if you don't connect to the internet
    • Answer:C
  2. What is the primary function of a firewall?

    • A. Prevent Fire
    • B. Scan and remove viruses
    • C. Isolate internal and external networks to protect internal security
    • D. Accelerate Network
    • Answer:C

1.6 NOI Competition and Activity Rules

  • Suggested Duration: 18 minutes
  • Tags: #NOI #CSP #Rules

Concept Explanation

  1. Competition System

    • CSP-J/S: Non-professional Software Proficiency Certification (Entry-level J / Advanced S). Includes Round 1 (Written/Computer-based Multiple Choice) and Round 2 (Algorithmic Programming).
    • NOIP: National Olympiad in Informatics (Provincial Division).
    • NOI: National Olympiad in Informatics (NOI).
    • IOI: International Olympiad in Informatics.
  2. CSP-J1 Exam Format

    • Written Exam (currently mostly computer-based multiple-choice questions).
    • Maximum score: 100.
    • Question Types: Single-Choice, Multiple-Choice, Problem-Solving, Code Reading, and Code Completion.
  3. Rating Criteria

    • Reading comprehension questions and program completion tasks typically carry higher point values.

Knowledge Check Practice

  1. What does the "J" in CSP-J stand for?

    • A. Junior
    • B. Junior
    • C. Java
    • D. Joint
    • Answer:A
  2. What is the full form of NOI?

    • A. National Olympiad in Informatics
    • B. National Internet Organization
    • C. New Operation Interface
    • D. Information Network
    • Answer:A

Getting Started with 1.7 Programming Environment

  • Suggested Duration: 20 minutes
  • Tags: #IDE #Dev-C++ #Compile

Concept Explanation

  1. Programming Language Classification

    • Machine Language: 0 and 1, executed directly by the computer.
    • Assembly language: mnemonic, requires assembler translation.
    • Advanced Language: Close to natural language (C++, Python, Java); requires compilation or interpretation.
  2. Compilation process

    • Source code (.cpp) → Compiler → Object code (.obj) → Linker → Executable file (.exe).
  3. Common IDEs (Integrated Development Environments)

    • Dev-C++CSP exam environment: lightweight.
    • Visual StudioPowerful features.
    • CLion: By JetBrains.
    • VS Code: Editor requires plugin configuration.
  4. Basic Operations

    • New Source File, Save, Compile, Run.
    • Common Errors: Compile Error, Runtime Error, Time Limit Exceeded.

Knowledge Check Practice

  1. What is the default file extension for C++ source code files?

    • A. .c
    • B. .cpp
    • C. .java
    • D. .py
    • Answer:B
  2. What is the process of translating high-level language into machine language called?

    • A. Explanation
    • B. Assembly
    • C. Compile
    • D. Link
    • Answer:C
豫ICP备2026040576号-1