Page 85 - Touchcode_C7_Flipbook
P. 85
3. Which of the following data type is used to store whole numbers (positive or negative)?
a. Integer b. Float
c. String d. Boolean
4. Which of the following is the syntax to perform addition of integer and float?
a. x+y b. x-y
c. x*y d. x/y
5. Which of the following data type represents logical values?
a. Integer b. Float
c. String d. Boolean
B. State whether the following statements are true (T) or false (F).
1. A programming language is used to write instructions for computers to follow.
2. Computers cannot understand the languages we speak.
3. Earlier computers were programmed by changing ones and zeros manually.
4. All modern programming languages are made up of a series of syntax and symbols.
5. High level language is difficult to learn and time-consuming to code.
C. Fill in the blanks.
HELP BOX integer, values, float, position, in-built
1. Each character in a string can be access by using its ........................... in the string.
2. ........................... variables can be treated like numbers for all mathematical operations.
3. To store decimal numbers in Python, you should use ........................... variables as integer
variables.
4. Variables are used to store ........................... .
5. Python also has several ........................... data types.
D. Answer the following questions:
1. Differentiate between high-level language and low-level language.
.............................................................................................................................................................
.............................................................................................................................................................
2. What do you mean by selection sort?
.............................................................................................................................................................
.............................................................................................................................................................
Hello World with Code 83

