Class 6 1st As (New)
Class 6 1st As (New)
III. Which of the following is a correct Python syntax to display "Hello, World!"?
A. 13 B. 20 C. 17 D. 14
A. // B. <! -- C # D. /*
A. They provide internet connectivity B. They allow devices to gather data from their environment
C. They store user data D. They display graphics
1
IX. Which of the following is NOT a benefit of using simulators in training?
A. Allows safe practice B. Reduces training costs
C. Provides real-world experience D. Guarantees job placement
A. To make the code run faster B. To visualize the program structure and logic
C. To decorate the code D. To confuse competitors
2. Define the term ‘programming’ and explain the difference between block-based and text-based
programming. (5)
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
3. Write a simple Python program using the print () function to display your name and age. (3)
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
2
5. Explain the importance of decomposing a problem when designing a computer program. Provide
an example. (5)
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
7. Describe how sensors are used in smart devices. Give two examples of such devices. (4)
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
3
9. Draw a simple flowchart that shows the steps to check if a number is even or odd. (4)
4
10. Look at the Python code below. It shows a number of variable storing different pieces of
data: (5+5=10)
Complete the table below, identify the data type for each variable and giving an explanation
of the data type you have chosen.
card_number
balance
address
age