Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PCAP topic 1 question 41 discussion

Actual exam question from Python Institute's PCAP
Question #: 41
Topic #: 1
[All PCAP Questions]

Which of the following words can be used as a variable name? (Choose two.)

  • A. for
  • B. True
  • C. true
  • D. For
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️
Reference:
https://www.pluralsight.com/guides/python-basics-variables-assignment

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Valcon_doo_NoviSad
6 months, 2 weeks ago
Selected Answer: CD
But it would be very unwise to call your variables like that :)
upvoted 1 times
...
Ello2023
10 months, 2 weeks ago
Selected Answer: CD
C&D just like indentation capitalisation can also change the code. True and False are always capital. On the other hand for, and, in etc are lowercase.
upvoted 1 times
...
Arulkumar
1 year ago
for and True as reserved words . Ans : C & D https://realpython.com/lessons/reserved-keywords/
upvoted 1 times
...
dicksonpwc
1 year ago
Correct answer should be A and B Python Reserved Words List - Your Complete Guide There is a restriction while naming identifiers that there are some restricted words that are built-in to Python which cannot be used as an identifier. Python reserved words (also called keywords) a predefined meaning and syntax in the language which Python uses for its syntax and internal processing. In this tutorial, we will discuss what those keywords are. Table of contents Reserved words Keywords Display all keywords Check if the name is included in the reserved word list Closing Thoughts Reserved words in Python Here is the list of all the reserved words in Python. Note - This list may change with different versions of Python. Python 3 has 33 while Python 2 has 30 reserved words. True elif in try and else is while as except lambda with assert finally nonlocal yield break for not class form or continue global pass
upvoted 1 times
...
dicksonpwc
1 year, 1 month ago
correct answer should be A and B
upvoted 1 times
noobplayer
1 year ago
No these are reserved keywords in Python , you cannot use them as variable name
upvoted 1 times
...
...
macxsz
1 year, 11 months ago
Selected Answer: CD
C. true D. For
upvoted 1 times
...
AtulVSharma
2 years, 6 months ago
C and D are correct answers
upvoted 2 times
...
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.

SaveCancel
Loading ...