Questions – Exam Papers – Computer Sir Ki Class


Lost your password?

Don't have an account ?
Register (It's FREE) ×

Question Typewise Collection-"Program Writing" Questions - Exam Papers (Python) No. of Q.2
Q.1   Exam - CBSE12A-2018/B04B/2

Write a method in python to read lines from a text file INDIA.TXT, to find and display the occurrence of the word “India”.
For example:
If the content of the file is

“India is the fastest growing economy. 
India is looking for more investments around the globe.
The whole world is looking at India as a great market. 
Most of the Indians can foresee the heights that India is
capable of reaching.”

The output should be 4

Q.2   Exam - CBSE12A-2018/B03E/2

Evaluate the following Postfix notation of expression: