Computers Grade 6
Computers Grade 6
2. Every programming language has a syntax. What does this statement mean?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
3. Write a syntax error in Python.
____________________________________________________________________________
4. What are editors?
____________________________________________________________________________
5. What is IDE?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
6. What is IDLE?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
7. What is PyCharm?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
8. Give an example of output in Python.
____________________________________________________________________________
9. Give an example of output of multiple statements.
2
10.
1.___________________________________________________________________________
2.___________________________________________________________________________
3.___________________________________________________________________________
4.___________________________________________________________________________
5.___________________________________________________________________________
6.___________________________________________________________________________
7.___________________________________________________________________________
PYTHON CODING
1. What is a variable? Give an example.
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
2. What are Reserved Words? Give an example.
____________________________________________________________________________
3.
____________________________________________________________________________
____________________________________________________________________________
4. What is an Assignment Statement?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
5. What are Arithmetic Operators? Give examples.
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
6. How do you change the value in a variable?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
7. What is Initialising?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
8. Give an example of Variables and Output.
4
Integer
Real or Float
Character
String
10.What are the Data Types in Python?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
11.What is Casting? Give an example.
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
12.What is Input in Python?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
13.
14.Write the answers of the following questions:
Learn the common errors.
5
______________________________________________________________________
______________________________________________________________________
______________________________________________________________________
15.
a) function myFunction():
b) def myFunction():
c) create myFunction():
d) myFunction():
---