Font size
WorksheetsAI and Python: Ch.1 Revision
Total questions: 10
Worksheet time: 6mins
Which of the following example is NOT AI?
Google Translate
Robot waiters
Apple Siri
Smart Mirrors
RFID tag
Which of the following codes can be executed?
Print(“I hate exams”)
print(‘I hate exams’)
Print I hate exams
print(‘I hate exams”)
Which of the following is a library?
tts
say
sleep
What does time.sleep(5) mean?
Make the program run faster by five times
Make the program pause for 5 minutes
Make the program pause for five seconds
Shut down the computer after 5 seconds
For the statement time.sleep(5)
Which keyword is a function?
time
sleep
(5)
What is the voice output of the program below?
import tts
Tts.say(“Merry Christmas!)
The program cannot be executed.
Merry Christmas!
Why can’t the program be executed?
import tts
Tts.say(“Merry Christmas!”)
Python is case-sensitive.
No library was imported.
The speaker was out of order.
The program can be executed.
What is the advantage of textual programming over visual programming?
It is easier to understand.
It looks cool.
It is more advanced.
It is suitable for beginners without prior knowledge in programming.
Which of the following jobs is the LEAST likely to be replaced by AI?
Translators
Cashier
Clerks
Programmers
import time
tts.say("I love you.")
time.sleep(3)
tts.say("But I don't love you.")
In the above example, which library is missing? (Your answer is case sensitive)
(a)
