• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

Mid-Term Python Exam Questions Correctly Answered.

Document preview thumbnail
Preview 3 out of 16 pages

Mid-Term Python Exam Questions Correctly Answered. False - CORRECT ANSWER True or False: Computer science is the study of computers CPU - CORRECT ANSWER The "brain" of the computer is the RAM (Random Access Memory) - CORRECT ANSWER Main memory is also called main memory - CORRECT ANSWER All information that a computer is currently working on is stored in Syntax - CORRECT ANSWER _______ of a language is its form Semantics - CORRECT ANSWER _______ of a language is its meaning Compiler - CORRECT ANSWER A complex computer program that takes another program written in a high-level language and translates it into an equivalent program in the machine language of some computer Interpreter - CORRECT ANSWER A program that simulates a computer that understands a high-level language which analyzes and executes the source code instruction by instruction as necessary Function - CORRECT ANSWER A ________ definition is a sequence of statements that defines a new command Programming environment - CORRECT ANSWER A special computer program that provides facilities to make programming easier variable - CORRECT ANSWER An identifier that labels a value for future reference loop - CORRECT ANSWER a control construct for executing portions of a program multiple times False - CORRECT ANSWER True or False: A chaotic function can't be computed by a computer What can be computed? - CORRECT ANSWER The fundamental question of computer science is recipe - CORRECT ANSWER An algorithm is like a It's not practical to solve - CORRECT ANSWER A problem is intractable when high-level computer languages - CORRECT ANSWER Computer languages designed to be used and understood by humans a complete computer command - CORRECT ANSWER A statement is compiler - CORRECT ANSWER used to translate high-level language into machine language main - CORRECT ANSWER by convention, the statements of a program are often placed in a function called comments - CORRECT ANSWER Are intended for human readers, ignored by Python, and begin with a # sign parameters - CORRECT ANSWER The items listed in the parentheses of a function definition are called False - CORRECT ANSWER The best way to write a program is to immediately type in some code and then debug it until it works True - CORRECT ANSWER An algorithm can be written without using a programming language False - CORRECT ANSWER Programs no longer require modification after they are written and debugged True - CORRECT ANSWER Python identifiers must start with a letter or underscore False - CORRECT ANSWER keywords make good variable names True - CORRECT ANSWER expressions are built from literals, variables, and operators True - CORRECT ANSWER in Python, x = x + 1 is a legal statement False - CORRECT ANSWER Python does not allow the input of multiple values with a single statement True - CORRECT ANSWER A counted loop is designed to iterate a specific number of times False - CORRECT ANSWER In a flowchart, diamonds are used to show statements, and rectangles are used for decision points Specification, Testing/Debugging, and Maintenance - CORRECT ANSWER What are the steps in the software development process? F = 9/5(C) + 32 - CORRECT ANSWER Formula for converting Celsius into Fahrenheit specification - CORRECT ANSWER The process of describing exactly what a computer program will do to solve a problem is called number - CORRECT ANSWER Legal Identifiers cannot start with a statements - CORRECT ANSWER What is NOT used in an expression?

Content preview

Mid-Term Python Exam Questions
Correctly Answered.

False - CORRECT ANSWER True or False: Computer science is the study of computers



CPU - CORRECT ANSWER The "brain" of the computer is the



RAM (Random Access Memory) - CORRECT ANSWER Main memory is also called



main memory - CORRECT ANSWER All information that a computer is currently working on is stored in



Syntax - CORRECT ANSWER _______ of a language is its form



Semantics - CORRECT ANSWER _______ of a language is its meaning



Compiler - CORRECT ANSWER A complex computer program that takes another program written in a
high-level language and translates it into an equivalent program in the machine language of some
computer



Interpreter - CORRECT ANSWER A program that simulates a computer that understands a high-level
language which analyzes and executes the source code instruction by instruction as necessary



Function - CORRECT ANSWER A ________ definition is a sequence of statements that defines a new
command



Programming environment - CORRECT ANSWER A special computer program that provides facilities to
make programming easier



variable - CORRECT ANSWER An identifier that labels a value for future reference

,loop - CORRECT ANSWER a control construct for executing portions of a program multiple times



False - CORRECT ANSWER True or False: A chaotic function can't be computed by a computer



What can be computed? - CORRECT ANSWER The fundamental question of computer science is



recipe - CORRECT ANSWER An algorithm is like a



It's not practical to solve - CORRECT ANSWER A problem is intractable when



high-level computer languages - CORRECT ANSWER Computer languages designed to be used and
understood by humans



a complete computer command - CORRECT ANSWER A statement is



compiler - CORRECT ANSWER used to translate high-level language into machine language



main - CORRECT ANSWER by convention, the statements of a program are often placed in a function
called



comments - CORRECT ANSWER Are intended for human readers, ignored by Python, and begin with a #
sign



parameters - CORRECT ANSWER The items listed in the parentheses of a function definition are called



False - CORRECT ANSWER The best way to write a program is to immediately type in some code and
then debug it until it works



True - CORRECT ANSWER An algorithm can be written without using a programming language

, False - CORRECT ANSWER Programs no longer require modification after they are written and debugged



True - CORRECT ANSWER Python identifiers must start with a letter or underscore



False - CORRECT ANSWER keywords make good variable names



True - CORRECT ANSWER expressions are built from literals, variables, and operators



True - CORRECT ANSWER in Python, x = x + 1 is a legal statement



False - CORRECT ANSWER Python does not allow the input of multiple values with a single statement



True - CORRECT ANSWER A counted loop is designed to iterate a specific number of times



False - CORRECT ANSWER In a flowchart, diamonds are used to show statements, and rectangles are
used for decision points



Specification, Testing/Debugging, and Maintenance - CORRECT ANSWER What are the steps in the
software development process?



F = 9/5(C) + 32 - CORRECT ANSWER Formula for converting Celsius into Fahrenheit



specification - CORRECT ANSWER The process of describing exactly what a computer program will do to
solve a problem is called



number - CORRECT ANSWER Legal Identifiers cannot start with a



statements - CORRECT ANSWER What is NOT used in an expression?

Document information

Uploaded on
April 5, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ROSEGRADES
3.4
(35)
Sold
236
Followers
87
Items
12121
Last sold
3 weeks ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions