• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Introduction to Computer Science

Module 1. Introduction to Computers and Programming

The first module Introduction to Computers and Programming aims to define and introduce the fundamental keywords in computer science and programming. The learning objectives of this module are getting acquainted with the common terminology related to computers and having a first structural perspective to their functioning.

Introduction to Computer Science: Terminology

We are all very much familiar with computers, but how are they designed and constructed? This short lecture introduces the fundamental building blocks of the modern digital computer.

Operating Systems

The operating system provides the foundation for accessing and utilizing the computer’s functionalities. This section introduces the main concepts of how the operating system works.

File Management

Developed in the 70s to replace the manual archiving in the workplace, the commercial computer has a structured file system to store and process information in the long term. The following section introduces basic terms and concepts related to the computer’s file management system.

Command-line and Unix shell

In this module, we have covered the terminology used in computer architecture, operating systems and the Unix shell.

Exercise

We will proceed with a programming exercise using the Bash scripting language in order to also gain some practical understanding on the operating system and the Unix shell.

Note: Before moving on, please make sure your shell application is set up to allow interaction with your operating system. Mac users can directly use the Terminal application, whereas Windows users are recommended to install the Unix emulator application Cygwin (for instructions on how to install the Cygwin, please follow the link).

Use your computer’s shell to :

  • Go to your home directory in the file system
  • Create a directory named “cs101”
  • Go inside the directory “cs101”
  • Print the path to the current working directory
  • Use vim to open a new text file called “myfirstfile.txt”
  • Write “hello” in the file, exit by saving the file inside the vim prompt
  • Making sure you are back in the “cs101” folder, list all file properties
  • Delete the file “myfirstfile.txt”
  • Go back to the home directory
  • Delete the directory “cs101”

Solution

You can use the following commands for accomplishing each task:

  • cd
  • mkdir cs101
  • cd cs101
  • pwd
  • vi myfirstfile.txt
  • :wq
  • ls
  • rm myfirstfile.txt
  • cd
  • rm -r cs101

In order to study the details of different commands and alternative methods for doing file management on the Unix shell, you can take a look at the following cheat sheets listing commonly used commands in Unix and vim text editor:

  • Unix Cheat Sheet
  • Vim Cheat Sheet (Windows users: you can refer to this link to install vim)

Quiz

Please follow the link to the self-assessment quiz to make sure your understanding of the theoretical concepts covered in this module are complete.

Primary Sidebar

List of Contents

  • Course Description
  • Module 1. Introduction to Computers and Programming
  • Module 2. The Java language
  • Module 3. Variables and Data Types
  • Module 4. Logical expressions and conditional executing
  • Module 5. Characters and Strings
  • Module 6. Loops
  • Module 7. Arrays
  • Module 8. Methods
  • Module 9. Introduction to the Object-Oriented Programming Paradigm
  • Module 10. Classes and Objects
  • Module 11. Inheritance and Polymorphism
  • Module 12. Interfaces and Abstract Classes
  • Module 13. Exception handling
  • Module 14. File I/O
  • Module 15. Recursion
  • Instructions for software installation
  • Self-assessment quizzes

Footer

This website has been created by Duygu Ataman, Devesh Devendra and Akash Harikrishanan. We thank New York University professors Craig Kapp, Anasse Bari and Gizem Kayar for sharing their feedback and resources to implement a successful online learning platform.

Contact

E-mail: ataman@nyu.edu

www.duyguataman.com

Dr. Duygu Ataman

Assistant Professor and Faculty Fellow, Courant Institute for Mathematical Sciences

Copyright © 2025 · eleven40 Pro on Genesis Framework · WordPress · Log in