Docsity

Python Programming: Key Concepts, Syntax, and Best Practices | Objective Assessment | Ques, Exams of Java Programming

Toggle sidebar
bg1
A+
Python Programming: Key Concepts, Syntax, and Best
Practices | Objective Assessment | Questions and Answers
with Verified Solutions |
Question: Answer:
What is Python? An interpreted programming language
Question: Answer:
What is a .py file? A Python source-code file
Question: Answer:
What does a Python interpreter do? It translates source code into machine commands as the program runs
Question: Answer:
What must you have to run Python code on your own
computer?
A Python interpreter
Question: Answer:
What command would run alive.py? python alive.py
Question: Answer:
What is an IDE? Software that lets programmers write run and test code in one application
Question: Answer:
What does IDE stand for? Integrated Development Environment
Question: Answer:
What IDE is mentioned in the lesson? Visual Studio Code
Question: Answer:
What is the easiest way to run Python in the
Compuscholar course?
Use the online Python interpreter provided in the lessons
Question: Answer:
What kind of quotation marks must Python use? Straight quotation marks
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Python Programming: Key Concepts, Syntax, and Best Practices | Objective Assessment | Ques and more Exams Java Programming in PDF only on Docsity!

A+

Python Programming: Key Concepts, Syntax, and Best

Practices | Objective Assessment | Questions and Answers

with Verified Solutions |

Question: Answer:

What is Python? An interpreted programming language

Question: Answer:

What is a .py file? A Python source-code file

Question: Answer:

What does a Python interpreter do? It translates source code into machine commands as the program runs

Question: Answer:

What must you have to run Python code on your own computer? A Python interpreter

Question: Answer:

What command would run alive.py? python alive.py

Question: Answer:

What is an IDE? Software that lets programmers write run and test code in one application

Question: Answer:

What does IDE stand for? Integrated Development Environment

Question: Answer:

What IDE is mentioned in the lesson? Visual Studio Code

Question: Answer:

What is the easiest way to run Python in the Compuscholar course? Use the online Python interpreter provided in the lessons

Question: Answer:

What kind of quotation marks must Python use? Straight quotation marks

What can happen if an iPad changes straight quotes into smart quotes? The Python code may not work

Question: Answer:

What setting should iPad or iOS users turn off? Smart Punctuation

Question: Answer:

What is source code? A set of code statements written in a human-readable programming language

Question: Answer:

What is an interpreted language? A language whose source code is converted to machine code at runtime by an interpreter

Question: Answer:

What is a program? An application that runs on a computer to complete a task or provide a service

Question: Answer:

What is a statement? A piece of code that performs a specific action

Question: Answer:

What is input data? Data provided to a program that can guide its behavior or output

Question: Answer:

What is output data? Data returned from a function or provided by a program to the user

Question: Answer:

What does print() do? It displays output to the console

Question: Answer:

What is the correct Python syntax for printing Hello? print("Hello")

Question: Answer:

How does Python normally determine that a statement has ended? By pressing Enter to begin a new line

Question: Answer:

What does sequential mean? Statements run from top to bottom in the order they appear

Stored-program computer A computer that stores programs in memory instead of using only hardwired switches and cables.

Question: Answer:

von Neumann Architecture The idea of storing a program in computer memory.

Question: Answer:

Vacuum tube A glass tube containing electrodes used as a switch or amplifier in early computers.

Question: Answer:

Transistor A semiconductor device used to amplify or switch electronic signals.

Question: Answer:

Semiconductor A substance that conducts electricity under some conditions but not all.

Question: Answer:

Integrated circuit A mass-manufactured component combining transistors, other components, and wiring.

Question: Answer:

Microprocessor An integrated circuit containing the functions of a computer's CPU.

Question: Answer:

Circuit board A board used to mount and connect electronic components.

Question: Answer:

Moore's law The prediction that the number of affordable transistors in the same area doubles about every two years.

Question: Answer:

Hardware The physical parts of a computer system.

Question: Answer:

Computer case The external shell that holds computer components.

Question: Answer:

Motherboard The central board where major computer components connect.

CPU Central Processing Unit; executes software programs.

Question: Answer:

Control Unit (CU) Pulls information from memory, decodes instructions, and executes them.

Question: Answer:

Arithmetic Logic Unit (ALU) Performs mathematical and logical operations.

Question: Answer:

Primary memory Memory holding running programs and active data accessed directly by the CPU.

Question: Answer:

RAM Random Access Memory; stores active programs and data while the computer is powered on.

Question: Answer:

ROM Read-Only Memory; stores information that remains when power is off.

Question: Answer:

Graphics processor An integrated circuit that creates images displayed on a screen.

Question: Answer:

Video card A plug-in component with an advanced graphics processor and dedicated video memory.

Question: Answer:

Sound processor An integrated circuit that creates audio output.

Question: Answer:

Sound card A plug-in component with an advanced sound processor and audio input features.

Question: Answer:

Hard disk / hard drive Secondary storage that saves programs and data when power is off.

Question: Answer:

HDD Hard Disk Drive; stores information magnetically on spinning platters.

GPS Global Positioning System; uses satellite signals to determine location.

Question: Answer:

Software The collection of programs that makes a computer perform useful work.

Question: Answer:

Program A piece of software that completes a task or provides a service.

Question: Answer:

Statement A line of code that performs a specific action.

Question: Answer:

Operating system Software that manages hardware and allows other programs to run.

Question: Answer:

Microsoft Windows A graphical operating system first launched in 1985.

Question: Answer:

macOS Apple's operating system, first released in 1984.

Question: Answer:

Linux A free and open-source operating system released in the early 1990s.

Question: Answer:

Graphical User Interface (GUI) An interface that lets users interact through visual symbols.

Question: Answer:

Device driver Software that allows hardware, such as printers, to work with an operating system.

Question: Answer:

Application Software used by people to complete tasks.

Question: Answer:

IDE Integrated Development Environment; software used to design, write, run, and test programs.

Question: Answer:

Computer language A vocabulary and set of rules used to instruct a computer.

Software selection factors Cost, features, security, accessibility, aesthetics, and compatibility.

Question: Answer:

Ethics Moral principles governing personal or business behavior.

Question: Answer:

Association for Computing Machinery (ACM) An organization that provides ethical guidance for computer professionals.

Question: Answer:

Contribute positively Use computing to improve society, protect rights, and reduce negative consequences.

Question: Answer:

Do no harm Avoid causing damage, loss, sabotage, or other negative consequences.

Question: Answer:

Software reliability The ability of software to perform required functions under stated conditions for a specified period.

Question: Answer:

Honesty and trustworthiness Being truthful and dependable when working with computers and software.

Question: Answer:

Property rights Respect copyrights, patents, trade secrets, and ownership.

Question: Answer:

Software piracy The illegal copying or theft of software.

Question: Answer:

Copyright Legal protection identifying the owner of creative or informational work.

Question: Answer:

Patent Protection preventing others from copying, making, using, or selling an invention.

Question: Answer:

Trade secret Confidential information or a process used by a company or individual.