题库 第6427页
If keys are pushed onto a stack in the order `abcde`, then it's
If keys are pushed onto a stack in the order `abcde`, then it's impossible to obtain the output sequence `cedab`. ~@[](2…
If a linear list is represented by a linked list, the addresses
If a linear list is represented by a linked list, the addresses of the elements in the memory must be consecutive. ~@[](…
For a sequentially stored linear list of length $$N$$, the time
For a sequentially stored linear list of length $$N$$, the time complexities for query and insertion are $$O(1)$$ and $$…
If the most commonly used operations are to visit a random posit
If the most commonly used operations are to visit a random position and to insert and delete the last element in a linea…
在定义函数时,某个参数名字前面带有两个符号表示可变长度参数,可以接收任意多个关键参数并将其存放于一个字典之中。
在定义函数时,某个参数名字前面带有两个符号表示可变长度参数,可以接收任意多个关键参数并将其存放于一个字典之中。 ~@[](2)答案:TRUE…
在编写函数时,建议首先对形参进行类型检查和数值范围检查之后再编写功能代码,或者使用异常处理结构,尽量避免代码抛出异常而导致程序崩
在编写函数时,建议首先对形参进行类型检查和数值范围检查之后再编写功能代码,或者使用异常处理结构,尽量避免代码抛出异常而导致程序崩溃。 ~@[](2)答案:TRUE…
在函数内部没有任何声明的情况下直接为某个变量赋值,这个变量一定是函数内部的局部变量。
在函数内部没有任何声明的情况下直接为某个变量赋值,这个变量一定是函数内部的局部变量。 ~@[](2)答案:TRUE…
全局变量会增加不同函数之间的隐式耦合度,从而降低代码可读性,因此应尽量避免过多使用全局变量。
全局变量会增加不同函数之间的隐式耦合度,从而降低代码可读性,因此应尽量避免过多使用全局变量。 ~@[](2)答案:TRUE…