Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

NAME 


CLASS : 
hcia ai test1
26 Questions DATE  : 

1. (True or False) By "all AI scenarios", Huawei means different deployment scenarios for AI,
including public clouds, private clouds, edge computing in all forms, industrial IoT devices,
and consumer devices.

A True B False

2. (Multiple-answer question) Which of the following are AI application fields?

A Smart education B Smart household

C Smart healthcare D Smart city

3. (True or false) Python2 and Python3 are frequently used

A false B true

4. (Multiple-answer question) In which fields can Python be used?

A Website development B App development

C image recognition D Data mining

5. (True or false) Use indentation to distinguish code blocks in Python.

A false B true

6. (True or false) Variables in Python can be classified into global variables and module
variables based on their application scope.

A false B true

7. (True or false) The data of the character string type cannot be changed.

A true B false
8. (Single-answer question) Which of the following statements are correct?

Character strings and values in Python The numeric types in Python include int,
A B
cannot be modified. float, double, and complex.

9. Which of the following operations are correct?

A List sort: list.sort() B List deletion element: list.appned()

C List insertion element: list.reverse()

10. Use slices to obtain all even numbers from the tuple t=(1, 2, 3, 4, 5, 6, 7).

A t[-2:0:-2] B t[1:-1:-2]

C t[-1:1:2] D t[1:6:2]

11. (True or false) Both == and is can be used to determine whether the values are equal.

A false B true

12. Which of the following statements are correct?

Both deep copy and shallow copy can


A B a = {}, where a is a set
implement full data copy.

Duplicate elements in the collection are


C
deleted.

13. Which of the following code execution results are displayed?if 0:


----print("A")
elif 1:
----print("B")
else:
----print("C")

A C B A

C B
14. Which of the following codes output?
i = 10
while i>0:
------for j in range(3):
-----------i-=1
------print(i)

A 7410 B 7 4 1 -2

C 7654321

15. Which of the following statements about functions and objects are correct?

Objects in Python are declared using the Functions can be created using def and
A B
keyword class. lambda in Python.

C functions are process-oriented. D In Python, a function is also an object.

16. Which of the following statements about classes are correct?

Inherit all attributes and methods of the In Python, you can quickly create classes
A B
parent class in Python. through inheritance.

In Python, objects are subclasses of all


C
classes by default.

17. Which of the following operation modes are available for file operations?

A r: read/write mode B *b: binary operation

C a: Append write D w: overwrite

18. Which of the following errors cannot be captured using the try statement?

A print(z) # z undefined B l = [1,2,3

C 1/0

19. (True or false) Gradient descent iteration is the only method of machine learning algorithms.

A True B false

20. (Single-answer question) Which of the following algorithms is not supervised learning?

A KNN B K-means

C Decision tree D Linear regression


21. (True or False) Compared with the recurrent neural network, the convolutional neural
network is more suitable for image recognition.

A True B False

22. (True or False) GAN is a deep learning model, which is one of the most promising methods
for unsupervised learning of complex distribution in recent years.

A False B True

23. There are many types of deep learning neural networks. Which of the following is not a
deep learning neural network?

A RNN B CNN

C LSTM D Logistic

24. (Multi-choice) There are many important "components" in the convolutional neural network
architecture. Which of the following are the convolutional neural network "components"?

A Activation function B Pooling

C Convolutional kernel D Fully connected layer

25. In TensorFlow 2.x, eager execution is enabled by default.

A true B false

26. Which of the following statements about tf.keras.Model and tf.keras.Sequential is incorrect
when the tf.keras interface is used to build a network model?

tf.keras.Model is recommended for model tf.keras.Model supports network models


A building when a sharing layer exists on the B with multiple outputs, while
network. tf.keras.Sequential does not.

tf.keras.Sequential is recommended for tf.keras.Model supports network models


C model building when a sharing layer exists D with multiple inputs, while
on the network. tf.keras.Sequential does not.

You might also like