Python and Analytics 1 & 2 ALA (CH 10)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/136

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

137 Terms

1
New cards

Python was specifically designed to rely on which of the following?

Python libraries

Modules

2
New cards

Select the true statements about the business uses of Python.

Forty percent of recruiters are actively seeking Python programmers.

A Python library is a collection of related programming modules that include pre-compiled bundles of code.

Python is used in a variety of business disciplines including data analysis, finance, and accounting.

3
New cards

Similar to how mining recovers small amounts of precious metals from large amounts of ore or earth, ______ is the process of extracting information from large data sets.

data mining

4
New cards

A subset of data analysis that covers creating visual representations of data is referred to as data

visualization

5
New cards

Select the true statements about how Python is used in the banking industry.

Python is used by financial institutions to provide online banking and payment processing systems.

There is a Python script that allows for the creation of automatic recurring payment requests via Venmo.

Banks use Python to get financial models out of Microsoft Excel.

6
New cards

Select the true statements about the Python programming language.

Many people consider Python to be an ideal first programming language to learn.

Python is completely free to use.

Python syntax is considered by many to be relatively simple.

7
New cards

Which Python web frameworks identified in the text assist in the development of scalable and secure FinTech web applications?

Flask

Django

8
New cards

A multi-purpose programming language that relies extensively on libraries and modules, ______ is suitable for the automation of various tasks and processes.

Python

9
New cards

Data manipulation in Python using the wide variety of libraries that are available offer accountants the ability to automate which of the following tasks?

Perform calculations.

Generate reports.

Analyze financial data.

10
New cards

Known as numerical Python, ______ is well-suited for scientific computations and complex array operations and is widely used in data mining.

NumPY

11
New cards

Put the process for web scraping using Python in the correct order.

1. Identify the URL to scrape.

2. Identify the data that needs to be scraped.

3. Inspect the page.

4. Locate the data that needs to be extracted.

5. Write/use Python code to extract the data.

6. Run the code and extract the data.

7. Compile structured reports/visualizations of the data.

12
New cards

Which of the following Python libraries are commonly used for data processing and data visualization?

Seaborn

Matplotlib

13
New cards

Which of the following Python libraries are used in marketing analytics and SEO?

ExPan

TensorFlow

14
New cards

Python is used in quantitative and qualitative financial processes in which of the following areas?

Analytics

Cryptocurrency

Banking

15
New cards

Short for Financial Technology, FinTech refers to the use of technology and innovative solutions to automate and increase efficiency in which industries?

Insurance

Banking

Payment systems

16
New cards

Which of the following is Microsoft Excel frequently used for?

Data analytics

Data entry

Data visualization

17
New cards

Which of the following Python libraries are commonly used to automate accounting tasks?

NumPy

pandas

18
New cards

In Microsoft Excel, a predefined formula that is built into the software for ease of use and deployment is referred to as a

function

19
New cards

Web scraping is the automation of the extraction of large volumes of data from websites. Using Python, which of the following web scraping activities can be conducted?

Conduct research and development (R&D)

Conduct price comparisons.

Collect data from social media sites.

20
New cards

In Python, a collection of related programming modules that include precompiled bundles of code that can be used repetitively in different programs and applications are referred to as a Python ______. They often contain configuration data, templates, classes, values, and documentation.

library

21
New cards

Marketing analytics are used to measure marketing performance and effectiveness and to make decisions on different strategies to increase marketing efficiency and impact. The analysis of marketing performance data can be enhanced using Python. Python is used for the analysis of which marketing related tasks?

A/B Testing

Customer segmentation analysis

Predictive analytics

22
New cards

In Microsoft Excel, ______ is used to create custom macros and functions that are designed to accomplish organizational specific tasks.

VBA

23
New cards

Select the true statements about how Python is used in finance.

Python is used in quantitative and qualitative financial processes in many financial areas including analytics, banking, and cryptocurrency.

Banks use Python to get financial models out of Excel and into an environment that allows for more data analysis and visualization.

Analytics in finance provides high-level and granular-level views of an organization's financial data.

24
New cards

Which of the following are popular Python IDEs?

PyCharm

Visual Studio Code

Spyder

25
New cards

Microsoft Excel is a spreadsheet software application that consists of a grid interface of columns and ______ where data can be entered, structured, and manipulated.

rows

26
New cards

Python is ______ software based on community-based development that runs optimally on Windows and Linux operating systems.

open-source

27
New cards

In Microsoft Excel, a statement written by a user that is designed for a specific calculation is referred to as a

formula

28
New cards

The process of investigating raw data of various types to uncover trends and correlations, and to answer specifically crafted questions is the role of data

analytics

29
New cards

When compared to Python, which of the following are considered limitations of using Microsoft Excel for data analysis?

Handling large volumes of data

Limited scalability

Syntax errors

30
New cards

The steps in the data project life cycle, according to Harvard University's Data Science Ready project include which three of the following?

Sensing

Collection

Wrangling

31
New cards

Select the true statements about the scalability of Microsoft Excel.

When large volumes of data are introduced into Microsoft Excel, issues may occur.

The management of small and medium scale data sets can be accomplished relatively smoothly.

As the amount of spreadsheet tabs in a workbook increases, so does potential data management issues.

32
New cards

According to Tableau, data-driven decision making (DDDM) uses which of the following to guide strategic business decisions that align with organizational goals, objectives, and initiatives?

Data

Metrics

Facts

33
New cards

Select the true statements about connectivity in Microsoft Excel.

Workbooks can be connected to external data sources including SQL servers.

Connections to cloud-based data is possible.

Microsoft Excel is a solid option for users importing and exporting basic reports.

34
New cards

The three-step data visualization process is comprised of which of the following?

Create your visuals.

Explore data sets for patterns.

Plan your visuals.

35
New cards

Data visualization is a strength of using Python for data analysis. Which of the following are types of data visualization that can be created using Python?

Charts

Interactive plots

Graphics

36
New cards

Computers process instructions

internally

37
New cards

The process of data analytics includes which of the following?

Prescriptive analytics

Predictive analytics

Descriptive analytics

38
New cards

Which of the following are true about IDLE?

IDLE is an IDE.

IDLE is free.

IDLE comes packaged with a Python download.

39
New cards

One way to visualize a data ecosystem is to apply it to the data project life cycle. The Data Science Ready project outlines the five steps of the data project life cycle. The final stage in this life cycle is

storage

40
New cards

When you go to www.python.org to download Python, you must

choose an operating system.

41
New cards

DDDM refers to data-driven

decision making

42
New cards

Which of the following statements are true about the IDLE editor?

To write an entire Python program, you must use the editor and not the shell.

The editor works like a simple word processor, but it also allows Python to compile and run source code.

A program created in the editor will run in the shell.

43
New cards

The graphical and structured representation of data is known as

data visualization

44
New cards

A computer is content to process programming instructions internally, but output is needed by

humans

45
New cards

Which of the following must be used by all programs?

Input

Output

Processing

46
New cards

In a program, a ______ tells the user what input is needed.

prompt

47
New cards

Which of the following are true about an Integrated Development Environment?

It translates a programmer's code into a format that is readable by a computer.

It contains a source code editor.

It includes tools to help a programmer write correct syntax.

48
New cards

Which of the following are true about variable names?

Variable names are case sensitive.

Variable names cannot include spaces.

Variable names may contain numbers but cannot begin with a number.

49
New cards

Python 3 has been in use since

2008

50
New cards

In order to process data, a computer program needs

variables with values and instructions

51
New cards

The IDLE shell

makes it easy to enter and test Python statements

52
New cards

Which of the following are popular methods data from a program can be output?

Sent to the Cloud

Sent to a file

Displayed on a screen

53
New cards

Which of the following are needed by every program?

A form of input

A way to display results

Instructions

54
New cards

The characters A through Z and a through z, the digits 0 through 9, and some special characters are called

string data

55
New cards

In Python, a prompt takes the form of a(n)

input request

56
New cards

Each ______ in the computer's memory is represented by its ASCII code.

character

57
New cards

Which of the following statements are true about variables?

The value of a variable is stored in the variable's location in computer memory.

The value of a variable can change as the program runs.

It is possible to join the value of one variable with the value of another variable to create a new variable.

58
New cards

In the following program, which line is the processing line?

1. num_1 = 5

2. num_2 = 3

3. sum = num_1 + num_2

4. print ("The sum is ", sum)

Line 3

59
New cards

What is the result of the following calculation?

8 + 3 * (9 - 5) / 2

14

60
New cards

In a Python print() statement, what types of data can be displayed?

Text, numbers, and variables

61
New cards

Select the true statements about pseudocode.

Pseudocode is used to outline the flow of a program.

Pseudocode allows a programmer to visualize the flow of a program without getting bogged down in syntax.

Pseudocode is not written in a specific programming language.

62
New cards

Select all of the following that are considered integers.

Negative whole numbers

Zero

Positive whole numbers

63
New cards

Which symbol in a flowchart represents a decision?

Diamond

64
New cards

The standard representation of characters in programming is called

ASCII code, which stands for American Standard Code for Information Interchange

65
New cards

The PDLC breaks down the development process into

manageable stages and tasks

66
New cards

The stages of the PDLC are

define, design, code, test, and revise

67
New cards

What is the primary purpose of including comments in code?

To provide explanations for different parts of the code

68
New cards

There are ______ basic arithmetic operations that can be performed on numeric data.

Six

69
New cards

What is another word for a structure in computer programming?

Construct

70
New cards

______ use(s) short phrases to describe the outline of a program.

Pseudocode

71
New cards

Which symbol in a flowchart represents input and output?

Parallelogram

72
New cards

Which of the following statements are true about a program that only includes sequential structures.

Sequential structures do not involve any repetition.

Sequential programming prohibits all forms of branching.

73
New cards

What are characteristics of selection structures in programming?

Computers use relational operators for making comparisons in selection structures.

If-statements are selection structures.

A complete understanding of relational and logical operators is crucial for creating effective selection structures.

74
New cards

Which of the following are ways to identify comments in Python?

Use the hashtag symbol (#).

Enclose the commented line or lines between two sets of three double quotes (" " ").

Enclose the commented line or lines between two sets of three apostrophes (' ' ').

75
New cards

Which of the following statements are true of relational operators?

Relational operators are used to compare two values, variables, or expressions.

The result of any comparison between relational operators is always either True or False.

There are six relational operators.

76
New cards

The three basic structures are

Selection

Sequence

Repetition

77
New cards

Which of the following statements about pseudocode are true?

Pseudocode is not written in a specific language.

Most programmers use both pseudocode and flowcharts when starting to design a program.

78
New cards

When a decision is made and a specific path of instructions is followed, this is called a

branch point

79
New cards

What is the purpose of ASCII code in character comparison, as explained in the text?

ASCII code helps computers determine the alphabetical order of characters.

ASCII code represents characters as numeric values.

80
New cards

Which of the following are alternate ways to refer to a selection structure?

If-statement

Conditional statement

Selection construct

81
New cards

Use your understanding of logical operators to help determine which of the following will result in False?

2 == 3 and 5 == 5

9 > 10 or 12 < 3

82
New cards

Computers use relational operators to compare two values, variables, or expressions. An expression consists of several values or variables and may combine values and variables. Based on this information, the result of the expression (5 + 3) >= 15 is

False

83
New cards

A single-alternative structure consists of an if clause with a condition. If the result of the condition is True, a block of statements is executed. If the condition is False, nothing is done and the program continues to the next statement after the selection structure.

Given the following code, what will be displayed if the user is 17 years old?

if(age >= 18):

print("You are eligible to vote.")

print("Goodbye")

Goodbye

84
New cards

Given the following code, which has a variable named light, what will be displayed if light has the value "yellow"?

if(light == "green"):

print("You are good to go!")

else:

print("Better stay put!")

print("Drive safely.")

Better stay put!

Drive safely.

85
New cards

Select the true statements about ASCII code.

ASCII code can compare long strings of text as well as single characters.

ASCII code is used for alphabetizing values in programming.

ASCII code is used to represent all the upper- and lowercase characters as well as digits 0 through 9.

86
New cards

Students in a programming class have ID numbers from 1 through 15. They are assigned to groups based on their ID numbers. What is wrong with the following code that tells students which group they will be in?

if(number > 0 and number < 5):

print("You're in the blue group.")

elif(number > 5 and number < 10):

print("You're in the green group.")

elif(number >= 10 and number <= 15):

print("You're in the red group.")

else:

print("You are not in this class")

A student with ID number 5 will not be in any group.

87
New cards

When discussing logical operators, if A is True and B is False, which of the following will result in True?

A or B

88
New cards

What are the characteristics and purposes of repetition structures (loops) in computer programming?

The value in the test condition can change during the loop's iterations.

Repetition structures involve a block of statements executed under certain conditions.

89
New cards

In a Python program, which of the following expressions would result in False?

16 == 17

9 <= 8

90
New cards

What causes an infinite loop?

The initial condition is met but never changes.

91
New cards

What are the key characteristics of a single-alternative structure?

The condition must be enclosed in parentheses.

Statements executed when the condition is True must be indented.

If the condition is True, a block of statements is executed.

92
New cards

What type of loop ends when a specific value is entered by the user or by something in the code?

Sentinel-controlled loop

93
New cards

What is wrong with the following code?

If(X > 75) :

print(You have enough money)

Else:

print(You need more money to buy this item.)

Statements inside the if and else clauses should be indented.

The keywords if and else must be lowercase.

Text to be displayed in print() statements is not enclosed in quotes.

94
New cards

What is the test condition in the following loop?

index = 1

while(index <= 5):

print("Your ID number is XYZ00", index)

index = index + 1

index <= 5

95
New cards

Which of the following situations would best be handled by an if-elif multiple-alternative structure?

Displaying four possible prizes based on a user's total purchase amount

96
New cards

Given the following for loop, what will be displayed after the code executes?

for number in range(0, 15, 5):

print(number, end = " ")

0 5 10

97
New cards

Which of the following are types of repetition structures?

while loops

for loops

counter-controlled loops

98
New cards

How can control structures be combined in programming?

Control structures can be combined using various and complex combinations.

99
New cards

What is wrong with the following code that calculates the cost of an item with tax?

1.tax = 0.06

2.cost = float(input("How much does your item cost? "))

3.while(cost != 0):

4. new_cost = cost + (cost * tax)

5. print("Total cost is $ ", new_cost)

6.print("Goodbye")

The value of cost never changes so this will be an infinite loop.

100
New cards

Which of the following are needed to create a function?

The function name

The keyword def

A set of parentheses with any necessary arguments