Baixe o app para aproveitar ainda mais
Prévia do material em texto
PCEP-30-02 Dumps 1. Which of the following items are present in the function header? A. function name B. parameter list C. function name and parameter list D. return value Answer: C Python Institute PCEP-30-02 Dumps 2. What do you call a file containing a program written in a high-level programming language? A. A target file B. A code file C. A source file D. A machine file Answer: C Python Institute PCEP-30-02 Dumps 3. Which of the following sentences correctly describes the output of the below Python code? data = [4, 2, 3, 2, 1] res = data[0] for d in data: if d < res: res = d print(res) A. res is the largest number in the list. B. None of the above. C. res is the average of all the number in the list. D. res is the smallest number in the list. E. res is the sum of all the number in the list. Answer: D Python Institute PCEP-30-02 Dumps 4. How did Python, the programming language, get its name? A. Guido van Roddum named it to honor Python of Catana, a dramatic poet of the time of Alexander the Grerat B. Guido van Roddum named it after the Pythonidae - a family of large, nonvenomous snakes C. Guido van Roddum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s Answer: C Python Institute PCEP-30-02 Dumps 5. What do you call a file containing a program written in a high-level programming language? A. A target file B. A code file C. A source file D. A machine file Answer: C Python Institute PCEP-30-02 Dumps 6. Python is an example of: A. a machine language B. a high-level programming language C. a natural language Answer: B Python Institute PCEP-30-02 Dumps 7. Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction: my_tuple[1] = my_tuple[1] + my_tuple[0] A. can be executed if and only if the tuple contains at least two elements B. is illegal C. may be illegal if the tuple contains strings D. is fully correct Answer: B Python Institute PCEP-30-02 Dumps 8. Strings in Python are delimited with: A. backslashes (i.e., \) B. double quotes (i.e., ") or single quotes (i.e., ') C. asterisks (i.e., *) D. dollar symbol (i.e., $) Answer: B Python Institute PCEP-30-02 Dumps 9. Which of the approachable except: branches is taken into consideration when an exception occurs? A. The first matching branch. B. The last matching branch. C. Any of the matching branches. Answer: A Python Institute PCEP-30-02 Dumps 10. What will happen when you attempt to run the following code? print(Hello, World!) A. The code will raise the SyntaxError exception. B. The code will raise the TypeError exception. C. The code will raise the ValueError exception. D. The code will print Hello, World! to the console. E. The code will raise the AttributeError exception. Answer: A Python Institute PCEP-30-02 Dumps
Compartilhar