Basics of Python – Multiple Choice Questions (MCQs)
-
-
50. What is the output of `print(list(range(1, 5)))`?
-
51. What is the output of `print('hello'.upper())`?
-
52. What is the output of `print('WORLD'.lower())`?
-
53. What is string concatenation in Python?
-
54. What is the output of `print('abc' * 3)`?
-
55. What is string slicing in Python?
-
56. What is the output of `print('example'[2:5])`?
-
57. What is the output of `print('example'[:3])`?
-
58. What is the output of `print('example'[3:])`?
-
59. What is the output of `print('example'[-1])`?
-
60. What is the output of `print('example'[-3:])`?