Python Chapter 1 Flashcards
38 Questions
100 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the Python script file extension name?

Word.py

What is an assembler?

A software used to translate assembly language programs into machine code

What is assembly language?

A low-level programming language that uses a mnemonic for each machine language instruction

What is a bit?

<p>A binary number 0 or 1</p> Signup and view all the answers

What is a bus in computing?

<p>The components are connected through a subsystem that transfers data or power between them</p> Signup and view all the answers

What is a byte?

<p>A unit of storage that consists of 8 bits</p> Signup and view all the answers

What does a cable modem do?

<p>Uses the TV cable line maintained by the cable company and is as fast as DSL</p> Signup and view all the answers

When you use a function in programming, you are said to be "invoking a function" or "_______________"

<p>calling a function</p> Signup and view all the answers

What is the central processing unit (CPU)?

<p>A small silicon semiconductor chip with millions of transistors that executes instructions</p> Signup and view all the answers

What is a comment in programming?

<p>Documents what a program is and how it is constructed; ignored by the compiler</p> Signup and view all the answers

What is a compiler?

<p>A software program that translates program source code into a machine language program</p> Signup and view all the answers

What does a console refer to in computing?

<p>Text entry and display device of a computer</p> Signup and view all the answers

What is dot pitch?

<p>The amount of space between pixels</p> Signup and view all the answers

What is DSL?

<p>Uses a phone line and can transfer data at speeds 20 times faster than a regular modem</p> Signup and view all the answers

What is an encoding scheme?

<p>A set of rules that govern how a computer translates characters, numbers, and symbols into data</p> Signup and view all the answers

What is a function in programming?

<p>A block of code to perform actions</p> Signup and view all the answers

What is hardware?

<p>The physical aspect of the computer that can be seen</p> Signup and view all the answers

What is a high-level programming language?

<p>English-like and easy to learn and program</p> Signup and view all the answers

What is indentation in programming?

<p>The use of tabs and spaces to improve readability of source code</p> Signup and view all the answers

Typing a statement at the >>> prompt and executing it is called running Python in _________________

<p>interactive mode</p> Signup and view all the answers

What does an interpreter do?

<p>Reads one statement from the source code, translates it to machine code or virtual machine code, and then executes it</p> Signup and view all the answers

What does IDLE stand for?

<p>Interactive DeveLopment Environment</p> Signup and view all the answers

What is a line comment?

<p>Text after the pound sign # in a line</p> Signup and view all the answers

What is a logic error?

<p>An error that causes the program to produce incorrect results</p> Signup and view all the answers

What is a low-level language?

<p>Close in nature to machine language and is machine-dependent (e.g., assembly language)</p> Signup and view all the answers

What is machine language?

<p>A set of primitive instructions built into every computer in binary code</p> Signup and view all the answers

What is memory in computing?

<p>Stores data and program instructions for CPU to execute</p> Signup and view all the answers

What does a modem do?

<p>Uses a phone line and can transfer data at speeds up to 56,000 bps</p> Signup and view all the answers

What is a module in programming?

<p>A text file for storing Python code; may also be called a script or source file</p> Signup and view all the answers

What is a motherboard?

<p>A circuit case that connects all of the parts of a computer together</p> Signup and view all the answers

What is a network interface card (NIC)?

<p>A device to connect a computer to a local area network (LAN)</p> Signup and view all the answers

What is an operating system (OS)?

<p>A program that manages and controls a computer's activities (e.g., Windows, Linux, Solaris)</p> Signup and view all the answers

What is a pixel?

<p>Tiny dots that form an image on the screen</p> Signup and view all the answers

Writing programs is called _______________

<p>programming</p> Signup and view all the answers

What is resolution in computing?

<p>Specifies the number of pixels per square inch</p> Signup and view all the answers

What is a runtime error?

<p>An error that causes the program to terminate abnormally</p> Signup and view all the answers

What is software?

<p>The invisible instructions that control the hardware and make it work</p> Signup and view all the answers

What is source code?

<p>The human-readable instructions that make up a program</p> Signup and view all the answers

Flashcards

Word.py

A file extension used for Python script files, indicating that the file contains Python code.

Assembler

A specialized program that converts instructions written in assembly language into machine code, which the computer's processor understands.

Assembly Language

A low-level programming language that uses mnemonics (short codes) to represent instructions for a computer's processor. It's closer to machine language than high-level languages.

Bit

The smallest unit of data in computing, representing a binary value 0 or 1, like a light switch that's either on or off.

Signup and view all the flashcards

Bus

A subsystem that transports data or power between different components within a computer. Think of it as the highways that connect various parts of a computer.

Signup and view all the flashcards

Byte

A unit of digital information consisting of 8 bits. It's commonly used to measure data storage sizes (e.g., hard drives, memory).

Signup and view all the flashcards

Cable Modem

A device that uses a TV cable line to provide high-speed internet access, often comparable in speed to DSL.

Signup and view all the flashcards

Calling a Function

The act of executing or calling a function during program execution. It's like telling a function to perform its specific task.

Signup and view all the flashcards

CPU (Central Processing Unit)

The brain of a computer, a silicon chip containing millions of transistors that process instructions and perform computations.

Signup and view all the flashcards

Comment

Descriptive text written within a program's code that is ignored by the compiler. It's used to explain the code's purpose and structure.

Signup and view all the flashcards

Compiler

A software tool that translates human-readable source code written in a programming language into machine code that a computer can understand.

Signup and view all the flashcards

Console

A text-based interface for interacting with a computer, typically involving typing commands and receiving output as text.

Signup and view all the flashcards

Dot Pitch

A measurement of the distance between individual pixels (picture elements) on a display screen. Smaller dot pitch means higher image clarity.

Signup and view all the flashcards

DSL (Digital Subscriber Line)

A technology that utilizes existing phone lines to provide high-speed internet access, exceeding the speeds of traditional modems.

Signup and view all the flashcards

Encoding Scheme

A set of rules that define how characters, numbers, and other symbols are translated into computer-readable binary data.

Signup and view all the flashcards

Function

A reusable block of code designed to perform a specific task. Think of it as a mini-program within a larger program.

Signup and view all the flashcards

Hardware

The physical components of a computer system that you can physically touch, such as the keyboard, monitor, and hard drive.

Signup and view all the flashcards

High-Level Programming Language

Programming languages that are designed to be easy for humans to read and write, often resembling English. They abstract away low-level details.

Signup and view all the flashcards

Indentation

The use of spaces or tabs in code to improve readability and structure, marking the beginning and end of code blocks.

Signup and view all the flashcards

Interactive Mode

A way of running Python code by typing commands directly into the interactive interpreter, receiving immediate results.

Signup and view all the flashcards

Interpreter

A programming tool that executes code line by line, reading and interpreting instructions one at a time.

Signup and view all the flashcards

IDLE

An integrated development environment for Python code, providing tools like a code editor, interpreter, and debugger.

Signup and view all the flashcards

Line Comment

Comments in code that start with a pound sign (#) and continue on the same line. They are ignored by the compiler.

Signup and view all the flashcards

Logic Error

An error in a program's logic that causes it to produce incorrect results. It is often difficult to detect, as the code runs without crashing.

Signup and view all the flashcards

Low-Level Language

Programming languages that are designed to be machine dependent and very close to machine language. They offer limited abstraction and are less human-friendly.

Signup and view all the flashcards

Machine Language

Binary-coded instructions, the only language a computer's processor can directly understand. It consists of 0s and 1s.

Signup and view all the flashcards

Memory

The component that temporarily stores data and program instructions for the CPU to access quickly.

Signup and view all the flashcards

Modem

A device that uses a phone line to connect to the internet, typically transferring data at slower speeds than DSL.

Signup and view all the flashcards

Module

A file containing reusable Python code, which can be imported and used in other programs.

Signup and view all the flashcards

Motherboard

The main circuit board in a computer that connects all the other components, acting as the central hub.

Signup and view all the flashcards

NIC (Network Interface Card)

A hardware component, also known as a network card, that allows a computer to connect to a local area network (LAN).

Signup and view all the flashcards

Operating System (OS)

Software that manages the basic functions of a computer, such as running applications, controlling hardware, and providing a user interface (e.g., Windows, Linux).

Signup and view all the flashcards

Pixel

The smallest element of an image on a display screen, represented by a single point of color.

Signup and view all the flashcards

Programming

The act of writing instructions for computers to follow, which includes designing, writing, testing, and debugging programs.

Signup and view all the flashcards

Resolution

The number of pixels displayed per square inch on a screen, indicating the sharpness and detail of an image. Higher resolution means more pixels and finer details.

Signup and view all the flashcards

Runtime Error

An error that occurs during the execution of a program, causing it to crash or behave abnormally. These errors usually happen due to unforeseen circumstances.

Signup and view all the flashcards

Software

The set of instructions and data that control the operation of a computer's hardware, including the operating system, application programs, and data files.

Signup and view all the flashcards

Source Code

The human-readable instructions written in a programming language that make up a program, before it's translated into machine code.

Signup and view all the flashcards

Study Notes

Python Basics Flashcards

  • Word.py: File extension for Python script files.

  • Assembler: Software that translates assembly language programs into machine code.

  • Assembly Language: A low-level programming language using mnemonics for machine language instructions.

  • Bit: The smallest unit of data in computing, representing a binary value of 0 or 1.

  • Bus: Subsystem for transferring data or power between computer components.

  • Byte: Unit of digital information; consists of 8 bits. Data size (e.g., hard disk, memory) is measured in bytes. One megabyte is approximately a million bytes.

  • Cable Modem: Device using a TV cable line which provides speeds comparable to DSL.

  • Calling a Function: The process of invoking or executing a function in programming.

  • CPU (Central Processing Unit): Silicon chip with millions of transistors that executes instructions.

  • Comment: Documentative text in code, ignored by the compiler, explaining program structure.

  • Compiler: Software that translates source code into machine language.

  • Console: Text entry and display interface for a computer.

  • Dot Pitch: Measurement of the distance between pixels on a display.

  • DSL (Digital Subscriber Line): Technology using phone lines, capable of speeds up to 20 times faster than a standard modem.

  • Encoding Scheme: Set of rules for translating characters, numbers, and symbols into computer-readable data.

  • Function: A block of code designed to perform specific actions.

  • Hardware: Physical components of a computer that can be physically observed.

  • High-Level Programming Language: Programming languages that are easy to read and write, resembling English.

  • Indentation: Use of spaces or tabs to improve code readability.

  • Interactive Mode: Running Python by typing commands at the >>> prompt for immediate execution.

  • Interpreter: Programming tool that processes and executes one statement after another from the source code.

  • IDLE: Integrated Development and Learning Environment for writing and testing Python code.

  • Line Comment: Comment in the code that follows a pound sign (#) on the same line.

  • Logic Error: A coding mistake that leads to incorrect program output.

  • Low-Level Language: Programming languages that are closely aligned with machine language and are machine dependent (e.g., assembly language).

  • Machine Language: Binary-coded instructions native to a computer's processor.

  • Memory: Component that stores data and program instructions for the CPU.

  • Modem: Device that connects to a phone line, transferring data at speeds up to 56,000 bits per second.

  • Module: Text file containing reusable Python code, also known as a script or source file.

  • Motherboard: Main circuit board connecting all computer parts.

  • NIC (Network Interface Card): Hardware for connecting a computer to a local area network (LAN).

  • Operating System (OS): Software that manages computer activities (e.g., Windows, Linux).

  • Pixel: Smallest element of an image displayed on a screen.

  • Programming: The act of writing computer programs.

  • Resolution: Indicates the number of pixels displayed per square inch.

  • Runtime Error: An error during program execution that leads to abnormal termination.

  • Software: Invisible instructions that control hardware operation.

  • Source Code: Human-readable instructions that make up a program.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Description

Test your knowledge with this collection of flashcards from Chapter 1 of Python. Each card features key terms and their definitions, helping you grasp fundamental programming concepts. Mastering these terms is crucial for your journey in Python programming.

More Like This

Python Programming Quiz
5 questions
Python 3: Fundamental Concepts of Programming
63 questions
Use Quizgecko on...
Browser
Browser