Hi I need 5 questions - 3 Multiple Choice for each qustion . The questions shoul
ID: 3936431 • Letter: H
Question
Hi I need 5 questions - 3 Multiple Choice for each qustion . The questions should be in the form of presenting code that the user needs to solve. Solve in the sense of "What is X equal to after this code runs?", "What is printed after this code is run?", "What user entry (numeric) will get the program to display...?" Include For Loops, for x in range(3), for x in [23,33,44], Variables and their mutability, Math operations (and Order of Operations),If Statements,Relational Operators, While Loops. In those 5 puesstion. Your answers will need to have the correct answer identified and you need an explanation as to why that answer is correct.Do not create easy questions. Challenge the reader. ### Use Python Coding Only ###
Example :
Explanation / Answer
1.
a) a B C D
b) a b c d
c) A B C D
d) error
Answer: (b) Changes do not happen in-place, rather a new instance of the string is returned.
2. You can perform mathematical operation on String?
a) True
b) False
Answer: (b) You can’t perform mathematical operation on string even if string looks like integers.
a) A
b) Daman
c) Error
d) n
Answer: (d)
4.
a) a
b) bc
c) bca
d) abc
answer: (d) + operator is concatenation operator.
5. What is the maximum possible length of an identifier?
a) 31 characters
b) 63 characters
c) 79 characters
d) none of the mentioned
answer: (d) Identifiers can be of any length.