Intro Programming Flashcards

1
Q

What is a computer program?

A

Computer programs, known as software, are the invisible instructions that control the hardware and make it perform tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Computer programming is…

A

…the writing of instructions (i.e., code) for computers to perform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is CPU?

A

The central processing unit (CPU) is a computer’s brain. It retrieves instructions from memory and executes them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Computers use ____ and ____ because digital devices have two _____ electrical states, ___ and ___, referred to by convention as ____ and ____.

A

Computers use zeros and ones because digital devices have two stable electrical states, off and on, referred to by convention as zero and one.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A bit is a…

A

…binary digit 0 or 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A byte is a…

A

…sequence of 8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A kilobyte is about _____ bytes, a megabyte about _____ bytes, a gigabyte about _____ bytes, and a terabyte about _____ gigabytes.

A

A kilobyte is about 1,000 bytes, a megabyte about 1 million bytes, a gigabyte about 1 billion bytes, and a terabyte about 1,000 gigabytes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the memory in a computer do?

A

Memory stores data and program instructions for the CPU to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Memory is _____ because information that hasn’t been saved is _____ when the power is turned off.

A

Memory is volatile because information that hasn’t been saved is lost when the power is turned off.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is machine language?

A

The machine language is a set of primitive instructions built into every computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is assembly language?

A

Assembly language is a low-level programming language in which a mnemonic is used to represent each machine-language instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

High-level languages are _______ and easy to learn and program.

A

High-level languages are English-like and easy to learn and program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A program written in a high-level language is called _______.

A

source code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a compiler?

A

A compiler is a software program that translates the source program into a machine-language program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the operating system (OS)?

A

The operating system (OS) is a program that manages and controls a computer’s activities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Python is _______, meaning that Python translates each statement and processes it ________.

A

interpreted, one at a time

17
Q

Python source programs are ________.

A

case sensitive.

18
Q

Programming errors can be categorized into three types: _____, ______, and ______.

A

syntax errors, runtime errors, and logic errors.

19
Q

Syntax and runtime errors cause a program to _______. Logic errors occur when a program _________.

A

Syntax and runtime errors cause a program to terminate abnormally. Logic errors occur when a program does not perform the way it was intended to.

20
Q

Name the 6 main phases of the software development cycle.

A
1 - Planning
2 - Analysis
3 - Design
4 - Implementation (programming)
5 - Testing and integration
6 - Maintenance
21
Q

What is DevOps?

A

Development and Operations. First you develop, then you maintain and operate. It aims to shorten the systems development life cycle and provide continuous delivery with high software quality.

22
Q

Is programming more than coding?

A

Yes. Programming includes planning, testing, debugging and improving code.

23
Q

Describe the program development cycle.

A
1 - Design
2 - Code
3 - Correct syntax errors
4 - Testing
5 - Correct logic errors
24
Q

Pseudocode is

A

a plain language description of the steps in an algorithm/code. Often uses structural conventions of a normal programming language, but is intended for human reading rather than machine reading