CT320 IQ 13
Show Main.IQ13 as a slide show.

Version

Which version of Python did we discuss?
- Python 1
- Python 2
- Python 3
- Python 4
- Python 5
- Perl 6
Types
Which one of these aggregate types can only hold values of the same type?
- list
- tuple
- set
- dictionary
- none of the above
List
print(type((1,2,3)));
print(type([4,5,6]));
print(type({7,8,9}));
print(type(<10,11,12>));
Which of these is a list?
(1,2,3)[4,5,6]{7,8,9}<10,11,12>
String matching

print("C.*a" in "Chihuahua")
TrueFalse0"Chihuahua"- It won’t compile.
in does simple string matching, not regular expressions
Substrings
What will this code display?
s="abcde" s[3] = '123' print(len(s))
3578- It won’t compile.
strings are immutable
How many lines will this display?
print('alpha') print('beta', 'gamma') print('delta\n')
- 2
- 3
- 4
- 5
- It won’t compile.
sendmail
sendmail is an:
- MDA
- MRA
- MSA
- MTA
- MUA
CT320: Networking, Sys Admin, and Art History
Who painted the postman in the previous question?
- Andy Warhol
- Leonardo da Vinci
- Pablo Picasso
- Rembrandt
- Vincent van Gogh
MUA
Which one of these is an MUA?
- gmail
- imapd
- MIME
- sendmail
- thunderbird
SMTP Port
egrep ' (22|25|80|465|587)/tcp' /etc/services
SMTP occurs on port:
- 22 ssh
- 25 smtp
- 80 http
- 465 old port for smtps
- 587 mail submission
Memorization
Should I memorize port numbers?
- Certainly not.
- Probably not.
- Well, maybe.
- I know them all!
- Probably not, but you should know a few really well-known port numbers.
Mail Handling Record
Which DNS record indicates a host that handles mail?
- A
- AAAA
- CNAME
- MH
- MX
