【单选题】模拟手机通讯录编写一段代码,设置有查询、添加、删除联系人功能,小明写了如下代码,是否有误: 01 print('欢迎进入微信通讯录') 02 print('1.查询联系人') 03 print('2.添加联系人') 04 print('3.删除联系人') 05 print('4.退出通讯录') 06 07 contact={'小王':135,'小李':138,'...
A.
第14行错误:应改为print(contact[name])
B.
第26行错误,应改为if name not in contact.keys()
C.
第22行错误,应改为contact.add(name:number)
D.
第27行错误,应改为del contact[name]
【单选题】We may infer that ______.
A.
DDT cannot kill the caterpillars
B.
the wasps cause the mosquito plague
C.
with the help of DDT, the local people's living condition was improved
D.
DDT was unable to reach the caterpillars that had the habit of hiding in the thatched roofs
【简答题】联系人信息管理:解释下面代码实现的功能 if(this->listBox1->SelectedIndex == -1) return; String^ contactName =listBox1->Items[listBox1->SelectedIndex]->ToString(); Contact^ contact = nullptr; for (int i=0;iCount; i++) { ...
【单选题】联系人信息管理:解释下面函数中红色语句行A、B的用法: private: System::Void button1_Click(System::Object^ sender,System::EventArgs^ e) { // 删除 if(this->listBox1->SelectedIndex == -1) return; // 未选择联系人 St...
A.
for (int i=0;iCount; i++) { // 查找该联系人 Contact^ contact =safe_cast(contactList[i]); //
B.
if (contactName ==contact->contactName) { contactList->RemoveAt(i); break; // 删除该联系人 } } this->listBox1->Items->RemoveAt(listBox1->SelectedIndex); // 从 ListBox 中删除该项 }
【判断题】“船上油污应急计划”中的联系人名单包括沿海联系人、港口联系人、船舶利益方联系人。
【单选题】What did the man's mother most desire to do at the present?
A.
To kill the man Who had shot his son.
B.
To tell the media the truth.
C.
To return home with the dead body.
D.
To redress an injustice.
【判断题】Contact功能按键可以设置多个企业联系人。
【简答题】//加载手机中所有联系人 private void loadAllContacts() { //Contact是联系人的实体类 List contacts= //1、得到ContentResolver ContentResolver resolver= //先得到所有联系人的Uri,从contacts表中得到所有的联系人ID Uri uri=Uri. ("content://com.android...
【单选题】Do you ( )each other often?
【判断题】“船上油污应急计划”中的联系人名单包括沿海联系人、港口联系人、船舶联系人。