Introduction to Computers and Programming

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

What is a program?

Program is set of instructions that computer follows to perform a task.

2
New cards

Computers can perform a wide variety of tasks because they are ______

programmable

3
New cards

What is a computer?

a programmable electronic device that stores, retrieves, and processes a large quantity of data both quickly and accurately.

4
New cards

A computer is a system of ____ 

hardware and software devices/components 

5
New cards

the physical components of the computer are called _____

hardware

6
New cards

Main Hardware Component (5 Categories)

Central Processing Unit (CPU), Main memory, secondary storage devices, input devices, output devices

7
New cards

What is the central processing unit (CPU)?

The part of the computer that runs programs

8
New cards

The CPU is comprised of two components which are… 

Control unit, arithmetic and logic unit (ALU) 

9
New cards

The main memory is also called the….

Random Access Memory (RAM)

10
New cards

Main Memory is rapid-access, relatively low-capacity storage for the instructions and data of ______ programs

executing/running

11
New cards

Main memory is …… Data and instructions stored here are erased when the program terminates or the computer is turned off

volatile

12
New cards

Main memory is organized as follows (bit, byte) (Provide definitions)

bit: smallest piece of memory.  Has values 0 (off, false) or 1 (on, true); byte: 8 consecutive bits. Bytes have addresses.

13
New cards

What is an address?

Addresses – Each byte in memory is identified by a unique number known as an address.

14
New cards

What is secondary storage? Is it persistent (what does it mean?)

Secondary storage is long-term, high-capacity storage for programs and data not currently in use. Secondary storage is persistent (non-volatile); data is retained when the program stops running or the computer is turned off.

15
New cards

Input Definition

data the computer accepts from outside for processing

16
New cards

Output Definition

data the computer sends to the outside

17
New cards

Name the 2 categories of software

System software and Application software

18
New cards

Definition of System Software (3 examples)

programs that manage the computer hardware and the programs that run on them. Examples: operating systems, utility programs, and software development tools

19
New cards

Definition of Application Software (3 examples)

programs that provide services to the user. Examples: word processors, spreadsheets, image editing software, games, and other programs to solve specific problems

20
New cards

A program ….

a set of instructions that the computer follows to perform a task

21
New cards

An algorithm is …

a set of well-defined, ordered steps for performing a task or solving a problem

22
New cards

Machine language ….

numeric language understood by a computer processor (binary pattern)

23
New cards

Types of language + give definitions

Low-level: used for communication with computer hardware directly.  Often written in binary machine code (0’s/1’s) directly.

High-level: closer to human language

24
New cards

Compiler definition

Programs written in high-level languages must be converted to machine language for execution on a computer. (in C+)

25
New cards

integrated development environment

combines the tools needed to write, compile, and debug a program into a single software application

26
New cards

What is a Program Made of? (5 things)

  • Key Words

  • Programmer-Defined Identifiers

  • Operators

  • Punctuation

  • Syntax

27
New cards

syntax

  • The rules of grammar that must be followed when writing a program

  • Controls the use of key words, operators, programmer-defined symbols, and punctuation

28
New cards

statement

a complete instruction that causes the computer to perform some action; Statements often occupy one line in the source code, but they can be spread over multiple lines.

29
New cards
  • variable

  • a named storage location in the computer’s memory for holding a piece of data.

  • A variable can hold one data item at a time, but the data held can be changed (it can vary) while the program is running.

  • A variable holds a specific type of data. There are types for holding: whole numbers, real numbers, single characters, and more.

30
New cards

To create a variable in a program you must write a variable definition

  • A variable holds a specific type of data.

31
New cards

The word double 

specifies that the variables can hold double-precision floating point numbers. 

32
New cards

Three steps that programs typically perform:

  1. Gather input data:

  • From keyboard

  • From files on disk drives

  • From other hardware device

  1. Process the input data

  2. Display the results as output:

  • Send it to the screen

  • Write it to a file 

  • Send it to another hardware device