Professional Documents
Culture Documents
Bahawalpur Campus
ICTECH Computing
Workbook
Class- 7
Programming the Computer (Python)
Q: Circle the correct option.
a. yes
b. no
c. machine dependent
d. None of above
a. print(‘hello’,‘how’,‘are’,‘you’)
b. print(‘hello’,‘how’,‘are’,‘you’+‘-‘*4)
c. print(‘hello-‘‘how-are-you’)
d. print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)
a. .python
b. .pl
c. .py
d. .p
a. x=”orange”
b. x==orange
c. x,orange
a. underscore and ampersand are the only two special characters allowed
b. unlimited length
c. all private members must have leading and trailing underscores
d. none of the mentioned
6. How do you insert COMMENTS in Python code?
a. //This is a comment
b. /*This is a comment*/
c. #This is a comment
d. None of these
7. The program is embedded inside a hardware device it’s called ___________________.
a) F2 b) F3 c) F4 d) F5
b. Hardware is a term we use to describe the ____________ and _______ parts of the coputer.
c. A _______ is just an ordered of collection items which can be of any data type.
Q: True False.
a. As per Code.org there are over 400,00 opening for computing jobs in the
USA. __________
b. A Tkinter application runs most of its time inside an event loop. _______
c. A flow chart is a type of description. _________
d. Syntax errors in typing the text.__________
e. Data Flow Diagram short form is DDF. __________
Q: Match the column A with Column B.
Column A Column B
Arrows/Connectors
Input/output
Decision
process
Start/end
Q: What is Flowchart?.
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Q: What is an Algorithm?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Q: Define Pseudocode?
___________________________________________________________________
___________________________________________________________________
Q: What is Program??
___________________________________________________________________
___________________________________________________________________
Q: Write famous python websites where we can use python language?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
__________________________________________________________________
___________________________________________________________________
Q: Define IDLE.
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Q: Define the difference between Programming Language and Scripting Language.
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Take hours and rate of per hour as input and Fill in the blanks of the flowchart below in order
to calculate the salary of the employee.
Get Dividend
Divide by
Robotics
Q: Circle the correct option.
c. The _______ loop often goes together with the range () function in Python.
1. _________________________________________
2. _________________________________________
3. _________________________________________
Q: True False.
environment.
5. By pressing the record button starts the execution of the program.
6. With the stop button the program stops.
7. Any program you create in Edscratch must be downloaded to Edison before the robot can perform the
actions.
8. To download a program to Edison you just need a WIFI connection.
9. Edscratch uses icons that represent programming commands which control the actions of the robot.
10. There are five categories of icons in the icon palette.
11. The control icons do math on a variable.
12. The flow icons control the flow of the program.
13. Before you download the program to the robot the volume of your computer should be at the minimum.
14. When Edison finishes downloading will make a distinctive sound.
15. When you click Program Edison the program starts downloading.
16. The robot can play a tune string that you can create.
1. Put a if the sentence is correct
17. Edison has two motors that allow it to perform several movements.
18. The two motors make the robot move only forward.
19. The dual drive icon controls the time of the movement of the robot’s two motors.
20. Using EdScratch you can create programs that combines all the movements
Edison can perform.
21. You can set parameters for each icon to see how the robot will react to its
sensors.
22. To set the parameters for each icon you have to open the properties of each one.
23. With the loop start icon the program is set to run forever until you press the stop
button on the robot.
put the loop end icon too.
Barcode and
Edpy
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Q: Why do we need to declare variables in Python?
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q: Differentiate between For and While loop.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q: How does Edison’s Line Tracking sensor work?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Q: Write down the function of the following:
i. While loop
_______________________________________________________________________________
ii. Variables
_______________________________________________________________________________
_______________________________________________________________________________
iv. If statement
_____________________________________________________________________________
…………………………………
…………………………………
…………………………………
…………………………………
……………………………………
……………………………………
Number the pictures from 1-5 to indicate the correct order of the steps that
you must follow to download a program to the robot.
Press the record button
once □
Slide the power switch to
□
the ON position
□
start the program
□
to the headphone socket on
the computer and turn up
the volume to full
□
Press the buttons “Program
Edison” and “Start
Download”
Q: Label the diagram.
1. __________________________
2. __________________________
3. __________________________
4. __________________________
5. __________________________
6. __________________________
7. __________________________
8. __________________________
9. __________________________
Mobile App Development
Q: Fill in the blanks.
1. The _______________ block changes the look of the elements on your screen.
______________ have lots of propertiesnyou can change like their text colour,
Background colour or font size.
2. Events are ______________ like clicking a button etc.
3. To add events in App Lab you need to use a new block called __________.
4. The ________________ block allows you to need to add sound to your app.
Q: True False.
a. To add images to your elements you can just use the setProperty () block. ___________
b. The setProperty () block changes the look of the events on your screen.____________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
Q: Define the term Event Handling?
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________
___________________________________________________________________