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

Exam PCAP All Questions

View all questions & answers for the PCAP exam

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 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Valcon_doo_NoviSad
1 year, 1 month ago
Selected Answer: CD
But it would be very unwise to call your variables like that :)
upvoted 1 times
...
Ello2023
1 year, 5 months 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, 7 months ago
for and True as reserved words . Ans : C & D https://realpython.com/lessons/reserved-keywords/
upvoted 1 times
...
dicksonpwc
1 year, 7 months 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, 8 months ago
correct answer should be A and B
upvoted 1 times
noobplayer
1 year, 8 months ago
No these are reserved keywords in Python , you cannot use them as variable name
upvoted 1 times
...
...
macxsz
2 years, 7 months ago
Selected Answer: CD
C. true D. For
upvoted 1 times
...
AtulVSharma
3 years, 1 month 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 ...