Lecture1a - Introduction to programming Flashcards

1
Q

What is a computer?

A

A programmable electronic device that accepts input, performs operations, presents output, and stores data. It includes hardware and software.

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

What is the role of the CPU?

A

The CPU (Central Processing Unit) processes instructions stored in memory using transistors to execute operations.

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

What is the smallest unit of memory?

A

A bit (1 or 0). Eight bits form a byte, the minimum storage unit in a computer.

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

What are is an encoding scheme and give examples?

A

An encoding scheme is a set of rules to convert data into a specific format for efficient storage, transmission, and processing.

  • ASCII (American Standard Code for Information Interchange): Uses numeric
    codes to represent characters.
  • UTF-8 (Unicode Transformation Format - 8-bit): Encodes all possible
    characters in Unicode using one to four bytes.
  • Base64: Encodes binary data into a text format using 64 different ASCII characters.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the main parts of a computer?

A

CPU, Main Memory (RAM), and Storage (Hard Drive).

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

What is a program?

A

A sequence of instructions executed by a computer to achieve a specific result.

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

Why learn programming?

A

It develops problem-solving skills, provides control over powerful machines, and is a valuable, marketable skill.

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

What are low-level languages?

A

Machine code (binary) and assembly language, which are close to hardware, hardware specific and execute quickly.

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

What are high-level languages?

A

Languages like C++, Java, and Python that resemble English and must be translated into machine code.

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

How is high-level language translated into machine code?

A

Through compiling (converting all at once) or interpreting (converting as needed).

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

What are the two main programming paradigms?

A

Procedural (sequential execution of code) and Object-Oriented (organizing code into objects with state and behavior).

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

What is Java, and when was it developed?

A

A programming language developed by Sun Microsystems in 1991, first released in 1995, and now maintained by Oracle.

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