AI&Python - QuestionBank - Ch1 - en - The Era of Artificial Intelligence
AI&Python - QuestionBank - Ch1 - en - The Era of Artificial Intelligence
JSICTB1201_01A001E, 1
1. Which of the following online services is/are using AI technology?
(1) Google Translate
(2) Search engines
(3) Voice assistants
A. (1) only
B. (1) and (2)
C. (2) and (3)
D. All of the above
[--Answer: D--]
JSICTB1201_01A002E, 1
1. Which of the following occupations is/are most unlikely to be replaced by AI?
(1) Teachers
(2) Customer service officers
(3) Programmers
A. (1) only
B. (1) and (3)
C. (2) and (3)
D. All of the above
[--Answer: B--]
JSICTB1201_01B003E, 1
1. Which of the following is the output of the Python code below?
print('a","b","c')
A. abc
B. a b c
C. a","b","c
D. The code cannot be executed.
[--Answer: C--]
JSICTB1201_01B004E, 1
1. Which of the following Python codes can be executed?
A. import tts
tts.say("Hello world!")
sleep(30)
tts.say("Good morning!")
B. import time
import tts
tts.say("Hello world!")
time.sleep(30)
C. say("Hello world!")
sleep(30)
say("Good morning!")
sleep(60)
D. import time
tts.say("Hello world!")
time.sleep(30)
tts.say("Good morning!")
[--Answer: B--]
JSICTB1201_01A005E, 1
1. Which of the following Python codes can produce the output below?
Hello world!
A. print("Hello world!")
B. print('Hello ') print('world!')
C. print("Hello world!')
D. print(Hello world!)
[--Answer: A--]
JSICTB1201_01A006E, 1
1. Below is the output of a program:
F
U
N
[--Answer: D--]
[--Answer: False--]
JSICTB1201_02A002E, 1
1. When writing Python codes, we do not need to follow the syntax. True / False
[--Answer: False--]
JSICTB1201_02A003E, 1
1. The library tts should be imported before executing the code tts.say("Hello True / False
world!").
[--Answer: True--]
JSICTB1201_02A004E, 1
1. Executing Python code “output("123456789")” prints the text “123456789” in True / False
the output cell.
[--Answer: False--]
JSICTB1201_02A005E, 1
1. Python is case-insensitive. True / False
[--Answer: False--]
Short Questions
JSICTB1201_03A001E, 2
1. Suggest two applications of Artificial Intelligence (AI). (2 marks)
____________________________________________________________________________________
[--Answer: Chatbot / Virtual assistant / Image recognition (search by image) / Speech recognition
(Speech-to-text) / Any reasonable answers--]
JSICTB1201_03A002E, 4
1. Jimmy is writing a program in Python so that it pronounces a sentence. The code of the program is
shown below:
tts.say("Good morning everyone!")
time.sleep(30)
tts.say("I am Jimmy from class 3A.")
print("Finished.")
(a) Which libraries should be imported before executing the code? (2 marks)
________________________________________________________________________________
(b) Write down the function names of the functions called in the code. (1 mark)
________________________________________________________________________________
(c) For how much time will the program pause after the sentence “Good morning everyone!” is
pronounced? (1 mark)
________________________________________________________________________________
[--Answer:
(a) tts, time
(b) say, sleep, print
(c) 30 seconds
--]
Vocabulary
JSICTB1201_08A001E, 1
1. Write down the full English term for the word “人工智能”. (1 mark)
____________________________________________________________________________________
JSICTB1201_08A002E, 1
1. Write down the English term for the word “函數”. (1 mark)
____________________________________________________________________________________
[--Answer: function--]