[COSC 051] - Midterm Exam Guide - Ultimate 21 pages long Study Guide!

200 views21 pages

For unlimited access to Study Guides, a Grade+ subscription is required.

Georgetown
COSC 051
MIDTERM EXAM
STUDY GUIDE
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
Computer Science I Lectures
cs-class.uis.georgetown.edu
Open a terminal in your machine
>> Type ssh <your net id>@cs-class.uis.georgetown.edu
Say “yes” to feedback
g++ -o Hello Hello.cpp
./Hello
Learn to use sftp to transfer files from your computer to the server
>> Type sftp <your net id>@cs-class.uis.georgetown.edu
——————————————————————————————————————————
Program:
#include <iostream>
using namespace std;
int main()
{
cout ,, “Hello”;
return 0;
}
——————————————————————————————————————————
Main Memory
Characteristics:
-Holds both program instructions and data
-volatile — erased when program terminates or computer is turned off
-also called Random Access Memory (RAM)
Organization:
-bit: smallest piece of memory; stands for binary digit; has values 0 (off) or 1 (on)
-byte: 8 consecutive bits; has an address
-word: usually 4 consecutive bytes
Neon Packages **
Eclipse IDE for C/C++ Developers
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in
January 18th, 2017
Basic Commands
sftp <yourID>@cs-class.uis.georgetown.edu = securely transfer files to cs-class
ssh <yourID>@cs-class.uis.georgetown.edu = securely transfer files to cs-class
ls = list files in cs-class
lls = list files in your laptop
lcd Desktop = change director in your laptop to Desktop
put <filename.cpp> = transfers filename from laptop to cs-class
get <filename.cpp> = transfers filename from cs-class to laptop
more <filename.cpp> = tells you what is on the file
-o = program that is machine run-able
g++ -o <file> <file.cpp> = compiles; puts under new name, which is <file>
./<file> = executes a program/file
\n = new line
nano = to write a file in cs-class
vi
Colors in cs-class and what they denote
blue—> directory
green—> not human readable
black—> file is human readable
1.1 Problem, Solution, Program, Execution
-Computer: programmable machine designed to follow instructions
-Program/Software: instructions that a computer follows to perform a task
-Programmer: person with the skills to design, create, and test programs for computers
-Computer Scientist: person w its skills to design solutions that can be translated into programs
1.2 Computer Systems: Hardware and Software
-Hardware: physical components of a computer
-Main Hardware Component Categories
1. Central Processing Unit (CPU)
-runs programs and includes a) control unit: retrieves and decodes program
instructions, coordinates computer programs
2. Main memory (RAM, or Random Access Memory)
3. Secondary storage devices — hard disks, USBs
4. Input devices — keyboard, mouse, etc
5. Output devices — monitor
-heart-beat of a computer: fetch (get the next program instruction from main memory),
decode (interpret the instruction and generate a signal), execute (route the signal to the
appropriate component to perform an operation)
Alan Turing —> Turing Test
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 21 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$10 USD/m
Billed $120 USD annually
Homework Help
Class Notes
Textbook Notes
40 Verified Answers
Study Guides
1 Booster Class