Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Second Final Examination In ICT 10
November 14-16, 2024
Name: __________________________________________________Score:_________ Grade and Section: _______________________________________Parent’s Signature: __________ EXAMINATION OATH I am a Jeromian. I am a bearer of truth. I will take my examination in full honesty. ______________________ I will not do any form of cheating. Student’s Signature Directions: Read the statement carefully. Choose the best answer, write the CAPITAL LETTER before the number ____1. Who is credited with the development of Python? A. Guido van Rossum B. James Gosling C. Bjarne Stroustrup D. Dennis Ritchie ____2. In what year was Python first released? A. 1989 B. 1991 C. 2000 D. 2005 ____3. Which of the following best describes Python? A. A low-level programming language C. A high-level programming language B. A web development language only D. An operating system ____4. Which language characteristic made Python popular among beginners? A. Complex syntax C. Easy readability and simplicity B. Restricted platform compatibility D. Requires extensive configuration ____5. Which statement is true about Python's influence on modern programming? A. It’s primarily used for system programming only. B. Python is limited to web applications. C. Python's versatility has expanded its use across various domains. D. It has no support for graphical interfaces. _____6. Which of these is NOT a feature of Python? A. Interpreted B. High performance in low-level programming C. Readable syntax D. Supports object-oriented programming _____7. Which of the following makes Python easy to learn for beginners? A. Limited data types C. Clear syntax and readability B. Strong error handling D. Requires special hardware _____8. How does Python’s simplicity help in rapid development? A. By offering extensive built-in libraries B. By using machine language for coding C. By limiting to command-line operations D. By requiring fewer lines of code _____9. Which feature of Python enables it to be used across different fields, like web development and AI? A. Limited data structures B. Large standard library C. Proprietary frameworks D. Incompatible with other languages ____10. Which feature of Python encourages code reuse and efficiency? A. Large codebase requirement B. Supports modular programming through functions C. Complex syntax D. Limited object-oriented capabilities _____11. What is a significant difference between Python 2 and Python 3? A. Python 2 has no object-oriented support. B. Python 3 introduced changes that improved syntax consistency. C. Python 3 is less readable than Python 2. D. Python 2 supports more frameworks than Python 3. _____12. Which version of Python is more widely supported in the industry today? A. Python 1 B. Python 2 C. Python 3 D. Python 4 _____13. What change was introduced in Python 3 regarding division operations? A. Division always returns an integer. C. Division results follow exact values as floats by default. B. Division was removed in Python 3. D. Python 3 does not support complex math operations. _____14. Why was Python 3 introduced despite Python 2’s popularity? A. To make Python proprietary C. To add enhancements for readability and performance B. To focus on web development only D. To discontinue the language _____15. Which statement is true about Python 3 compatibility with Python 2? A. Python 3 is fully compatible with Python 2. B. Some Python 2 code may need modification to run in Python 3. C. Python 3 does not support Python 2 libraries at all. D. Python 3 removed support for object-oriented programming. _____16. Python is commonly used for all of the following EXCEPT: A. Web development B. Data analysis C. Building operating systems D. Artificial intelligence _____17. In which field is Python highly preferred due to its vast libraries for data manipulation? A. Networking B. Data science C. Hardware programming D. Game design _____18. Which Python library is popular for data visualization? A. Flask B. Matplotlib C. Django D. PyGame _____19. Python's simplicity is particularly advantageous in which of the following applications? A. System-level programming B. Rapid prototyping and development C. Low-level memory management D. Hardware integration _____20. Why is Python a good choice for scientific computing? A. Limited computational features B. Extensive support for scientific libraries like NumPy and SciPy C. No support for complex mathematics D. Difficulty in syntax _____21. Where can you download the official Python installer? A. www.python.org B. www.pycharm.com C. www.github.com D.www.stackoverflow.com _____22. Which file format is typically used for Python installers on Windows? A. .zip B. .exe C. .tar D. .apk _____23. After downloading the Python installer, what is the next step to install it? A. Extract the files B. Run the installer file C. Open Python IDLE D. Restart the computer _____24. What is the purpose of downloading an IDE like PyCharm for Python? A. To add additional libraries C. To install Python packages B. To provide a development environment for writing Python code D. To create a graphical user interface _____25. Which statement evaluates the role of PyCharm in Python programming? A. PyCharm is used exclusively for data analysis. B. PyCharm is an IDE that simplifies code writing and debugging in Python. C. PyCharm can only run on Linux. D. PyCharm is a replacement for the Python interpreter. _____26. Which of the following is a required step to install Python on a Windows computer? A. Extract the files from the installer C. Run the installer and select "Add Python to PATH" B. Disable the firewall D. Connect to a VPN _____27. During installation, what does "Add Python to PATH" enable? A. Disabling Python's firewall C. Running Python commands from the command line B. Connecting Python to the internet D. Running Python in a browser _____28. If you encounter errors during installation, what is one solution? A. Restart your computer B. Re-download the installer file C. Install a different version D. Run the installer as an administrator _____29. What is the purpose of setting up a virtual environment in PyCharm after installation? A. To run Python on multiple computers B. To isolate project dependencies C. To enable debugging D. To install all packages globally _____30. Why is it important to verify the Python installation after installing it? A. To ensure it is working correctly B. To access Python documentation C. To install additional libraries D. To activate trial mode _____31. Which part of the PyCharm interface is used to write and edit code? A. Terminal B. Editor window C. Project window D. Toolbar _____32. What feature in PyCharm allows you to execute Python code? A. Debugger B. Run button C. Project manager D. Plugin manager _____33. How can you debug your Python code in PyCharm? A. Use the Terminal C. Use the Debug tool B. Write the code in the Editor window D. Use the Project window _____34. Which PyCharm feature helps in managing multiple projects? A. Editor B. Project explorer C. Debugger D. File menu _____35. Evaluate the usefulness of PyCharm’s debugger for new Python programmers. A. It is not necessary for new programmers. B. It simplifies the process of identifying and correcting code errors. C. It slows down the development process. D. It is only useful for experienced programmers. _____36. How are strings represented in Python? A. Using only uppercase letters B. By enclosing text in quotes C. By using only lowercase letters D. With special symbols only _____37. Which data type in Python is used to represent whole numbers? A. float B. int C. str D. bool _____38. If you want to represent a true/false value in Python, which data type should you use? A. int B. bool C. str D. float ______39. What is the result of the expression 5 + 5.0 in Python? A. 10 B. 10.0 C. 10.5 D. Error ______40. Why is it essential to understand data types in programming? A. To improve hardware compatibility B. To ensure that operations are performed correctly on different types of data C. To save memory D. To increase typing speed _____41. Which of the following is a common data type in Python? A. text B. string C. date D. folder _____42. How do you create a variable in Python? A. By typing "var" before the name B. By assigning a value with an equal sign C. By using parentheses D. By adding a hashtag before the name ______43. What will the following code output? print(10 // 3) A. 3.33 B. 3 C. 10 D. 3.0 ______44. If x = 5 and y = 10, what does x + y equal? A. 15 B. 50 C. 5 D. 10 _____45. Why is it important to use appropriate data types when performing operations? A. To create more variables B. To ensure accuracy and efficiency in calculations C. To reduce typing D. To enable real-time processing _____46. What is the syntax to create a list in Python? A. {1, 2, 3} B. [1, 2, 3] C. (1, 2, 3) D. 1, 2, 3 _____47. What does len([1, 2, 3]) return in Python? A. 3 B. 2 C. 1 D. 0 _____48. How do you add an item to a list in Python? A. list.append(item) B. list.insert(item) C. list.add(item) D. list.push(item) _____49. Which operator is used to check if two values are equal in Python? A. = B. == C. != D. <> _____50. In Python, what will print("Hello " + "World") output? A. HelloWorld B. Hello World C. "Hello " + "World" D. Hello
Modelling and Implementation of Complex Systems: Proceedings of The 6th International Symposium, MISC 2020, Batna, Algeria, October 24 26, 2020 Salim Chikhi All Chapter Instant Download