Page 28 - AI
P. 28
You can try to see and list your observations as to how the AI is trying to understand
and predict the animal.
APPENDIX 1
Test your Python Skills:
1. What is a function inside another function known as?
(i) Nested function (ii) Loop function (iii) Infinite function (iv) Unloop function
2. What are used to create iterators?
(i) Nests (ii) Handlers (iii) Strings (iv) Generators
3. What is the assignment of more than one function to an operator called?
(i) Looping (ii) Operator Overloading
(iii) Nesting (iv) Iterations
4. Punctuation characters such as @, $, and % within identifiers are allowed.
(i) True (ii) False
5. How are errors handled in Python programming?
(i) Sample test (ii) Exception Handling
(iii) Conditional Blocking (iv) Marking
6. Starting an identifier with a single leading underscore indicates that the identifier is:
(i) Public (ii) Private (iii) Null (iv) Local
7. Which of these is not a reserved word?
(i) continue (ii) assert (iii) try (iv) surface
8. Braces are used in Python to indicate blocks of code.
(i) True (ii) False
9. Which is the continuation character used to denote that line should continue?
(i) \ (ii) | (iii) / (iv) ;
10. Which symbol is not used to denote strings?
(i) ‘ (ii) ( (iii) “ (iv) “‘
11. Hash sign (#) not inside a string means that it is a
(i) Comment (ii) Variable (iii) Function (iv) Identifier
ArtificiAl intelligence 27