Untitled Document - Multiple Choice Questions
Document Details
Uploaded by Deleted User
Tags
Related
Summary
This document appears to be a collection of multiple-choice questions, enumerations, identification questions, and coding exercises. It focuses on programming concepts, likely intended for student practice.
Full Transcript
**Multiple Choice Questions** (20 items) 1. - - - - 2. - - - - 3. - - - - 4. - - - - 5. - - - - 6. - - - - 7. - - - - 8. - - - - 9. - - - - 10. - - - - 11. - - - - 12. - - -...
**Multiple Choice Questions** (20 items) 1. - - - - 2. - - - - 3. - - - - 4. - - - - 5. - - - - 6. - - - - 7. - - - - 8. - - - - 9. - - - - 10. - - - - 11. - - - - 12. - - - - 13. - - - - 14. - - - - 15. - - - - 16. - - - - 17. - - - - 18. - - - - 19. - - - - 20. - - - - **Enumeration** (20 items) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. **Identification** (20 items) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Complete the Code (10 items) ---------------------------- 1. python def multiply(a, b): return a \* \_\_\_\_ 2. java public int add(int x, int y) { return x + \_\_; } 3. python for i in range(10): print(i) \_\_\_\_ 4. javascript function square(num) { return num \* \_\_\_\_; } 5. python squares = \[x\*\*2 for x in range(10) if x % \_\_\_\_ == 0\] Code Translation (10 items) --------------------------- 1. python def greet(name): print(\"Hello, \" + name) greet(\"Alice\") 2. javascript function add(a, b) { return a + b; } 3. python for i in range(5): print(i) 4. java public class Main { public static void main(String\[\] args) { System.out.println(\"Hello World\"); } } 5. python my\_list = \[1, 2, 3\] my\_list.append(4)