A is correct
Python 3.8.10
Type "help", "copyright", "credits" or "license" for more information.
>>> quiz = [
... {
... "question": "Which of these is an standard for port-based NAC",
... "choices": {"a":"802.11x", "b":"802.1x","c": "802.11a", "d": "802.11b"},
... "answer": "b"
... },
... ]
>>> print(quiz[0]['choices']['b'])
802.1x
>>> print(quiz['choices']['b'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list indices must be integers or slices, not str
>>> print(quiz[0]['choices']['b']['802.1x'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: string indices must be integers
>>> print(quiz[0]['questions']['choices']['b'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'questions'
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.300-735 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Ocin
6 months, 1 week ago