Lecture1&2 Flashcards
What’s is Hardware?
The visible and physical elements of computer
What does software do?
Provide instructions that controls the hardware and make it perform specific tasks
….. is the physical aspect of the computer that can be seen
Hardware
What’s the brain of a computer?
CPU
List five major hardware components of a computer
CPU , Memory, Storage devices, Input/Out Devices, and Communication Devices
The speed of the CPU may be measured in ?
A. Megabytes B. Gigabytes C. Megahertz D. Gigahertz
(بالسلايدز مذكور فقط megahertz )
megahertz
What does 1 megahertz equal in pulses per second?
1 million pulses per second
From where does the CPU retrieve its instructions?
- A. The hard drive
- B. The graphics card
- C. The memory
- D. The printer
C The Memory
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) Eight bits, called a byte
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
C) Memory stores data and instructions for the CPU to process
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
B) Because data is lost when the power is turned off
** Where are programs and data stored permanently in a computer system?**
A) Memory
B) CPU
C) Storage devices
D) Input devices
C) Storage devices
Give examples of storage devices
Disk drives (hard disks and floppy disks) and
USB flash memory.
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) Memory is volatile and temporary, while storage is non-volatile and permanent
Which of the following is NOT considered hardware in a computer system?
A) CPU
B) Monitor
C) Operating System
D) Mouse
C) Operating System
Which device is classified as an input device?
A) Monitor
B) Printer
C) Keyboard
D) Speaker
C) Keyboard
Which of the following is an example of a high-level programming language?
A) Assembly
B) Machine language
C) C++
D) Binary code
C) C++
Which of the following is an example of a system program?
A) Web browser
B) Word processor
C) Microsoft Windows
D) Spreadsheet software
C) Microsoft Windows
Which programming language would be best for scientific programming according to the slides?
A) Java
B) FORTRAN
C) C++
D) Pascal
B) FORTRAN
In which form does machine language express its instructions?
A) English-like commands
B) Hexadecimal code
C) Binary code
D) Assembly code
C) Binary code
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
B) To translate the program into machine code
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.
C) Computers have two stable states, representing 0 and 1.
Which of these is NOT an example of a high-level programming language?
A) Java
B) Assembly
C) C++
D) Python
B) Assembly
In which programming language do you write instructions using binary code?
A) High-level languages
B) Assembly language
C) Machine language
D) Scripting languages
C) Machine language