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

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

And operator able to perform bitwise shifts is coded as (Choose two.)

  • A. --
  • B. ++
  • C. <<
  • D. >>
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
Bere
1 year, 1 month ago
Selected Answer: CD
x = 8 # 8 in Binary: 1000 y = x >> 2 # Right shift by 2 positions: 0010 (in binary) which is 2 in decimal print(y) # Output: 2 x = 4 # 4 in Binary: 0100 y = x << 2 # Left shift by 2 positions: 10000 (in binary) which is 16 in decimal print(y) # Output: 16
upvoted 2 times
...
saturn_sam
1 year, 2 months ago
Selected Answer: CD
C and D
upvoted 1 times
...
mplopez
1 year, 4 months ago
Selected Answer: CD
The answers are C and D.
upvoted 1 times
...
DrMKG
1 year, 6 months ago
Answer is C,D
upvoted 1 times
...
Dinsha
1 year, 8 months ago
Selected Answer: CD
C. << d. >>
upvoted 1 times
...
zaxxy
2 years, 6 months ago
Selected Answer: CD
C. << D. >>
upvoted 2 times
...
macxsz
2 years, 7 months ago
C. << D. >>
upvoted 1 times
...
chafikislam
2 years, 8 months ago
>> right shift between integer value (division by 2) <<left shift (multiplication by 2)
upvoted 1 times
...
Andresfv
2 years, 8 months ago
>>Desplazamiento a la derecha bit a bit << Desplazamiento a la izquierda bit a bit
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 ...