貴港網(wǎng)站建設(shè)西地那非片說明書
一、單選題(每題 2 分,共 30 分)
第 1 題 據(jù)有關(guān)資料,山東大學(xué)于1972年研制成功DJL-1計算機(jī),并于1973年投入運行,其綜合性能居當(dāng)時全國第三位。DJL-1計算機(jī)運算控制部分所使用的磁心存儲元件由磁心顆粒組成,設(shè)計存貯周期為2μs(微秒)。那么該磁心存儲元件相當(dāng)于現(xiàn)代計算機(jī)的( )。
A. 內(nèi)存
B. 磁盤
C. CPU
D. 顯示器
第 2 題 IPv4版本的因特網(wǎng)總共有( )個A類地址網(wǎng)絡(luò)。
A. 65000
B. 200萬
C. 126
D. 128
第 3 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
my_list = [1, 2, [3, 4]]
my_list[2].extend([5, 6])
print(my_list)
A. [1, 2, 5, 6]
B. [1, 2, [3, 4]]
C. [1, 2, [3, 4, 5, 6]]
D. [1, 2, [3, 4, [5, 6]]]
第 4 題 執(zhí)行下面Python代碼后,會發(fā)生什么?( )
my_tuple = (1, 2, (3, 4))
my_tuple[2] = (5, 6)
A. my_tuple變?yōu)?1, 2, (5, 6))
B. 代碼正常執(zhí)行,沒有變化
C. 拋出ValueError異常
D. 拋出TypeError異常
第 5 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
try:
result = 10 / int('a')
except ValueError:
print("10", end="#")
else:
print("20", end="#")
finally:
print("30", end="#")
A. 10#30#
B. 10#
C. 20#
D. 30#
第 6 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
def func(n):
?? ? ?return len([num for num in range(n) if num % 2 == 0])
print(func(20))
A. 8
B. 10
C. 11
D. 15
第 7 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
def func(*args):
return ''.join(args)
print(func('Hello', 'World'))
A. HelloWorld
B. Hello World
C. "Hello" "World"
D. 拋出異常
第 8 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
def func(lst):
lst.append(10)
return lst
lstA = [1,2,3]
func(lstA)
print(lstA,func(lstA))
A. [1, 2, 3, 10, 10] [1, 2, 3, 10, 10]
B. [1, 2, 3] [1, 2, 3, 10]
C. [1, 2, 3, 10] [1, 2, 3, 10]
D. [1, 2, 3, 10] [1, 2, 3, 10, 10]
第 9 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
def tpADD(tpl):
tpl = tpl +(5,6)
return tpl
tp = (1,2,3)
tpADD(tp)
print(tp,tpADD(tp))
A. (1, 2, 3, 5, 6, 5, 6) (1, 2, 3, 5, 6, 5, 6)
B. (1, 2, 3, 5, 6) (1, 2, 3, 5, 6)
C. (1, 2, 3) (1, 2, 3, 5, 6)
D. (1, 2, 3) (1, 2, 3)
第 10 題 執(zhí)行下面Python代碼后,輸出的結(jié)果是?( )
x = 5
def foo():
def bar():
global x
x = 10
bar()
print(x, end="#")
foo()
print(x, end="#")
A. 5#5#
B. 10#5#
C. 5#10#
D. 10#10#
================================================
答案和更多內(nèi)容請查看網(wǎng)站:【試卷中心 -- Python編程 四級】
網(wǎng)站鏈接?
青少年軟件編程歷年真題模擬題實時更新
================================================