Exam 1 Topics Flashcards
What is a computer
An electronic device capable of performing commands (input, output, storage, arithmetic and logic operations)
What is the definition of hardware
The physical components of a computer and its surrounding (peripheral) devices
What are the basic components of a computer’s hardware?
CPU and main memory, secondary storage, and input and output devices
What is the definition of software
programs; sets of instructions to be executed by a computer
What is the type of software designed to control the computer?
system software
What is a operating system?
a set of programs that control overall computer activity and provide services (Linux, Windows)
What is an application (type of software)
it is a program designed to perform specific tasks
What is emacs?
a program used to create and modify text based files (editor)
List the three categories of programming languages
machine language, assembly language, and high-level language.
Define machine language (programming language)
machine language is instructions made up of sequences of 0s and 1s. It is the only language directly understood and executed by the computer and is machine dependent.
Define assembly language (programming language)
assembly language is instructions made up of mnemonic codes. It must be translated into machine language be a program called a assembler and is machine dependant.
Define high-level language and name some examples (programming language)
high-level language is instructions that are closer to natural language which makes use of familiar words and symbols. It is machine independent. Some examples include BASIC, FORTRAN, Pascal, Java, C, C++.
Explain what a compiler is and name the one that we use in CS 135
a program that translates instruction written in a high-level language into the equivalent machine code (g++)
Name the Linux distro we use in CS 135
Linux (CentOS 6)
What does “ls” do? (Linux command)
the list command displays an alphabetical list of all the files and directories in your current directory
What does “cat” do? (Linux command)
the concatenate command allows a user to display the entire content of a text file to the screen
What does “more” do? What are the controls? (Linux command)
the more command allows the user to display the content of a file one screen (or page) at a time (similar to cat command) - press space bar to display the next page, q to quit.
What does “lpr” do? (Linux command)
the line print command is used to send a file to a printer.
What does “cp” do? (Linux command)
the copy command is used to copy the content of one file to another file.
What does “man” do? (Linux command)
the man command provides the user with access to an online manual for Linux commands.
What is the Linux command to compile a program? (Linux command)
g++ progfile.cpp
What is the Linux command to run a complied program?
./a.out
What is a source file? What is a source file’s file extension for this course?
A source file is the human readable version of a program; the file extension we use is .cpp
What is a object file?
The object file is what gets compiled, it is “a.out” and is machine readable version of a program.