GIAC GPYC - GIAC Python Coder Exam

Question #11 (Topic: Single Topic)
What happens if a programmer fails to build exception handling into a program, and the program encounters an unexpected error condition?
A. The interpreter will ignore the error and move to the next line. B. The application will print a warning to the console and continue to the end C. The computer will ג€fuzzג€ input until it finds one that generates no error D. The application will terminate immediately or after resources are exhausted
Answer: D
Question #12 (Topic: Single Topic)
Review the following Python 3 code.

Which input would generate the response `Thank You` in the output of this program?
A. 539 B. 4a6e C. (52-4) D. three
Answer: A
Question #13 (Topic: Single Topic)
What it the output of the following program when executed with the Python Interpreter?

A. SyntaxError: invalid syntax B. 25 C. 20 D. 15
Answer: C
Question #14 (Topic: Single Topic)
After calling a subprocess in a Python program, the program returns an error code of `0`. What does this indicate?
A. The subprocess did not run B. The subprocess terminated with no errors C. The subprocess entered an infinite loop condition D. The subprocess encountered a race condition
Answer: B
Question #15 (Topic: Single Topic)
What is the output of the following command typed in Python interactive mode?
>>> print(`and` in `And now for something completely different`)
A. SyntaxError: invalid syntax B. True C. False
Answer: C
Download Exam
Page: 3 / 15
Total 73 questions