【单选题】窗体的组成不包括( )。
【判断题】定义函数时,即使该函数不需要接收任何参数,也必须保留一对空的圆括号来表示这是一个函数。
【判断题】可以使用del删除集合中的部分元素。
【判断题】定义Python函数时,如果函数中没有return语句,则默认返回空值None。
【判断题】Dictionary comprehension can be used to extract a subset of a dictionary.(1.0分)
【判断题】已知x为非空列表,那么执行语句x[0] = 3之后,列表对象x的内存地址不变。
【判断题】List comprehension cannot be applied to arithmetic progressions generated by range functions.
【单选题】What function do you use to terminate a connection to a file?(2.0分)
【单选题】A variable created inside a function is called a _________ variable.
【判断题】In a function definition, arguments passed by position must precede arguments passed by keyword.
【判断题】When the format method is used to format a string, right-justify is the default justification.
【判断题】The sort method does not actually alter the order of the items in a list.
【判断题】表达式 ‘a’+1的值为’b’。
【单选题】When a function returns 2 or more values it is actually returning a(n) _________.
【判断题】标准库os的listdir____方法默认只能列出指定文件夹中当前层级的文件和文件夹列表,而不能列出其子文件夹中的文件。
【判断题】Reserved words cannot be used as variable names.
【单选题】、在SQL查询中"GROUP BY"的含义是______。
【程序题】输入一组数字(5个以上),去掉一个最高分(显示),去掉一个最低分(显示),最后得分: 【源代码及伪代码】
【判断题】假设random模块已导入,那么表达式 random.sample(range(10), 20) 的作用是生成20个不重复的整数。
【判断题】定义类时如果实现了__contains__()方法,该类对象即可支持成员测试运算in。
【判断题】In general, tuples are more efficient than lists.
【判断题】Python元组支持双向索引。
【单选题】In programming terminology, numbers are called numeric ____________.
【判断题】程序中异常处理结构在大多数情况下是没必要的。
【判断题】Every object in Python has a truth value associated with it.
【判断题】调用函数时传递的实参个数必须与函数形参个数相等才行
【判断题】已知 x = 3,那么赋值语句 x = 'abcedfg' 是无法正常执行的。
【程序题】九九乘法表输出。 【源代码及伪代码】
【判断题】全局变量会增加不同函数之间的隐式耦合度,从而降低代码可读性,因此应尽量避免过多使用全局变量。
【单选题】下列关于SQL语句的说法中,错误的是( )。
【判断题】When writing a string literal, opening and closing quotation marks must be the same type.
【判断题】Python是一种跨平台、开源、免费的高级动态编程语言。
【单选题】The escape sequence for the newline character is ____________.
【判断题】After all the lines of a file have been read, the readline method returns the value None.(1.0分)
【判断题】函数中必须包含return语句。
【判断题】定义类时实现了__pow__()方法,该类对象即可支持运算符**。
【判断题】正则表达式元字符“^”一般用来表示从字符串开始处进行匹配,用在一对方括号中的时候则表示反向匹配,不匹配方括号中的字符。
【程序题】列出 5 种不同的食材,请输出它们可能组成的所有菜式名称。【源代码及伪代码】
【单选题】Access数据库中,为了保持表之间的关系,要求在主表中修改相关记录时,子表相关记录随之更改,为此需要定义参照完整性关系的( )。
【判断题】字符串属于Python有序序列,和列表、元组一样都支持双向索引。