Professional Documents
Culture Documents
Question Bank VI
Question Bank VI
Ans: Sprite will move backward when you press the right arrow key.
4. Which character is used in Python to start a new line?
Ans: “\n”
5 . Why do we need an editor to create a Python program?
Ans: Python allows us to execute instructions at the command prompt.However, we cannot
type a program having multiple instructions at the prompt every time we want to run it.
Therefore, we need an editor using which we can save our source programs and run them any
number of times
6.Explain character and string data types used in Python programming?
Ans: If a variable stores a character like ‘A’, ‘B’, ‘1’, ‘2’ or ‘#’ it is called a character data type.
If a variable stores a sequence of characters such as “qwerty” or “Ab@321”, it is called a string
data type.
7. Explain the use of following blocks in scratch.
a. b.
8. Answer the questions based on the following Python program.
p= 18
q= 'Pinky'
r= 23.55
print("My name is: ", q)
print("\n I am " ,p,”Years old”)