<< Chapter < Page Chapter >> Page >
This module contains review questions and answers keyed to instructional material on several websites.

Table of contents

Preface

This module is one in a collection of modules on Python designed for teaching ITSE 1359 Introduction to Scripting Languages: Python at Austin Community College in Austin, TX.

This module contains review questions and answers keyed to material on the following web sites:

Once you study that material, you should be able to answer the review questions in this module.

The questions and the answers in this module are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

(Note to blind and visually impaired students: with the exception of two bitmap images that are used solely as spacers to separate the question sectionfrom the answer section, all of the material in this module is presented in plain text format and should be accessible using an audio screen reader or abraille display. Note however that the required indentation may not be properly represented by an audio screen reader.)

Questions

Question 1

Given: RE or re is an abbreviation for Regular Expression . Also, the primary module used for regular expressions in Python is named re . When using an RE pattern for matching characters, most letters and characters will simply match themselves. However, some characters are special metacharacters , and don't match themselves. Instead, they signal that some out-of-the-ordinary thing should be matched, or they affect other portions of the RE by repeating them or changing their meaning. (See Regular Expression HOWTO )

True or False? The following characters are included in the set of metacharacters:

[ $ !

Go to answer 1

Question 2

True or False? The metacharacters [ and ] are used for specifying a character class, which is a set of characters that you wish to match.

Go to answer 2

Question 3

True or False? Within a character class, characters can be listed individually, or a range of characters can be indicated by giving two characters and separating them by a three dashes as in [abc]or [a---c].

Go to answer 3

Question 4

True or False? The pattern [abc$] will match any of the characters a, b, c, or $.

Go to answer 4

Question 5

True or False? The pattern [^abc$] will match any of the characters a, b, c, or $.

Go to answer 5

Question 6

True or False? The code in the top panel of Figure 2 produces the output shown in the bottom panel of Figure 2 . (Hint: See (External Link) for lambda)

Questions & Answers

the store among other goods sells 200 kilograms of apple at a price of 15 per kilogram increase revenue. How much will the volume of demand changed?
Chinonso Reply
what is micro economic
Ahmar Reply
Microeconomics is that branch of economics which studies how small economic units like a consumer, a household,a firm or an industry do their economic activities n reach equillibrum states .It also studies how prices of commodities n factors are determined so is also called price theory
Arooja
I agree
Tom
Microeconomics is the study of particular markets, and segments of the economy. It looks at issues such as consumer behaviour, individual labour markets, and the theory of firms.
khatoon
Demand and supply is what determines the price level in a market
Edem Reply
Meaning the higher the price increases, the lower the demand buyers place on the commodities and the lower the price, the higher the demand buyers place on the commodities.
Edem
The equilibrium determines the level of prices in the market and this equilibrium is established when demand and supply curves intersect.
khatoon
price of a hamburger rises demand for fish rises illustrate with appropriate curve and explain
Vashity Reply
An economy exprerience inflation when?
Odirile Reply
given a table of weeks worked and numbers of goods produced per week. help to culculate margin.
Odirile
there is a persistent rise in general prices and purchasing power of money decreses
khatoon
An economy experience inflation when prices if commodities rises than expected
Edem
The taste of preferences of consumers will drive demand
Marisol Reply
yep other things being equal ,demand for those goods will increase for which consumer develops tastes n preferences. contrary to it ,if the tastes n preferences are developed against the commodity its demand will decrease .suppose in an area people develop a taste for tea ,so its demand will go up
Arooja
n vice versa . Marisol are u stasfied with my answer.
Arooja
Explanation about law of demand
Marisol Reply
The price of the good or service meaning?
Marisol
What is consumer expectation?
Marisol
Any other explanation?
Marisol
marisol u share your explaination pls
OK
The law of demand states that all other things being equal the higher the price of a commodity the lower the quantity of the same commodity demanded inversely. This implies that anytime there is an increment on a price of certain commodity the demand of the same commodity decline.
Nana
consumer expectations are the households view point regarding the market changes. If people are expecting a positive change in the market their Marginal Propensity to Consume will increase and vive versa.
arshad
Marisol are you okay with my explanation?
Nana
yes. thankyou.
Marisol
welcome
Nana
The law of demand simply means that, at a each price of a commodity, the quantities to be purchased rises or decline while other determinants of price are held constant taking into consideration only "Price and the commodities"
Edem
what are the determinants of demand and explain each?
Marisol Reply
what is the price of the good or services meaning?
Marisol
marzi tumhari
Aryan
lol
Aryan
khud par le
Aryan
hahahah
Ahmar
commodities own price,price of related goods (substitutes ,complements),consumers income ,tastes n preferences,expectations...population size n distribution of income are augmented while concerning marked demand.
Arooja
market demand
Arooja
Define microeconomics and macroeconomics..
Odirile Reply
In free market economy who market resources?
Odirile
Can you please explain how GDP is calculated?
Odirile
yes GDP meas all product produced in Economy first the country have to calculate all goods produced then we have to see the market value of goods at final stage we have to mutliple final goods to their market price we get GDP
Wani
what is consumer expectation?
Marisol
suppose country are producing 10 goods price of per good is $1 therefore GDP = 10 good × $1 =$ 10
Wani
Thank you for the answers @Wani
Odirile
most welcome odirile
Wani
what is micro and macro economic
Ahmar
Microeconomics is a science that which examines how people choose among alternatives available. Macroeconomics is a branch that focuses on impact of the aggregate economy.
Tom
Microeconomics studies individuals and business decisions, while macroeconomics analyzes the decisions made by countries and governments.
khatoon
what is the price of the good or service?
Marisol Reply
suppose price of per good is (ice-cream) is 5 the consumer are ready for buying 2 goods(2 ice creams) if price will increase from 5 to 10 per good then the consumer will demand only one good or one ice-cream because price is increased and his income is limited
Wani
what is income buyer?
Marisol
in law of demand we assume some factors constant some factors are income taste future preference constant
Wani
what is price of related goods or services?
Marisol
suppose your income per month is 10, 000 and your needs satisfied by these 10,000 if price of good will increase you need more than 10,000 to satisfy your needs that is why we says at higher price demand of goods decrease
Wani
What is the taste of preferences of consumers will drive demand?
Marisol
suppose you are eating pizza and u fell its taste good you will buy more pizza this called taste we assume in law of demand that taste of goods remain Same
Wani
related goods are either complementary goods are substitute goods
Wani
what is Consumer expectation?
Marisol
relationship between price and quantity? about the law of demand
Marisol Reply
P⬆️ Qd⬇️
DNA
what is law of demand?
Marisol
If Prince increases, Quantity demand will decrease and vice versa. So relationship b/w price and demand is inverse. There are some exceptions also. Like complementary goods and substitute goods.
DNA
any other answers? thankyou anyways. Twas a big help.
Marisol
the law of demand states that, "conditional on all else being equal, as the price of a good increases, quantity demanded decreases; conversely, as the price of a good decreases, quantity demanded increases".
DNA
law of demand says when price of good increase there demand will decrease and vice versa in short law of demand show negative relationship between price and demand of goods
Wani
All other factors like income, taste, preference, season shall remain constant
DNA
Rohi g Bilkul sahi farmov veh!
DNA
law of demand not apply on Griffen goods and luxurious goods
Wani
sir will u plz explain me why we add Griffen goods in aggregate demand no body explain me this question
Wani
definition of monopoly
Odirile
monopoly is a form of market where there is only one supplier , supplying the product . in other words monopoly means only one industry or enterprise are selling the product
Wani
what is monopolistic
Odirile
what are the determinants of demand and explain each?
Marisol
monopolistic competition is a form of market where there are many sellers selling differentiated product
Wani
bravo
Aryan
answer
Aryan
determinants of demand are 1.income :- if income of a person increase its demand for products will increase 2 . price :- if price of product increase there demand will decrease and vice versa 3. taste :- if buyer feels taste of product good then his demand for that product will increase
Wani
there are 5 determinants of demand?
Marisol
yes another one is if there customer are more in Economy more good will be demand
Wani
and what is the last one? I mean the fifth one?
Marisol
the other one is related goods related goods are either substitute goods are complementary goods if goods are substitute then if price of good will increase then demand for its substitute will increase
Wani
thankyou ❤️
Marisol
What is the concept of rationality in economics
Odirile Reply
Remuneration 10000 Net trade surplus 8000 Provision for depreciation 500 Indirect taxation 700 subsides 1000 Net factor payments 500 using information above calculate: 1GDP at factor cost 2GDP at market Price 3GNP at market price 4National income
Odirile
rationality simply means that you will always go for best choice in the available set of choice.
Rahul
which actions would most likely shift the production possibilities frontier outwards?
Odirile
what is consumer expectation in economics?
Marisol
the factory that cause shift to PPC are labour force, price of inputs. use of technology etc.
Wani
Marisol where from you
Wani
thankyou for the answers.
Marisol
From the Philippines Sir.
Marisol
most welcome marisol
Wani
a. Assume that Good X is a Giffen good, illustrate and explain the income and substitution effects for a decrease in the price of good X.
Thulisa Reply
as price of good X(assume as Griffen good) decrease income of the consumer increase , consumer will demand other goods rather than the Griffen goods thus at lower prices of good X it's demand will decrease.
Wani
what is law of demand
Hugo Reply
what is the law of demand
Hugo
What is the law of demand
Hugo
just considering the relationship between price and quantity, holding other factors constant.
Donation
when the price of a commodity increases, it's demand will decrease. and when the price of a commodity decreases, it's demand will increase, other things remaining the same or constant. That is called Law of Demand.
Azka
other things remained constant there is inverse relationship between price and quantity demand i .e when price of a commodity increased the demand of quantity will decrease and vice- versa.
khatoon
right @KhatoonNafisa
Azka
Other answers about the law of demand and how it relates between the price and quantity?
Marisol
sir define me prison of delima
Ibrahim Reply
it is a paradoxical situation, where two individuals acts for their self interest but don't achieve the optimal point.
Rahul
gays why we add Griffen goods in aggregate demand as we know Griffen goods have positive relationships that means if price increase demand of goods also increase .but in aggregate demand there is a negative relationship between price and aggregate output.
Wani
what is the concept of rationality in economics?
Odirile
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Itse 1359 introduction to scripting languages: python' conversation and receive update notifications?

Ask