exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 93 discussion

Actual exam question from CompTIA's PT0-002
Question #: 93
Topic #: 1
[All PT0-002 Questions]

Which of the following expressions in Python increase a variable val by one? (Choose two.)

  • A. val++
  • B. +val
  • C. val=(val+1)
  • D. ++val
  • E. val=val++
  • F. val+=1
Show Suggested Answer Hide Answer
Suggested Answer: CF 🗳️

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
Gabuu
3 weeks, 3 days ago
Selected Answer: CF
Correct answer
upvoted 1 times
...
fuzzyguzzy
9 months, 1 week ago
Selected Answer: CF
C & F are correct
upvoted 1 times
...
[Removed]
1 year, 6 months ago
Selected Answer: CF
C & F. The only ones that say + 1 lol.
upvoted 1 times
...
kloug
2 years, 3 months ago
correct
upvoted 1 times
...
[Removed]
2 years, 3 months ago
Correct answer C and F 100%
upvoted 1 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 ...