Introduction to Computer and Programming Language Flashcards

(27 cards)

1
Q

What is the activity of programming?

A

The art and science of designing and writing computer programs

Programming involves creating sequences of instructions to achieve tasks or solve problems.

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

Define computer program.

A

A sequence of instructions written in a programming language to achieve a task/to solve a problem

Programs are essential for executing specific functions on a computer.

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

What are the two main components of a computer?

A
  • Hardware
  • Software

Hardware refers to the physical parts, while software consists of programs and data.

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

What does hardware refer to?

A

The physical, tangible parts of a computer, such as keyboard, monitor, disks, wires, chips, etc.

Hardware is essential for the functioning of software.

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

What is software?

A

Programs and data used to perform certain tasks

Software is an abstract, intangible entity that requires hardware to operate.

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

List the components of computer organization.

A
  • CPU
  • Main Memory (RAM)
  • Secondary Storage
  • I/O Device

These components work together to process and store information.

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

What is the role of the CPU?

A

The brain of the computer, responsible for processing instructions

The CPU is the most expensive and fastest component of a computer.

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

What is RAM?

A

Temporary memory, volatile, directly connected to the CPU

RAM is used for storing data that is actively being used or processed.

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

What is secondary storage?

A

Provides permanent storage for information

Examples include hard disks, floppy disks, Zip disks, CD-ROMs, and tapes.

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

Differentiate between RAM and secondary storage.

A
  • RAM: Volatile, fast, expensive, low capacity
  • Secondary Storage: Nonvolatile, slow, cheap, large capacity

RAM works directly with the processor, while secondary storage does not.

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

What is system software?

A

Programs that keep all hardware and software running smoothly

The most important system software is the operating system (OS).

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

What is the function of an operating system (OS)?

A

Controls all machine activities and provides the user interface

Examples include Windows XP, Unix, Linux, and Mac OS.

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

What is application software?

A

Generic term for any other kind of software, such as word processors and games

Application software is designed to help users perform specific tasks.

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

What does it mean for information to be digitized?

A

Broken down into pieces and represented as numbers

This includes all types of data, such as text, graphics, and audio.

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

What is a bit?

A

A single binary digit (0 or 1)

Bits are the basic unit of information in computing.

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

What is a byte?

A

Consists of 8 bits

Bytes are used to represent a character or a small amount of data.

17
Q

What are the levels of programming language?

A
  • Machine language
  • Assembly language
  • High-level language

Each level serves to make programming easier for humans.

18
Q

Define machine language.

A

Instruction in 0 and 1 bits

It is the lowest level of programming language, specific to each CPU.

19
Q

What is assembly language?

A

Instruction in mnemonic code

Assembly language is a step above machine language, using symbols and letters.

20
Q

What is a high-level language?

A

Similar to human language, examples include FORTRAN, COBOL, Pascal, C, C++, Java

High-level languages are designed to be easy for humans to read and write.

21
Q

What are the three kinds of errors in programming?

A
  • Syntax errors
  • Runtime errors
  • Logic errors

Each type of error affects the program’s execution differently.

22
Q

What are syntax errors?

A

Grammatical mistakes in a program

The compiler catches these errors and prints an error message.

23
Q

What are runtime errors?

A

Errors detected when the program is running, not during compilation

These errors cause the program to terminate unexpectedly.

24
Q

What are logic errors?

A

Errors that produce incorrect results but are not detected during compilation or execution

An example is incorrect calculations in a program.

25
Who created the **Java Programming Language**?
Sun Microsystems, Inc. ## Footnote Java was introduced in 1995 and has gained popularity due to its rich library and platform independence.
26
What does **Java bytecode** represent?
A special representation of Java source code, not machine language for any traditional CPU ## Footnote Bytecode is executed by the Java Virtual Machine (JVM).
27
What is the purpose of a **class loader** in Java?
Automatically connects classes together and loads compiled code into main memory ## Footnote The class loader is essential for executing Java programs.