100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
python final exam $14.49   Add to cart

Exam (elaborations)

python final exam

 5 views  0 purchase
  • Course
  • Institution

python final exam Reworking programs to make them clearer and easier to maintain while preserving their correctness and functionality is called

Preview 4 out of 89  pages

  • November 14, 2023
  • 89
  • 2023/2024
  • Exam (elaborations)
  • Unknown
avatar-seller
python final exam
Reworking programs to make them clearer and easier to maintain while preserving their
correctness and functionality is called ________. - ANSW -refactoring

Once Waze converts a spoken command to text, it must determine the correct action to
perform, which requires: - ANSW -natural language processing

Which of the following statements about energy consumption is false? - ANSW -
Another enormous electricity consumer is the blockchain-based cryptocurrency Bitcoin-
processing just one Bitcoin transaction uses approximately the same amount of energy
as powering the average American home for a year.

Which of the following statements is false about Berners lee - ANSW -Berners-Lee also
wrote communication protocols such as JavaScript Object Notation (JSON) to form the
backbone of his new hypertext information system, which he referred to as the World
Wide Web.

Which of the following statements about AI is false: - ANSW -For many decades, AI
has been a field with solutions and no problems.

Information on secondary storage devices is ________ - it's preserved even when the
computer's power is turned off. - ANSW -persistent

A program might call a bank-account object's deposit ________ to increase the
account's balance. - ANSW -method

A(n) ________ is the smallest data item in a computer. It can have the value 0 or 1. -
ANSW -bit

A new class of objects can be created conveniently by inheritance-the new class (called
the ________) starts with the characteristics of an existing class (called the ________),
possibly customizing them and adding unique characteristics of its own. - ANSW -
subclass, superclass

Which of the following statements about the cloud is false? - ANSW -Azure is Google's
set of cloud-based services.

Which of the following statements is false? - ANSW -Interpreter programs, developed
to execute high-level language programs directly, avoid the delay of compilation, and
run faster than compiled programs.

,Which of the following statements a), b) or c) is false? - ANSW -Almost any verb can be
reasonably represented as a software object in terms of attributes (e.g., name, color
and size) and behaviors (e.g., calculating, moving and communicating).

Which of the following popular Python data science libraries are central to machine
learning, deep learning and/or reinforcement learning: - ANSW -all of the above

Which Python Standard Library module do we use for performance analysis? - ANSW -
timeit

________ is by far the world's most widely used desktop operating system. - ANSW -
windows

With ________ software development, individuals and companies contribute their
efforts in developing, maintaining and evolving software in exchange for the right to use
that software for their own purposes, typically at no charge. - ANSW -open-source

Which of the following statements is false? - ANSW -Programmers use the Python
Standard Library and various other libraries to "reinvent the wheel."

The applications-development methodology of ________ enables you to rapidly develop
powerful software applications by combining (often free) complementary web services
and other forms of information feeds. - ANSW -mashups

What value is produced when Python evaluates the following expression?5 * (12.7 - 4) /
2 - ANSW -21.75

The popular programming languages Python and ________ are the two most widely
used data-science languages. - ANSW -R

Which of the following statements is false?



The right side of the = symbol always executes first, then the result is assigned to the
variable on the symbol's left side.




The snippet in Part (a) is read, "total is assigned the value of x + y."




The = symbol is the assignment operator.

,The following assignment statement adds the values of variables x and y and assigns
the result to the variable total:total = x + y - ANSW -The = symbol is the assignment
operator.

Which of the following statements is false?

A line that begins with the hash character (#) is a comment.

The Style Guide for Python Code states that each script should start with a docstring
that explains the script's purpose.




Comments do not cause the computer to perform any action when the code executes.

If a line has a comment on it, that comment must begin the line with a hash character
(#). - ANSW -If a line has a comment on it, that comment must begin the line with a
hash character (#).

Which of the following statements is false?


The following if statement uses the == comparison operator to determine whether the
values of variables number1 and number2 are equal:if number1 == number2:
print(number1, 'is equal to', number2)



Each if statement consists of the keyword if, the condition to test, and a colon (:)
followed by an indented body called a suite.



Each suite contains zero or more statements.


Forgetting the colon (:) after the condition is a common syntax error. - ANSW -Each
suite contains zero or more statements.

Which of the following statements is false?

, Floor division (//) divides a numerator by a denominator, yielding the highest integer
that's not greater than the result.


The expression -13 // 4 evaluates to -3.


The expression - evaluates to -3.25.


True division (/) divides a numerator by a denominator and yields a floating-point
number with a decimal point. - ANSW -The expression -13 // 4 evaluates to -3.

Which of the following statements about descriptive statistics is false?



The range is the values starting with the minimum and ending with the maximum.



The count is the number of values in a collection.

Measures of dispersion (also called measures of variability), such as count, help
determine how spread out values are.



The minimum is the smallest value in a collection of values. - ANSW -Measures of
dispersion (also called measures of variability), such as count, help determine how
spread out values are.

Which of the following statements is incorrect ?

The range of values is simply the minimum through the maximum value.

Much of data science is devoted to getting to know your data.


min(17, 19, 23, 29, 31, 37, 43) is a valid call to built-in function min.


all of the above are correct - ANSW -All of the above are correct.

Which of the following statements is true?

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller smartchoices. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $14.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73091 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$14.49
  • (0)
  Add to cart