Welcome to your M3-R5.1(PYTHON) SET -1
1.
A user-specified value can be assigned to a variable with this function…
2.
For which type of error does the interpreter halts and reports the error but does not execute the program?
3.
What will be the output after the following statements? x = 15 + 35 print(x)
4.
What will be the output after the following statements? x = 5 y = 7 x *= y print(x)
5.
What will be the output after the following statements? x = 3 y = 2 x += y print(x)
6.
The function to display a specified message on the screen is…?
7.
Which of the following is used to initialize multiple variables with a common value?
8.
What is the name of the GUI that comes in-built as an interactive shell with Python?
9.
What will be the output after the following statements? x = 2 * 4 + 7 print(x)
10.
What will be the output after the following statements? x = 3 y = 7 print(x == y)
11.
What will be the data type of x after the following statement if input entered is 18? x = input(‘Enter a number: ‘)
13.
What will be the output after the following statements? x = 25 y = 15 x – = y print(x)
14.
Which of the following is an assignment operator in Python?
15.
What will be the output after the following statements? x = 83 y = 57 print(x > y)
16.
Python files are saved with the extension as…?
17.
Comments in Python start with…?
18.
What is the data type of x after the following statement? x = [‘Today’, ‘Tomorrow’, ‘Yesterday’]
19.
What will be the output after the following statements? x = [‘Today’, ‘Tomorrow’, ‘Yesterday’] y = x[1] print(y)
20.
What will be the value of x, y and z after the following statement? x = y = z = 300