问题 单项选择题

运算结果是字符串“home”的表达式是( )。

A.LEFT("myhome",4)

B.RIGHT("hometown",4)

C.SUBSTR ("myhometown",4,4)

D.SUBSTR("myhometown",3,4)

答案

参考答案:D

解析: 取子串的函数有下 * * 种格式。 格式1:LEFT(<字符表达式>,<长度>)。 格式2:RIGHT(<字符表达式>,<长度>)。 格式3:SUBSTR(<字符表达式>,<起始位置>[,<长度>])。 LEFT()从指定表达式值的左端取一个指定长度的子串作为函数值。 RIGHT()从指定表达式值的右端取一个指定长度的子串作为函数值。 在SUBSTR()从指定表达式值的指定起始位置取指定长度的子串作为函数值。 在SUBSTR()函数中,若缺省第3个自变量<长度>,则函数从指定位置一直取到最后一个字符。 从以上3个函数的功能得知,选项A) 的结果是“myho”,选项B)的结果是“town”,选项C)的结果是“omet",选项D)的结果是“home”。

阅读理解

Wonder why you can get angry so easily while your friend smiles all the time? It’s probably because you both have different personalities(个性).

Personality is also about how people think, behave, and react (反应) to everything around them from day to day.

So what makes people think and behave in certain ways?

Part of the reason is that people are born like this. A baby gets its blood type, genes (基因) and other physical things when it’s still inside its mother. These things may help decide what the baby will be like.

But one’s personality doesn’t stop here. Family life, school learning and life experiences can also make you the person you are. This doesn’t mean it’s impossible to change your personality. You can always try to make yourself better. Don’t get too worried about your shortcomings (缺点). Just accept them. This is a good way to start making changes.

If you don’t know how to make friends, find out why. Is it because you’re too shy? Tell yourself to smile at people. Start talking to people using warm greetings.

Don’t give yourself a hard time about it all. It’s not easy to change lifelong habits in one night. Keep working at it. One day you’ll see that you can turn over a new leaf and be a new you!

小题1:Personality is about the following except        .

A.how you behave

B.what you look like

C.how you react to something

D.how you think about something小题2:We know that         from the passage.

A.people are born the way they’ll always be

B.a person can try to change his/her personality

C.personality decides what a person looks like

D.blood type decides what a person will be like小题3:From the last two paragraphs, we learn that         .

A.a shy person can’t make many friends

B.you can work hard to improve yourself

C.everyone can change him- or herself in life

D.there is no way to change your lifelong habits

多项选择题