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 4 discussion

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

The following expression -
is:

  • A. equal to 1
  • B. invalid
  • C. equal to 2
  • D. equal to -1
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Dempsdawg
8 months, 1 week ago
In a mathamatical standpoint the equation is written as 1+(-2) with on a scale it will look like: -3 --------------- -2 -------------- -1 ------------- 0 ------------- 1 ----------------- 2 ------------------------- 3 |------------------| +1
upvoted 1 times
Dempsdawg
8 months, 1 week ago
In a mathamatical standpoint the equation is written as 1+(-2) with on a scale it will look like: -3 ---- -2 ---- -1 ---- 0 ---- 1 ---- 2 ---- 3 |--------| +1
upvoted 1 times
...
...
Bere
1 year, 1 month ago
Selected Answer: D
Mathematically, the expression can be thought of as: 1+(−2) When you add a negative number, it's the same as subtracting its absolute value. So the above expression becomes: 1−2 Which equals -1. Therefore, the output of 1+-2 is -1.
upvoted 1 times
...
JYKL88
1 year, 2 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
devadhar
1 year, 2 months ago
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
upvoted 1 times
...
mplopez
1 year, 4 months ago
Selected Answer: D
The answer is -1
upvoted 1 times
...
CristianCruz
1 year, 4 months ago
Selected Answer: D
answer is D
upvoted 1 times
...
DrMKG
1 year, 6 months ago
ANSWER IS -1
upvoted 1 times
...
AZ_Guru_Wannabe
1 year, 8 months ago
So just a basic math question?
upvoted 1 times
...
Dinsha
1 year, 8 months ago
Selected Answer: D
Answer -1
upvoted 1 times
...
zaxxy
2 years, 6 months ago
Selected Answer: D
In [48]: 1+-2 Out[48]: -1
upvoted 1 times
...
macxsz
2 years, 7 months ago
1+-2 = -1
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 ...