Exam PCAP All QuestionsBrowse all questions from this exam
Question 6

What is the output of the following piece of code?

    Correct Answer: C

    B

Discussion
rocky48Option: B

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

DrMKGOption: C

NO correct anwer Correct answer is ant"bat"camel

DinshaOption: B

Answer B

Administrator_Of_Silly_WalksOption: B

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

Ello2023Option: D

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

varshu_0708Option: C

the answer is : ant"bat"camel

naveenbv80Option: C

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

andr3

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

N9Option: B

ant"bat"camel

666_mOption: C

Correct answer is C

DempsdawgOption: D

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

Chandrakant123

Can someone share the entire dump?

beshaOption: B

ant"bat"camel

macxszOption: B

Answer is B: B. ant"bat"camel

TheNetworkStudentOption: B

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

techdawgsOption: C

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

FarukhJamalOption: B

Ant"Bat'Camel Answer is B.