Professional Documents
Culture Documents
Quiz Review
Quiz Review
Answer = Float
2. If
4. What is the data type returned by the following Python expression: 4.0/2?
Answer = float
5. How do you define an instance method called herotime(), which does not take any parameters, for the
Python class Hero?
7. The object ben10, which is an instance of class Hero, has the method herotime() which takes no
parameters. How do you call the method from your program?
Answer = ben10.herotime()
Answer = instance
Answer = attribute
10. Which of the following is the correct way of defining the function zoom() in Python?
12. In order to make use of the square root sqrt() function, your program imports the math module
at the beginning using:
import math
Which of the following is the correct method of calling the sqrt() in your program?
Answer = math.sqrt(25)
width = 17
height = 12.0
delimiter = '.'
Answer = integer
Answer = Mech
15. If
Answer = {"a":1}
17. Which HTTP method is most often used for requesting a document from a server?
Answer = get
Answer = http
19. Given http://www.addu.edu.ph:8080/page?page=front&items=30#news, what is the request line
to GET this URL using HTTP/1.1?
21. Arrange the following socket methods in the most logical order, from start to finish, of how they
are called in a server program.
Answer = div, p
Answer= #news
24. In the following URL, what is the value of the "page" parameter?
http://www.addu.edu.ph/page?page=front&items=30&category=news
Answer = front
Answer = page=front&items=30
Answer = www.addu.edu.ph
27. Given the protocol ftp, the host ftp1.addu.edu.ph, and the path /syllabus, what is the URL?
Answer = ftp://ftp1.addu.edu.ph/syllabus
Answer = 100x: Informational , 200x: Success, 300x: Redirection, 400x: Client, 500x: Server
Answer = True
32. A GET request is primarily used for fetching documents from the server.
Answer = True
Answer = False
Answer = False
LESSON 1