刷题
导入试题
【判断题】
语句pass仅起到占位符的作用,并不会做任何操作。
A. 对
B. 错
查看试卷,进入试卷练习
微信扫一扫,开始刷题
答案
A
解析
暂无解析
相关试题
【判断题】
在条件表达式中不允许使用赋值运算符“=”,会提示语法错误。
A. 对
B. 错
【判断题】
任何包含call()方法的类的对象都是可调用的。
A. 对
B. 错
【判断题】
在Python中函数和类都属于可调用对象。
A. 对
B. 错
【判断题】
无法使用lambda表达式定义有名字的函数。
A. 对
B. 错
【判断题】
已知x是一个列表,那么x = x[3:] + x[:3]可以实现把列表x中的所有元素循环左移3位。
A. 对
B. 错
【判断题】
已知x和y是两个字符串,那么表达式sum((1 for i,j in zip(x,y) if i==j))可以用来计算两个字符串中对应位置字符相等的个数。
A. 对
B. 错
【判断题】
函数和对象方法是一样的,内部实现和外部调用都没有任何区别。
A. 对
B. 错
【判断题】
在设计派生类时,基类的私有成员默认是不会继承的。
A. 对
B. 错
【判断题】
如果在设计一个类时实现类len()方法,那么该类的对象会自动支持Python内置函数len()。
A. 对
B. 错
【判断题】
Python 3.x中字符串对象的encode()方法默认使用utf8作为编码方式。
A. 对
B. 错
【判断题】
已知x = ‘hellow world.’.encode(),那么表达式x.decode(‘gbk’)的值为’hellow world.’。
A. 对
B. 错
【判断题】
已知x = ‘Python是一种非常好的编程语言’.encode(),那么表达式x.decode(‘gbk’)的值为’Python是一种非常好的编程语言’。
A. 对
B. 错
【判断题】
正则表达式’^http’只能匹配所有以’http’开头的字符串。
A. 对
B. 错
【判断题】
正则表达式’^\d{18}|\d{15}$’只能检查给定字符串是否为18位或15位数字字符,并不能保证一定是合法的身份证号。
A. 对
B. 错
【判断题】
二进制文件也可以使用记事本程序打开,只是无法正确阅读和理解其中的内容。
A. 对
B. 错
【判断题】
正则表达式’[^abc]’可以一个匹配任意除’a’、’b’、’c’之外的字符。
A. 对
B. 错
【判断题】
正则表达式’python|perl’或’p(ython|erl)’都可以匹配’python’或’perl’。
A. 对
B. 错
【判断题】
文本文件是可以迭代的,可以使用for line in fp类似的语句遍历文件对象fp中的每一行。
A. 对
B. 错
【判断题】
Python的主程序文件python.exe属于二进制文件。
A. 对
B. 错
【判断题】
使用记事本程序也可以打开二进制文件,只不过无法正确识别其中的内容。
A. 对
B. 错
【判断题】
对字符串信息进行编码以后,必须使用同样的或者兼容的编码格式进行解码才能还原本来的信息。
A. 对
B. 错
【判断题】
使用pickle进行序列化得到的二进制文件使用struct也可以正确地进行反序列化。
A. 对
B. 错
【判断题】
已知当前文件夹中有一个文件readme.txt具有只读属性,假设标准库os已正确导入,那么可以通过语句os.chmod(‘readme.txt’, 0o777)来删除该文件的只读属性。
A. 对
B. 错
【判断题】
Python标准库os的函数remove()不能删除具有只读属性的文件。
A. 对
B. 错
【判断题】
字节串b’hello world’和b’hello world.’的MD5值相差很小。
A. 对
B. 错
【判断题】
由于异常处理结构try…except…finally…中finally里的语句块总是被执行的,所以把关闭文件的代码放到finally块里肯定是万无一失,一定能保证文件被正确关闭并且不会引发任何异常。
A. 对
B. 错
【判断题】
使用TCP协议进行通信时,必须首先建立连接,然后进行数据传输,最后再关闭连接。
A. 对
B. 错
【判断题】
TCP是可以提供良好服务质量的传输层协议,所以在任何场合都应该优先考虑使用。
A. 对
B. 错
【判断题】
在4核CPU平台上使用多线程编程技术可以很轻易地获得400%的处理速度提升。
A. 对
B. 错
【判断题】
多线程编程技术主要目的是为了提高计算机硬件的利用率,没有别的作用了。
A. 对
B. 错
【填空题】
1、 Python安装扩展库常用的是_工具。___
【填空题】
2、 Python标准库math中用来计算平方根的函数是____。___
【填空题】
3、 Python程序文件扩展名主要有__和两种,其中后者常用于GUI程序。___
【填空题】
4、 Python源代码程序编译后的文件扩展名为___。___
【填空题】
5、 使用pip工具升级科学计算扩展库numpy的完整命令是_______。___
【填空题】
6、 使用pip工具查看当前已安装的Python扩展库的完整命令是___。___
【填空题】
7、 在IDLE交互模式中浏览上一条语句的快捷键是____。___
【填空题】
8、 使用pip工具查看当前已安装Python扩展库列表的完整命令是___。___
【填空题】
9、 在Python中____表示空类型。___
【填空题】
10、 列表、元组、字符串是Python的______序列。___
推荐试题
【单选题】
How many American students are currently learning Chinese? ___
A. About 22,000
B. About 24,000
C. About 44,000
D. About 2,400
【单选题】
How much did the Defense Department give Oregon schools? ___
A. $70,000
B. $1.3 million
C. $700,000
D. $1.3 billion
【单选题】
What’s Isabel Weiss’s purpose of learning Chinese? ___
A. For fun
B. For more opportunities for jobs
C. For more opportunities of making money
D. For more opportunities for promotions
【单选题】
What ability do the standardized tests reward to? ___
A. Think.
B. Create.
C. Quickly answer superficial questions.
D. Above all.
【单选题】
In what ways the IQ scores can be changed? ___
A. Training.
B. Nutrition.
C. More friendly people administered the test.
D. Above all
【单选题】
What do schools focus on? ___
A. Concepts.
B. Science.
C. Social Studies.
D. Foreign languages.
【单选题】
Why tests and standards are a necessary fact of life? ___
A. They protect us from hazardous products.
B. They protect us from inept drivers.
C. They protect us from shoddy professionals.
D. Above all.
【单选题】
How many percent did the scores on statewide tests rise? ___
A. 4%.
B. 14%.
C. 40%.
D. None.
【单选题】
What was the woman’s reaction when she was nominated? ___
A. She was surprised at the nomination.
B. She was calm at the nomination.
C. She was indifferent to the nomination.
D. She was scared of the nomination.
【单选题】
According to the woman, who paid for her trip to San Francisco? ___
A. Her trip to San Francisco was sponsored by the Academy.
B. Her trip to San Francisco was paid for by her company.
C. Her trip to San Francisco was paid for by her family.
D. Her trip to San Francisco was paid for by herself.
【单选题】
What is the name of George Miller’s new movie? ___
A. Happy Feeling.
B. Happy Dancing.
C. Happy Foot.
D. Happy Feet.
【单选题】
Which name is not mentioned in the film? ___
A. Nicole Kidman.
B. Hugh Jackman.
C. George Clooney.
D. Robin Williams.
【单选题】
Which of the following statement is not true about “Life in the Freezer”? ___
A. It was a documentary film.
B. It was made by National Geographic and the BBC.
C. It was a story of the amazing life of Emperor penguins.
D. The
E. mperor penguin sang to each other to find a mate and made friends.
【单选题】
What should you do during a high-pressure periods? ___
A. Lock yourself in a room with your work.
B. Leave your work and go on a vocation.
C. Tell your boss you can’t finish your work.
D. Get together with people who will revitalize and inspire you.
【单选题】
Which of the following is the correct description of TempWorld? ___
A. The era of guaranteed jobs is history.
B. We are all temporary workers.
C. You have to equip yourself with the skills.
D. All of the above.
【单选题】
What should a career activist do? ___
A. Being a career activist means concentrating on daily business.
B. Being a career activist means you can do a business as long as it meets your short-term needs.
C. A career activist should take the long view of his career.
D. A career activist should plan everything in advance.
【单选题】
What should you do in the TempWorld? ___
A. In TempWorld you must withstand disappointment, juggle stressful situations, and handle pressure.
B. You must learn from your setbacks and use them to your advantage in the future.
C. Things always go well for successful people because they are honest.
D. Both A and B.
【单选题】
Which of the following statements is Not True? ___
A. Your boss may be willing to change his behavior than your think.
B. Some managers don’t care how much their words or actions upset staffers.
C. You should tell your managers how their outbursts make you feel.
D. If the boss values your work, he may stop his abusiveness.
【单选题】
Which of the following public places is NOT mentioned that have banned mobiles? ___
A. restaurants
B. gas stations
C. theatres
D. museums
【单选题】
What happened when the cellphone of the speaker’s friend rang? ___
A. His friend answered the phone and the speaker became invisible to his friend.
B. They answered the phone together.
C. The speaker threw away his friend’s cellphone.
D. His friend hung up the phone and kept talking to the speaker. (C)
【单选题】
What happened to the man? ___
A. He had a car accident.
B. He had his arms broken.
C. He lost his mobile phone.
D. He was not able to use his mobile because he was in a remote area.
【单选题】
Which of the following is NOT true? ___
A. Today there are about 400 million cellphone owners.
B. Today there are about 300 million Personal Computer subscribers.
C. Cellphones will be more often used.
D. Cellphones will completely replace Personal Computers.
【单选题】
Which of the following is true? ___
A. Ellen Johnson-Sirleaf stayed in her country during the nation’s civil war.
B. She is still working for the United Nations.
C. She is the first woman ever elected president of an Asian country.
D. She is a Liberia.
【单选题】
What do you know about the solar eclipse? ___
A. Only hundreds of people gazed at it.
B. It was caused by the earth passing in front of the moon.
C. It was not often seen.
D. It started in Mongolia and ended in Brazil.
【单选题】
What is true about this meeting between the USA and China? ___
A. It was a meeting between Xi Jinping and Donald Trump.
B. It was the first time that the Chinese president had visited the United States.
C. The issue of the Olympics was discussed.
D. South Korea’s nuclear weapons program was discussed.
【单选题】
In which year did the station’s first permanent crew arrived? ___
A. 1998
B. 2000
C. 2002
D. 2003
【单选题】
If elected, ________________. ___
A. Richardson would be the first Hispanic President.
B. Clinton would be the first African-American President.
C. Romney world be the first Hispanic President.
D. Clinton would be the first Mormon President.
【单选题】
What are the things that the speaker’s inner and outer life based on? ___
A. Money
B. Health
C.
D. elicious food
【单选题】
What kind of things has its own reason for existing? ___
A. Questioning
B. The structure of reality
C. Curiosity
D. The mysteries of eternity
【单选题】
Who are so full of doubts? ___
A. Fools and fanatics
B. Wise people
C. Professors
D. University students
【单选题】
To the speaker, what kind of things always win in life? ___
A. Truth and love
B. Power and status
C. Great minds
D. Money and material
【单选题】
What’s the key word of the speaker? ___
A. Love
B. Power
C. Freedom
D. Curiosity
【单选题】
What happened to the man? ___
A. He committed identity theft.
B. He was put in prison.
C. He reported a case of theft to police.
D. He robbed a bank.
【单选题】
What is the attitude of Mrs. Washington? ___
A. She tries to cover up for little George.
B. She thinks Mr. Washington should not ask George directly.
C. She encourages George to chop down the tree.
D. She thinks Mr. Washington should put the blame on the sharp axe.
【单选题】
What do Nancy’s colleagues think about her transgender transition? ___
A. They think it is ridiculous.
B. They make a big fuss about it.
C. They take it lightly.
D. They are sympathetic.
【单选题】
What are the two women talking about? ___
A. They are talking women’s liberation.
B. They are talking about an ideal husband.
C. They want a rewarding job.
D. They are talking about women’s choice between family and career.
【单选题】
According to what you’ve heard, which of the following is NOT true? ___
A. The two ten-minute workouts help people get into shape in a short time.
B. The two ten-minute workouts are designed for the people of certain level of fitness.
C. The two ten-minute workouts help people to lose weight and to be vigorous.
D. The two ten-minute workouts are suitable for most people.
【单选题】
What does Cindy say about visiting Costa Rica in June? ___
A. It is bad because June falls in the rainy season.
B. It is bad because there is almost no sunshine in June.
C. It is not bad because it seldom rains on the coast.
D. It is not bad because it does not rain all the time and in all the places.
【单选题】
What did the professor say about the translation of idioms across language? ___
A. Almost all idioms are translatable and can be universally used.
B. Idioms are hardly translatable and cannot be universally used.
C. Not all idioms are translatable but many have translations in other language.
D. All idioms are translatable and tend to become international.
【单选题】
According to Professor Randal, which of the following is true for SAT II? ___
A. It tests your critical thinking and problem-solving skills.
B. It is more content oriented.
C. It is designed to measure subject-area knowledge.
D. It is designed to measure achievement in
E. nglish, math, reading, and science.
欢迎使用我爱刷题
×
微信搜索我爱刷题小程序
温馨提示
×
请在电脑上登陆“www.woaishuati.com”使用