霹雳怡保培南独立中学 SM POI LAM (SUWA) IPOH SECOND MONTHLY TEST 2021 COMPUTER STUDIES DATE: TIME : 5 AUGUST 2021 0905 - 1005 (60 minutes) NAME:______________________ REG NO:_________________ CLASS:J3 ( AI / LI / PI / HE / ZI ) READ THESE INSTRUCTIONS FIRST Write your name, class and student registration number in the spaces provided. Do not use staples, paper clips, highlighters, glue or correction fluid. Answer all questions and write down the answers on the spaces provided on the question paper. Section A: 50% Section B: 20% Section C: 30% Do Not Turn This Page Until You Are Told To Do So This paper consists of 7 printed pages including this cover page Prepared by : ………………….. (A.JEEVA SUSHMA) Checked by: ………………….. (LEOW SOOK WAN) 1
Section A: Answer the following questions by choosing the correct answers (50%). 1. A ______ is a special kind of variable. A. element B. list C. value D. data 2. Each item in a ________ is called __________. A. value; data B. data; value C. element, list D. list; element 3. __________ means add to the end. A. Starter B. Append C. Syntax D. Procedure 4. An Append command adds an element to the ______ of a list. A. end B. beginning C. middle D. starting 5. Python normally will show _______ message. A. retrieved B. wrong C. error D. mistake 6. A number is called _______ in Python. A. index B. area C. process D. flow 7. We can enter a command to find a value and store it as a _________. A. data B. data C. algorithn D. variable 2
8. Condition-controlled loop in Python refers to a ______ loop. A. then B. while C. as D. for 9. Counter-controlled loop in Python refers to ______ loop. A. while B. then C. for D. as 10. We add lines to program to print single element, with the index number chosen by _____. A. Python B. system C. machine D. user 11. Index shows the ______ of element in a list. A. position B. place C. location D. error 12. If _____ module to program, then can use extra Python commands made by programmers. A. export B. import C. library D. data 13. ________ means any file that stores Python code. A. machine B. loop C. index D. modue 14. Code ________ is a collection of useful code. A. import B. index C. storage D. library 3
15. When can you use extra Python commands? A. If you import a module to your program B. If you export a module to your program C. If you import a library to your program D. If you export a library to your program 16. Procedure is a collection of lines of ______. A. files B. codes C. modules D. commands 17. A _________ is a value passed from the main program to the procedure. A. context B. number C. module D. parameter 18. Improved code uses ________ to structure the program output. A. lists B. lines C. elements D. index 19. If programmers want to use code in their program, they must _______ the_________. A. procedure; request B. request; procedure C. procedure; call D. call; procedure 20. When _______ procedure, enter the name of the procedure in your code. A. attach B. define C. convert D. call 21. _______ variable is a variable that is initialised inside a procedure. A. local B. foreign C. range D. different 4
22. In some procedures, the brackets hold a __________. A. code B. command C. control D. parameter 23. _________ is a value passed from a program to a procedure. A. command B. parameter C. code D. data 24. There could be several ________ connected to a computer. A. storage B. compartments C. data D. partitions 25. Inside the computer, the instruction is in ________. A. digits B. numbers C. text D. binary Section B: Fill in the blanks. (20%). 1. Run the program and check the contents of the t____ file. 2. Main memory is e__________. 3. Adding extra lines to the program will s_____ text into a list. 4. In Python, condition-controlled loops start with the word w_______. 5. Every storage location is divided into f_____. 6. C_____ normally will open a text file. 7. Loop structure will c______ through element. 8. Python has t_____ variables. 9. M________ means creating an object that resembles a real object in all terms. 10. When you d______ procedure, you give it a name. 5
Section C: Answer the following questions (each question carries 3 marks) (30%). 1. Define Python by giving brief explanation. 2. Explain briefly difference between list and element. 3. State 3 advantages of using Python. 4. What is variable and how does it affect a program? 5. There are three ways to install Python. List them out. 6. Give two disadvantages of using Python. 7. Why is Python considered to be insecure? 8. Name three big organizations that use Python. 9. Python has libraries installed. State three libraries commonly used. 10. What does design issues mean when it comes to Python? 6
霹雳怡保培南独立中学 SM POI LAM (SUWA) IPOH SECOND MONTHLY TEST 2021 COMPUTER STUDIES Student Name:________________ Student No.:____________ Class: ________ Section A Answer in the spaces provided (30%). 1. 6. 11. 16. 21. 26. 2. 7. 12. 17. 22, 27. 3. 8. 13. 18. 23. 28. 4. 9. 14. 19. 24. 29. 5. 10. 15. 20. 25. 30. Section B Answer in the spaces provided. (20%). 1. 3. 5. 7. 9. 2. 4. 6. 8. 10. Section C Answer in the spaces provided (50%). 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 7