Introduction to Computers and Programming Flashcards

1
Q

What is a program?

A

A set of instructions a computer follows to perform a task.

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

What is the role of a programmer or software developer?

A

A person who designs, creates, and tests computer programs.

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

What are the five major hardware components of a computer system?

A

CPU, main memory, secondary storage, input devices, output devices.

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

Why is the CPU considered the most important component of a computer?

A

It executes programs, and the computer cannot run software without it.

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

What is the difference between RAM and secondary storage?

A

RAM is volatile and used for active programs; secondary storage is non-volatile and holds data long-term.

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

What are the advantages of solid-state drives (SSDs) over disk drives?

A

SSDs have no moving parts and are faster than disk drives.

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

What is the function of input and output devices?

A

Input devices send data to the computer; output devices present processed data.

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

How is data stored in a computer?

A

As sequences of 0s and 1s (binary).

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

What is the smallest unit of data in a computer?

A

A bit (binary digit), which can be 0 or 1.

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

How many values can be stored in 8 bits (1 byte)?

A

256 values (0 to 255).

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

What is ASCII and Unicode used for?

A

Encoding characters as numeric codes in binary form.

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

What is the purpose of the fetch-decode-execute cycle?

A

It describes how the CPU processes instructions in three steps: fetching, decoding, and executing.

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

What is assembly language, and how does it differ from machine language?

A

Assembly language uses mnemonics instead of binary; it is still low-level and requires an assembler to convert it to machine code.

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

What are the main advantages of high-level programming languages?

A

They are easier to read, write, and understand than low-level languages.

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

What is the difference between a compiler and an interpreter?

A

A compiler translates an entire program before execution, while an interpreter translates and executes each instruction immediately.

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