Explanation: format function returns a string.
Problem Solving and Python Programming MCQs | Page - 8
Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Explanation: cannot concatenate str and int objects.
Explanation: execute in the shell.
Explanation: ascii value of b is one more than a. hence the output of this code is 98-97, which is equal to 1.
Explanation: str is used to represent strings in python.
Explanation: the number is printed as it is.
Explanation: .2 specifies the precision.
Explanation: the symbol % is used to represent the result of an expression as a percentage.
Explanation: the string has only letters and digits.
Explanation: hexadecimal digits aren’t considered as digits (a-f).
Jump to