Exam PCAP All QuestionsBrowse all questions from this exam
Question 115

Which of the following expressions evaluate to True? (Choose two.)

    Correct Answer: B, D

    Expressions 'xYz'.lower() > 'XY' and 121 + 1 == int('1' + 2 * '2') evaluate to True. The first expression compares the lowercase 'xyz' with 'XY', and since 'xyz' comes after 'XY' in lexicographical order, it is True. The second expression checks if 122 is equal to the integer formed by '1' concatenated with '22', which results in 122, making it True.

Discussion
dicksonpwcOptions: BD

answer should be B, D print('8' + '8' !=2*'8') # ans A, False print('xYz'.lower() > 'XY') # ans B, True print(float('3.14')==str('3.''14')) # ans C, False print(121+1 == int('1'+2*'2')) # ans D, True

ivanbicalhoOptions: BD

should be B & D

Dr_Alzuhairy21Options: BD

The correct answer is BD

macxszOptions: BD

B and D

ferminsOptions: BD

print('xYz'.lower() > 'XY') => True print(121 + 1 ==int('1' + 2 * '2')) => True

MallieOptions: BD

print('xYz'.lower() > 'XY') True B & D

NengggOptions: BD

print('8' + '8') -> 88 print(2 * '8') -> 88 so A is False

halyOptions: BD

correct answers

Dav023Options: BD

right ones

MTLEOptions: BD

BD - A would be true if we had ==