Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

python final exam

Rating
-
Sold
-
Pages
89
Uploaded on
14-11-2023
Written in
2023/2024

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

Institution
Course

Content preview

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?

Written for

Course

Document information

Uploaded on
November 14, 2023
Number of pages
89
Written in
2023/2024
Type
Exam (elaborations)
Contains
Unknown

Subjects

$14.99
Get access to the full document:

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


Also available in package deal

Get to know the seller

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.
smartchoices Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
36
Member since
5 year
Number of followers
5
Documents
4499
Last sold
2 weeks ago

4.8

9 reviews

5
7
4
2
3
0
2
0
1
0

Recently viewed by you

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