题目内容

有串sl =“ABCDEFG”,s2=“PQRST”,假设函数con(x,y)返回x和y串的连接串,subs( s,i,j)返回串S的从序号i的字符开始的j个字符组成的子串,len(s)返回串S的长度,则con( subs( s1,2,len( s2)),subs(s1,len( s2),2))的结果串是()。

查看答案
更多问题

串相对于一般的线性表,有两个特点,一是限定了元素类型为____型,二是其基本操作大部分是以“串的整体”作为操作对象。

二维数组A[10][20]采用列序为主方式存储,每个元素占1个存储单元,并且A[0][0]的存储地址是200,则A[6][12]的地址是。

如果一个串的所有字符都在另一个串中出现,则说明前者是后者的子串。

A. 对
B. 错

Directions: In this section, there is a passage with ten blanks. You are required to select one word for each blank from a list of choices given in a word bank following the passage. Read the passage through carefully before making your choices. Each choice in the bank is identified by a letter. Please mark the corresponding letter for each item on Answer Sheet 2 with a single line through the centre. You may not use any of the words in the bank more than once.Neon (霓虹) is to Hong Kong as red phone booths are to London and fog is to San Francisco. When night falls, red and blue and other colors 1.__________ a hazy (雾蒙蒙的) glow over a city lit up by tens of thousands of neon signs. But many of them are going dark, 2. __________ by more practical, but less romantic, LEDs (发光二极管).Changing building codes, evolving tastes, and the high cost of maintaining those wonderful old signs have businesses embracing LEDs, which are energy 3. _________, but still carry great cost. "To me, neon represents memories of the past," says photographer Sharon Blance, whose series Hong Kong Neon celebrates the city's famous signs. "Looking at the signs now I get a feeling of amazement, mixed with sadness."Building a neon sign is an art practiced by 4. __________ trained on the job to mold glass tubes into 5. __________ shapes and letters. They fill these tubes with gases that glow when 6. __________. Neon makes orange, while other gases make yellow or blue. It takes many hours to craft a single sign.Blance spent a week in Hong Kong and 7. __________ more than 60 signs; 22 of them appear in the series that capture the signs lighting up lonely streets—an 8.________ that makes it easy to admire their colors and craftsmanship. "I love the beautiful, handcrafted, old-fashioned 9. __________ of neon," says Blance. The signs do nothing more than 10. __________ a restaurant, theater, or other business, but do so in the most striking way possible.(把词汇框里的相应单词对应的大写字母填入答案框中,不需填写单词本身。如选择alternative,那么只需要填入“A”。)

答案查题题库