Differentiate between 'w' and 'a' file modes in Python.
\[ \begin{array}{|c|c|} \hline \textbf{File Mode} & \textbf{Description} \\ \hline 'w' & Opens the file for writing. If the file exists, its content is erased. \\ 'a' & Opens the file for appending. Data is added to the end of the file. \\ \hline \end{array} \]
The SELECT statement when combined with \(\_\_\_\_\_\_\) clause, returns records without repetition.
In SQL, the aggregate function which will display the cardinality of the table is \(\_\_\_\_\_\).
myStr = "MISSISSIPPI" print(myStr[:4] + "#" + myStr[-5:])
Read the following characteristics of retail trading carefully and choose the correct option:
I. This is concerned with the sale of goods directly to the consumers.
II. Most of the retail trading takes place in fixed establishments or stores.
III. It is formed by many middlemen, traders, and suppliers.
IV. Hawkers, street peddling, automatic vending machines, etc., are its examples.
Read the programmes related to the proposed Bharatmala umbrella scheme carefully and choose the correct option:
I. Backward areas, religious and tourist places connectivity programme
2. To interconnect the four metropolitan cities of the country
3. To develop State roads in adjoining coastal areas
4. To connect non-major ports in coastal states