Lecture1&2 Flashcards

1
Q

What’s is Hardware?

A

The visible and physical elements of computer

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

What does software do?

A

Provide instructions that controls the hardware and make it perform specific tasks

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

….. is the physical aspect of the computer that can be seen

A

Hardware

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

What’s the brain of a computer?

A

CPU

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

List five major hardware components of a computer

A

CPU , Memory, Storage devices, Input/Out Devices, and Communication Devices

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

The speed of the CPU may be measured in ?
A. Megabytes B. Gigabytes C. Megahertz D. Gigahertz

A

(بالسلايدز مذكور فقط megahertz )
megahertz

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

What does 1 megahertz equal in pulses per second?

A

1 million pulses per second

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

From where does the CPU retrieve its instructions?
- A. The hard drive
- B. The graphics card
- C. The memory
- D. The printer

A

C The Memory

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

A memory unit consists of:
- A) Eight bits, called a byte
- B) Four bits, called a byte
- C) Sixteen bits, called a byte
- D) Two bits, called a byte

A

A) Eight bits, called a byte

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

Which of the following statements is true about memory?
- A) Memory is used to store long-term data
- B) Memory interacts directly with the input and output devices
- C) Memory stores data and instructions for the CPU to process
- D) Memory only holds data permanently

A

C) Memory stores data and instructions for the CPU to process

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

Why is memory considered volatile?
A) Because it stores data permanently
B) Because data is lost when the power is turned off
C) Because it cannot store programs
D) Because it only stores input and output devices

A

B) Because data is lost when the power is turned off

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

** Where are programs and data stored permanently in a computer system?**
A) Memory
B) CPU
C) Storage devices
D) Input devices

A

C) Storage devices

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

Give examples of storage devices

A

Disk drives (hard disks and floppy disks) and
USB flash memory.

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

Which of the following describes the difference between memory and storage?
A) Memory is volatile and temporary, while storage is non-volatile and permanent
B) Memory is non-volatile, while storage is volatile
C) Memory stores data permanently, while storage holds temporary data
D) Memory is faster and larger than storage

A

A) Memory is volatile and temporary, while storage is non-volatile and permanent

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

Which of the following is NOT considered hardware in a computer system?
A) CPU
B) Monitor
C) Operating System
D) Mouse

A

C) Operating System

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

Which device is classified as an input device?
A) Monitor
B) Printer
C) Keyboard
D) Speaker

A

C) Keyboard

17
Q

Which of the following is an example of a high-level programming language?
A) Assembly
B) Machine language
C) C++
D) Binary code

A

C) C++

18
Q

Which of the following is an example of a system program?
A) Web browser
B) Word processor
C) Microsoft Windows
D) Spreadsheet software

A

C) Microsoft Windows

19
Q

Which programming language would be best for scientific programming according to the slides?
A) Java
B) FORTRAN
C) C++
D) Pascal

A

B) FORTRAN

20
Q

In which form does machine language express its instructions?
A) English-like commands
B) Hexadecimal code
C) Binary code
D) Assembly code

A

C) Binary code

21
Q

Why do high-level programming languages need a compiler?
A) To translate the program into assembly language
B) To translate the program into machine code
C) To write the program in binary
D) To execute the program directly

A

B) To translate the program into machine code

22
Q

Why do computers use binary (zeros and ones)?
A) It simplifies programming.
B) It is the foundation of all number systems.
C) Computers have two stable states, representing 0 and 1.
D) Binary can represent any number.

A

C) Computers have two stable states, representing 0 and 1.

23
Q

Which of these is NOT an example of a high-level programming language?
A) Java
B) Assembly
C) C++
D) Python

A

B) Assembly

24
Q

In which programming language do you write instructions using binary code?
A) High-level languages
B) Assembly language
C) Machine language
D) Scripting languages

A

C) Machine language

25
Q

According to the slides, which programming language would best suit web programming?
A) COBOL
B) Pascal
C) Java
D) FORTRAN

A

C) Java

26
Q

What does a compiler do in the context of programming languages?
A) Runs high-level language code directly
B) Translates high-level code into machine code
C) Translates machine code into assembly
D) Executes machine code step by step

A

B) Translates high-level code into machine code

27
Q

Which of the following best defines an algorithm?
A) A complex mathematical formula
B) A set of sequential steps to solve a problem
C) A flowchart to visualize a problem
D) A programming language

A

B) A set of sequential steps to solve a problem

28
Q

What is pseudocode used for?

A

Explaining algorithms in an easy-to-read format

28
Q

In a flowchart, what symbol is used to represent a decision?

A

Diamond(الماسة)

29
Q

What does the parallelogram(متوازي الاضلاع) symbol in a flowchart represent?

A

An input or output operation

30
Q

What is pseudocode?

A

English-like representation of an algorithm

31
Q

What is the first step in the problem-solving approach?

A

Analyzing the problem

32
Q

Which of the following is NOT a component of analyzing a problem?
A. Identifying inputs
B. Identifying outputs
C. Writing code
D. Identifying processing operations

A

C. Writing code

33
Q

In which step do you translate the algorithm into code?

A

Implementing the algorithm

34
Q
A