
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































SECTION 1: PYTHON BASICS, SHELL, AND IDE (Questions 1–25)
C. Runs Python scripts D. Creates virtual environments Answer: B Explanation: pip allows you to install and manage additional packages from the Python Package Index (PyPI) or other sources.
C. A type of IDE D. A syntax error Answer: A Explanation: The Python Standard Library is a collection of modules (like math, random, calendar) included with every Python installation.
Explanation: // is floor division, which returns the integer quotient. 10 // 3 = 3.
B. False C. TrueFalse D. Error Answer: A Explanation: or returns True if at least one operand is True.
SECTION 3: INPUT, OUTPUT, AND STRINGS (Questions 56–85)
Answer: A Explanation: find() returns the index of the first occurrence of the substring; the first 'l' is at index 2.
SECTION 4: IF STATEMENTS AND CONDITIONALS (Questions 86–110)
Explanation: Relational operators include >, <, >=, <=, ==, and !=.
A. A B. B C. C D. A and B
D. Error Answer: A Explanation: Chained comparisons evaluate to True if all individual comparisons are True.
A. Even B. Divisible by 3