Q. If the tile 'poemBTH.txt' contains the following poem (by Paramhansa Yogananda):
God made the Earth;
Man made confusing countries.
And their fancy-frozen boundaries.
But with unfound boundless Love
I behold the borderland of my India
Expanding into the world.
Hail, mother of religions, lotus, scenic beauty, and sages!

• Then what outputs will be posted by both the code fragments given in question 1.

Answer = 

 

Output by (a) of Question 1 is that it will print all data of 'poemBTH.txt' in another word, it will print full poem.

Output

>>> God made the Earth;

Man made confusing countries.

And their fancy-frozen boundaries.

But with unfound boundless Love

I behold the borderland of my India

Expanding into the world.

Hail, mother of religions, lotus, scenic beauty, and sages!

 

While, Output by (b) of Question 1 is that it will print 100 bytes data of ‘poemBTH.txt’

Output

>>>God made the Earth;

Man made confusing countries.

And their fancy-frozen boundaries.

But with unfou  <

3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. No output in both the code print() statement is not written.

    ReplyDelete
  2. dude spelling mistake in the output is 'confusing' to "confining". confining is the correct one

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post