Docsity

Starting OUT WITH Python 6 Concept Review Guide Object Oriented Programming AND Debugging, Exams of Medicine

Toggle sidebar
bg1
Starting OUT WITH Python 6 Concept Review
Guide Object Oriented Programming AND
Debugging Techniques Questions and Answers
Verified Solutions Latest Update (2026/2027)
Question:
What is hardware?
Answer:
Refers to all of the physical
components of devices of which a computer is made. It is not one
single device, but a system of devices that work together like a
symphony. Each device in a computer plays its own part.
Question:
List 5 major components of a computer system.
Answer:
The CPU,
RAM (main memory), Disk or Disk Drives (secondary memory)
Input Devices, Output Devices
Question:
What part of the computer actually runs programs?
Answer:
Central Processing Unit (CPU) (It executes instructions)
Question:
What part of the computer serves as a work area to store a
program and its data when running?
Answer:
RAM (random access
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Starting OUT WITH Python 6 Concept Review Guide Object Oriented Programming AND Debugging and more Exams Medicine in PDF only on Docsity!

Starting OUT WITH Python 6 Concept Review

Guide Object Oriented Programming AND

Debugging Techniques Questions and Answers

Verified Solutions Latest Update (2026/2027)

Question:

What is hardware?

Answer:

Refers to all of the physical components of devices of which a computer is made. It is not one single device, but a system of devices that work together like a symphony. Each device in a computer plays its own part.

Question:

List 5 major components of a computer system.

Answer:

The CPU, RAM (main memory), Disk or Disk Drives (secondary memory) Input Devices, Output Devices

Question:

What part of the computer actually runs programs?

Answer:

Central Processing Unit (CPU) (It executes instructions)

Question:

What part of the computer serves as a work area to store a program and its data when running?

Answer:

RAM (random access

memory)

Question:

What part of the computer holds data for a long period of time; even when there is no power to the computer?

Answer:

Disk Drive/ Disk (inside the computer or external Disk Drive or Thumb Drive

Question:

What part of the computer collects data from people and other devices?

Answer:

Input Devices such as - keyboard, Waacom tables, digital camera, mouse, scanner, microphone

Question:

What part of the computer formats and presents data for people and other devices?

Answer:

Output Devices such as - Computer monitor, speaker, printer, disc drive

Question:

What fundamental set of programs control the internal operations of the computers hardware?

Answer:

Operating Systems - the most fundamental set of programs on a computer ie. windows, macOC, Linus (system software)

When a program runs on a computer, the part of the computer that carries out the instructions is called the

Answer:

Central Processing Unit (CPU)

Question:

When a program runs on a computer, it is stored in

Answer:

Random Access Memory (RAM)

Question:

RAM, random-access memory, is called that because

Answer:

you can pick any two random locations and it will take the same time to access the data

Question:

external storage(memory) devices

Answer:

Flash drives, CDs, external disks are all examples of this

Question:

An operating system does what?

Answer:

allocates resources like memory to programs that are running

Application software is what?

Answer:

is any software that runs with the support of the operating systems.

Question:

What amount of memory is enough to store a letter of the alphabet or a small number?

Answer:

one byte

Question:

What do you call a tiny "switch" that can be set to either on or off?

Answer:

bit

Question:

In what numbering system are all numeric values written as sequences of 0s and 1s?

Answer:

binary numbering system

Question:

What is the purpose of ASCII?

Answer:

The American Standard Code for Information Interchange is a set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters.

A CPU understands instructions that are written only in what language?

Answer:

machine language

Question:

A program has to be copied into what type of memory each time the CPU executes it?

Answer:

Main memory, or RAM

Question:

When a CPU executes the instructions in a program, it is engaged in what process?

Answer:

The fetch-decode-execute cycle

Question:

What is assembly language?

Answer:

It is an alternative language to machine language. Instead of using, binary numbers for instructions, assembly language uses short words that are known as mnemonics.

Question:

What type of programming language allows you to create powerful and complex programs without knowing how the CPU works?

Answer:

high-level language

Each language has a strict set of rules that must be strictly followed when writing a program. What is this set of rules called?

Answer:

Syntax

Question:

What do you call a program that translates a high-level language program into a separate machine language program?

Answer:

Compiler **Note: ASSEMBLY language is translated to Machine language by an ASSEMBLER.

Question:

3K means about 3 thousand bytes. How would you express five billion bytes?

Answer:

5 GB

Question:

3k means about 3 thousand bytes. How would you express two hundred million bytes?

Answer:

200 MB

Question:

3k means about 3 thousand bytes. How would you express four trillion bytes?

Answer:

4 TB

A byte in memory is identified by a unique number called its

Answer:

address

Question:

In modern computer systems, a byte consists of how many bits?

Answer:

Question:

A binary digit (choose one) is either positive or negative, is zero or one, requires one byte of storage, is 2, is none of the above.

Answer:

is zero or one

Question:

The binary equivalent of the decimal numeral 3 is

Answer:

Question:

The binary equivalent of the decimal numeral 6 is

Answer:

Question:

The binary equivalent of the decimal numeral 2 is

Answer:

The binary equivalent of the decimal numeral 9 is

Answer:

Question:

The binary representation of a number divisible by 4 ends in

Answer:

Question:

What best defines a "programming language"?

Answer:

It allows us to express an algorithm.

Question:

Machine languages can be used to express

Answer:

algorithms

Question:

Machine language consists of

Answer:

zeros and ones

Question:

Machine language is produced by

Answer:

compilers

Computers can only execute programs written in

Answer:

machine language

Question:

How many bytes in a Kilobyte KB

Answer:

about 1 thousand bytes

Question:

How many bytes in a Megabyte MB

Answer:

about 1 million bytes

Question:

How many bytes in a Gigabyte GB

Answer:

about 1 billion bytes

Question:

How many bytes in a Terabyte TB

Answer:

about 1 trillion bytes

Question:

A program

Answer:

is a long sequence of machine language instructions.

Fetch

Answer:

The first step of this cycle is to___________, or read the next instruction from memory into the the CPU.

Question:

A machine language instruction

Answer:

is a binary number that represents a command that tells the CPU to perform an operation.

Question:

Decode

Answer:

In this step, the CPU decodes the instruction that was just fetched (or read) from memory, to determine which operation it should perform.

Question:

Execute

Answer:

The last step in a 3 step cycle in the CPU to perform the operation.

Question:

Computers can only execute programs that are written in __________.

Answer:

machine language

This is a volatile type of memory that is used only for temporary storage while a program is running.

Answer:

RAM (random access memory, a. k. a. main memory)

Question:

A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called ____.

Answer:

secondary storage such as a disk drive, thumb drive, CD-RW, hard disk

Question:

A component that collects data from people or other devices and sends it to the computer is called ____.

Answer:

input device

Question:

A video display is a(n) __________ device.

Answer:

output

Question:

A______________is enough memory to store a letter of the alphabet or small number.

Answer:

byte

A byte is made up of eight

Answer:

bits

Question:

In the_____________numbering system, all numeric values are written as sequences of 0s and 1s.

Answer:

binary

Question:

A bit that is turned off represents the following value: __________.

Answer:

0 (zero)

Question:

A set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters is __________.

Answer:

ASCII

Question:

An extensive encoding scheme that can represent characters for many languages in the world is ____.

Answer:

Unicode

Answer:

interpreter

Question:

The words that make up a high-level programming language are called __________.

Answer:

key words

Question:

The rules that must be followed when writing a program are called __________.

Answer:

syntax

Question:

A(n)__________program translates a high-level language program into a separate machine language program.

Answer:

compiler

Question:

True or False Today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches.

Answer:

False

Question:

Main memory is also known as ________.

Answer:

Random Access Memory (RAM)

binary data

Answer:

Any piece of data that is stored in a computer's memory must be stored as a _______

Question:

Images, like the ones you make with your digital camera, cannot be stored as

Answer:

binary numbers

Question:

Why is the CPU the most important component in a computer?

Answer:

The CPU is the most important component in a computer because without it, the computer could not run software.

Question:

On=1 Off =

Answer:

When a bit is turned off or on, this is how it is represented.

Question:

What would you call a device that works with binary data?

Answer:

digital device