Direction: Choose the correct option
Q1.
Which function is used to read input from the user?
Direction: Choose the correct option
Q2.
What does `input()` return by default?
Direction: Choose the correct option
Q3.
How do you print multiple items on the same line?
Direction: Choose the correct option
Q4.
What is the default separator in `print()`?
Direction: Choose the correct option
Q5.
How can you change the separator in `print()`?
Direction: Choose the correct option
Q6.
How can you prevent `print()` from adding a newline at the end?
Direction: Choose the correct option
Q7.
What does `print('a', 'b', sep='-')` output?
Direction: Choose the correct option
Q8.
Which function converts a string to an integer?
Direction: Choose the correct option
Q9.
Given `name = input()`, if user enters 'Alice', what is the value of `name`?
Direction: Choose the correct option
Q10.
How do you write output to a file instead of the console?
