- Which ones belong to the basic functions of computer ( )
- Python has two basic modes ( )
- What will be the output of the following Python code? s=set([1, 2, 3])print(s.union([4, 5]))print(s|([4, 5])) ( )
- Bitwise _________ gives 1 if one of the bits is 1 and the other is 0. ( )
- What will be the value of x by the expression x = int(43.55+2/2)? ( )
- Which of the following is incorrect? ( )
- What will be the output of the following Python code? l=[1,2,3,4,5][x&1 for x in l] ( )
- How do required arguments specified in the function heading? ( )
- To read the entire remaining contents of the file as a string from a file object infile, which one should be used ? ( )
- Which one of the following functions will return the symmetric difference between two sets, x and y? ( )
- What will be the output of the following Python code? list(map((lambda x:x^2), range(10))) ( )
- What will be the output of the following Python code? s1={1, 2, 3}s2={3, 4, 5, 6}s1.difference(s2)s2.difference(s1) ( )
- What is the usage of the zeros() function in Numpy array? ( )
- Which one is the output of the following code? for i in "butter": if i=="t": break print(i) ( )
- Which one of the followings is not a data type supported by Python ( )
- What is the result of the expression, 3*1**3? ( )
- What is a variable defined outside a function? ( )
- A body statements in Python is expressed by indentation, such as (if, else, while) end with a colon ":", and then the body statements must be indented (____) spaces. ( )
- Given code below, what should be the output? nums = [10, 20, 30, 40, 50, 60, 70, 80, 90]some_nums = nums[2:-2]print(len(some_nums)) ( )
- NumPy provides a function __________ to create sequences of numbers,. ( )
- Which manner do operators perform in the same precedence? ( )
- Given code below, what should be the output? s1 = set(['a', 'b', 'r', 'c', 'd'])s2 = set(['a', 'l', 'c', 'z', 'm'])print(len(s1 & s2), len(s1 ^ s2)) ( )
- Which one is not the usage of Python comments ( )
- How to change the file position to an offset value from the start? ( )
- Which one of the following statements is wrong about inheritance? ( )
- Is it possible to convert the Numpy array to list in Python? ( )
- Python uses () as an escape character to denote special usage. ( )
- Which one of the followings is the purpose of function in Python? ( )
- When was Python first released? ( )
- Python uses___to denote code blocks. ( )
- Which one of the following description of the dictionary type is wrong: ( )
- Which one of followings is floor division? ( )
- Calculate the cube of each element in l=[1, 2, 3, 4, 5, 6, 7, 8, 9]. ( )
- What will be the output of the following Python expression? 4^12 ( )
- Assume that when x<0, y=x-1; when x=0, y=x and when x>0, y=x+1.Which one below makes the same effect? ( )
- Which one would The readlines() method returns? ( )
- Which one of the followings is true for variable names in Python? ( )
- Which one of the following is not true about dictionary keys? ( )
- Which one is attribute of image? ( )
- Which operation can be used to set the picture to a given size? ( )
- Which one isn’t the method of ImageFilter? ( )
- Which one isn’t the method of Image.transpose? ( )
- What is the effect of ImageFilter. CONTOUR? ( )
- What will be the output for the following code? import numpy as np a = np.array([1, 2, 3], dtype = complex) print(a) ( )
- Which keyword is used to access the Numpy package in Python? ( )
- Which one is correct syntax for the ‘reshape()’ function in Numpy? ( )
- Numpy is a third party package for ____ in Python? ( )
- How to convert a Numpy array to a list in Python? ( )
- Which one of the followings is not correct about Class hierarchy? ( )
- What is the usage of tell() function in Python? ( )
- After executing the following procedure, what content will be saved in the file?file=open('test.txt', 'wt+')file.write('hello SCUT')file.close()file=open('test.txt', 'at+')file.write('hello world')file.close() ( )
- Which of the following statements cannot create a demo.txt file? ( )
- How to rename a file in Python? ( )
- Which function is not the way Python reads files. ( )
- Which are the advantages of functions in Python? ( )
- Which keyword is used to define a function in Python? ( )
- What will be the output of the following Python code? list(map((lambda x:x**2), filter((lambda x:x%2==0), range(10)))) ( )
- How does the variable length argument specified in the function heading? ( )
- Which one description of condition in the followings is correct? ( )
- Which is the output of the following code?a = 30b = 1if a >=10:a = 20elif a>=20:a = 30elif a>=30:b = aelse:b = 0print("a=",a,"b=",b) ( )
- What will be the output of the following Python code? lst=[3,4,6,1,2]lst[1:2]=[7,8]print(lst) ( )
- Which of the following is an invalid variable? ( )
- Which one will return error when accessing the list ‘l’ with 10 elements. ( )
- Which of the following operations will rightly modify the value of the element? ( )
- What will be the output of the following Python code ? not(10<20) and not(10>30) ( )
- Which is NOT the main part of computer ( )
- Which symbol can be used for comments in Python ( )
- The integrated development tool built into Python is ( ).
- Which is the correct operator for power(Xy)? ( )
答案:Input and output,###Control###Calculation,###Data storage,
答案:Script###Interactive
答案:13
答案:{1, 2, 3, 4, 5} Error
答案:XOR
答案:44
答案:a is 3 and b is 7 and c is 10a is 25 and b is 5 and c is 24a is 100 and b is 5 and c is 50
答案:float("12+34")
答案:[1, 0, 1, 0, 1]
答案:identifier
答案:infile.read()
温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!