PCAP Exam QuestionsBrowse all questions from this exam

PCAP Exam - Question 6


What is the output of the following piece of code?

Show Answer
Correct Answer: B

B

Discussion

16 comments
Sign in to comment
rocky48Option: B
Mar 6, 2022

Answer :- >>> a='ant' >>> b="bat" >>> c='camel' >>> print(a,b,c,sep='"') ant"bat"camel

DinshaOption: B
Mar 8, 2023

Answer B

DrMKGOption: C
May 24, 2023

NO correct anwer Correct answer is ant"bat"camel

666_mOption: C
May 5, 2022

Correct answer is C

N9Option: B
Sep 3, 2022

ant"bat"camel

naveenbv80Option: C
Dec 2, 2022

a='ant' b='bat' c='camel' print(a,b,c,sep='"') Answer is ant"bat"camel

andr3
Feb 20, 2023

did you take exam recently if so - is this dump still valid ?

varshu_0708Option: C
May 9, 2023

the answer is : ant"bat"camel

Ello2023Option: D
May 10, 2023

D. The sep="" is used to separate but because there is nothing in the speech marks the a, b, c variables will be printed together antbatcamel

Administrator_Of_Silly_WalksOption: B
Jul 11, 2023

I know that B is technically the right answer, but what's with those weird symbols where the quotation marks should be?

FarukhJamalOption: B
Sep 28, 2021

Ant"Bat'Camel Answer is B.

techdawgsOption: C
Dec 4, 2021

I get C every time. Whether with single or double-quotes.

TheNetworkStudentOption: B
Mar 5, 2022

ant"bat"camel is correct, it's B

macxszOption: B
May 3, 2022

Answer is B: B. ant"bat"camel

beshaOption: B
Jul 2, 2022

ant"bat"camel

Chandrakant123
Jul 29, 2023

Can someone share the entire dump?

DempsdawgOption: D
Mar 21, 2024

I hate this one but the answer is D. Its very weird but the correct answer is ant"bat"camel