Python Chapter 1 Flashcards
38 Questions
100 Views

Python Chapter 1 Flashcards

Created by
@UnparalleledEcoArt

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

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 Quizzes Like This

Python Programming Quiz
5 questions
Python Programming History Quiz
5 questions
Introduction to Python Programming
10 questions
Use Quizgecko on...
Browser
Browser