Professional Documents
Culture Documents
Department of Education
Region IV-A CALABARZON
CITY SCHOOLS DIVISION OFFICE OF ANTIPOLO
SAN JOSE NATIONAL HIGH SCHOOL
Science, Technology and Engineering Program
MULTIPLE CHOICE
Direction: Choose the letter of the correct answer. Use your answer sheet for your answers.
1. Which of the following is correct syntax for the output "Hello World" in Python?
a. echo("Hello World"); c. p("Hello World")
b. echo "Hello World" d. print("Hello World")
4. What special character is used to define a block of code (body of loop, function etc.) in
Python?
a. Curly braces c. Indentation
b. Parenthesis d. Quotation
a. 2, 3, 4 c. [2, 3, 4]
b. 2 3 4 d. [2 3 4]
10. What is the other term of VALUE in a program, it can be a number, string, characters
etc.?
a. Comment d. Print
b. Variable
c. Constant
TRUE OR FALSE.
Directions: Write the word “TRUE” if the statement is correct otherwise “FALSE”.
1. A single-line comment starts and ends in the same line. We use the # symbol to write a
single-line comment.
2. If we write comments in our code, it will be easier for future reference.
3. Always use comments to explain why we did something rather than how we did
something.
4. In computer programming, data types specify the type of data that can be stored inside a
variable.
5. Integers, floating-point numbers and complex numbers fall under Python numbers
7. float - holds floating decimal points and it's accurate up to 15 decimal places.
TABLE COMPLETION
Direction: The following are the data types in python, write the correct answer on the
space provided.
Write a Python program that will accept the base and height of a triangle and
compute its area. (33-35)
Source code:
b = ____(____("Input the base : "))
h = ____(____ ("Input the height : "))
area = b*h/2
print(area)
REFLECTION: Complete the sentences below by writing 2-3 sentences each. (36-
40)
A. I Realized that…
B. understand that..