Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCPP-32-101 Topic 1 Question 20 Discussion

Actual exam question for Python Institute's PCPP-32-101 exam
Question #: 20
Topic #: 1
[All PCPP-32-101 Questions]

Select the true statements about the sqlite3 module. (Select two answers.)

Show Suggested Answer Hide Answer
Suggested Answer: A, D

ConfigParser is a built-in library in Python that allows you to read and write configuration files. The read method is used to read the configuration file which can be in any of the supported file formats, such as INI, YAML, and JSON. The read_dict method is used to read the configuration from a Python dictionary. The read_conf and read_str options are not valid methods in the ConfigParser module.

Therefore, the correct options to load a configuration using ConfigParser are A. read and D. read_string.


Contribute your Thoughts:

Pamella
1 days ago
Oh man, I was totally going to pick B) about executing multiple queries at once. That would be so convenient, but I guess it's not true for the sqlite3 module. At least I know C) and D) are correct now.
upvoted 0 times
...
Heike
7 days ago
I'm not sure, but I think A and C make sense because fetchalt returns None and execute is provided by Cursor class.
upvoted 0 times
...
Shalon
9 days ago
I'm pretty sure the correct answers are C) and D). The execute method is definitely from the Cursor class, and the fetchone method returns None when there are no more rows to fetch.
upvoted 0 times
...
Soledad
11 days ago
I disagree, I believe the true statements are B and D.
upvoted 0 times
...
Lisha
12 days ago
I think the true statements are A and C.
upvoted 0 times
...

Save Cancel