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

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

How many lines does the following snippet output?

  • A. three
  • B. one
  • C. two
  • D. four
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Tarun1
Highly Voted 4 years, 1 month ago
its one line
upvoted 26 times
...
Avidulam
Highly Voted 4 years, 1 month ago
It prints only in one line
upvoted 11 times
...
Dempsdawg
Most Recent 1 month ago
Selected Answer: B
Answer is B
upvoted 1 times
...
peypa
1 month, 1 week ago
Selected Answer: C
range Starts at 1 and ends at 2
upvoted 2 times
...
mplopez
9 months, 1 week ago
It only works the for loop, the else part is no needed in this case because you didn't have any way to take.
upvoted 2 times
...
mplopez
9 months, 1 week ago
Selected Answer: A
The correct answer is A. The snippet returns ***.
upvoted 3 times
...
CristianCruz
9 months, 2 weeks ago
Selected Answer: D
answer is D
upvoted 1 times
...
Dinsha
1 year, 1 month ago
Selected Answer: B
The * will print in one line
upvoted 1 times
...
spiderking123
1 year, 1 month ago
Selected Answer: B
Answer is one line
upvoted 1 times
...
naveenbv80
1 year, 4 months ago
for i in range (1,3): print("*", end="") else: print("*") Answer is ***
upvoted 2 times
...
N9
1 year, 7 months ago
Selected Answer: B
3 stars in one line
upvoted 4 times
...
besha
1 year, 9 months ago
Selected Answer: B
one line and 3 stars
upvoted 1 times
...
Suvabrata
1 year, 10 months ago
A is correct...It will print ***
upvoted 1 times
...
666_m
1 year, 11 months ago
A is correct
upvoted 1 times
...
macxsz
1 year, 11 months ago
just 1 line B. one
upvoted 1 times
...
japimil
2 years ago
Selected Answer: B
Only one line
upvoted 1 times
...
evmky
2 years, 1 month ago
Selected Answer: B
I got one line when I ran it
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 ...