• 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 2 out of 9 pages
Exam (elaborations)

Python Final Exam Review Multiple Choice Study Test.

Document preview thumbnail
Preview 2 out of 9 pages

Python Final Exam Review Multiple Choice Study Test. What is the fundamental question of computer science? - CORRECT ANSWER What can be computed An algorithm is like a - CORRECT ANSWER recipe A problem is intractable when - CORRECT ANSWER it is not practical to solve Which of the following is not an example of secondary memory? - CORRECT ANSWER RAM Computer languages designed to be used and understood by humans are - CORRECT ANSWER high-level languages A statement is - CORRECT ANSWER a complete computer command One difference between a compiler and an interpreter is - CORRECT ANSWER a compiler is no longer needed after a program is translated By convention, the statements of a program are often placed in a function called - CORRECT ANSWER main Which of the following is not true of comments? - CORRECT ANSWER They make a program more efficient The items listed in the parentheses of a function definition are called - CORRECT ANSWER parameters What of the following is not a step in the software development process? - CORRECT ANSWER Fee setting What is the correct forumla for converting Celsius to Fahrenheit? - CORRECT ANSWER F = 9/5(C) + 32 The process of describing exactly what a computer program will do to solve a problem is called - CORRECT ANSWER specification Which of the following is not a legal identifier? - CORRECT ANSWER 2spam Which of the following are not used in expressions? - CORRECT ANSWER statements Fragments of code that produce or calculate new data values are called - CORRECT ANSWER assignment statements Which of the following is not part of the IPO pattern? - CORRECT ANSWER Program The template for variable in range(expr) describes - CORRECT ANSWER a general for loop or (d) a counted loop Which of the following is the most accurate model of assignment in Python? - CORRECT ANSWER sticky note (although you'll often see analysis of programs using the variable-as-box diagram) In Python getting user input is done with a special expression called - CORRECT ANSWER input What of the following is not a Python data type? - CORRECT ANSWER rational Which of the following is not a built-in operation? - CORRECT ANSWER sqrt() In order to use functions in the math library, a program must include - CORRECT ANSWER an import statement The value of 4! is - CORRECT ANSWER 24 The most appropriate data type for storing the value of pi is - CORRECT ANSWER float The number of distinct values that can be represented using 5 bits is - CORRECT ANSWER 32 In a mixed-type expression involving ints and floats, Python will convert - CORRECT ANSWER ints to floats Which of the following is not a Python type-conversion function? - CORRECT ANSWER abs The pattern used to computer factorial is - CORRECT ANSWER accumulator In modern Python, an int value that grows larger than the underlying hardware int - CORRECT ANSWER uses more memory A method that returns the value of an object's instance variable is called a(n) - CORRECT ANSWER accessor A method that changes the state of an object is called a(n) - CORRECT ANSWER mutator What graphics class would be best for drawing a square? - CORRECT ANSWER Rectangle What command would set the coordinates of win to go from (0,0) in the lower-left corner to (10,10) in the upper-right? - CORRECT ANSWER ords(0, 0, 10, 10)

Content preview

Python Final Exam Review Multiple
Choice Study Test.

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



An algorithm is like a - CORRECT ANSWER recipe



A problem is intractable when - CORRECT ANSWER it is not practical to solve



Which of the following is not an example of secondary memory? - CORRECT ANSWER RAM



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



A statement is - CORRECT ANSWER a complete computer command



One difference between a compiler and an interpreter is - CORRECT ANSWER a compiler is no longer
needed after a program is translated



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



Which of the following is not true of comments? - CORRECT ANSWER They make a program more
efficient



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



What of the following is not a step in the software development process? - CORRECT ANSWER Fee
setting

, What is the correct forumla for converting Celsius to Fahrenheit? - CORRECT ANSWER F = 9/5(C) + 32



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



Which of the following is not a legal identifier? - CORRECT ANSWER 2spam



Which of the following are not used in expressions? - CORRECT ANSWER statements



Fragments of code that produce or calculate new data values are called - CORRECT ANSWER assignment
statements



Which of the following is not part of the IPO pattern? - CORRECT ANSWER Program



The template for <variable> in range(<expr>) describes - CORRECT ANSWER a general for loop

or

(d) a counted loop



Which of the following is the most accurate model of assignment in Python? - CORRECT ANSWER sticky
note (although you'll often see analysis of programs using the variable-as-box diagram)



In Python getting user input is done with a special expression called - CORRECT ANSWER input



What of the following is not a Python data type? - CORRECT ANSWER rational



Which of the following is not a built-in operation? - CORRECT ANSWER sqrt()



In order to use functions in the math library, a program must include - CORRECT ANSWER an import
statement

Document information

Uploaded on
April 6, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

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