Explanation: there are no uppercase letters.
Problem Solving and Python Programming MCQs | Page - 9
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: all the character are numeric.
Explanation: the character . is not a numeric character.
Explanation: all those characters are printable.
Explanation: all occurrences of the first substring are replaced by the second substring.
Explanation: the output is bcdd since no translation is provided for d.
Explanation: zeros are filled in between the first sign and the rest of the string.
Explanation: the function seed is a function which is present in the random module. the functions sqrt and factorial are a part of the math module. the print function is a built-in function which prints a value directly to the system output.
Explanation: the function round is used to round off the given decimal number to the specified decimal places. in this case, the number should be rounded off to two decimal places. hence the output will be 4.57.
Explanation: the function all() returns ‘true’ if any one or more of the elements of the iterable are non zero. in the above case, the values are not iterable, hence an error is thrown.
Jump to