Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python True or False Questions 1)An object\'s identity can be mutated after its

ID: 3875798 • Letter: P

Question

Python True or False Questions

1)An object's identity can be mutated after its creation. 2)An object's type cannot be mutated after its creation 3)There is no operation that can change the value of an int object. 4)There is no operation that can change the value of a str object 5)There are several operations that can change the value of a list object. 6)There are no operations that can change the identity and type of a float object. 7)The keyword token while is used as a delimiter token. 8)The not token is a keyword token and an identifier token. 9)The identifier token aString is same as the identifier token astring. 10)A white space character in a literal string token marks the end of the token. 11) The indent,dedent and newline tokens do not belong to any token kind.

Explanation / Answer

1)An object's identity can be mutated after its creation
Ans: False.
No,In python object's identity can not be mutated after its creation.


2)An object's type cannot be mutated after its creation.
Ans: True.
Yes,as said earlier object's type cannot be mutated after its creation.

3)There is no operation that can change the value of an int object.
Ans: True.
In Python, there s no operation that can change the value of int,float,str objects.


4)There is no operation that can change the value of an str object.
Ans: True.


5)There are several operations that can change the value of a list object
Ans: True.
Yes,in python we have so many operations to change the value of list object.


6)There is no operation that can change the value of an Float object.
Ans: True.


7)The keyword token while is used as a delimiter token
Ans: True.


8)The not token is a keyword token and an identifier token
Ans: False.

9)The identifier token aString is same as the identifier token astring.
Ans: False,
No,identifier token aString is not same as the identifier token astring.


10)A white space character in a literal string token marks the end of the token.
Ans: False.


11)The indent,dedent and newline tokens do not belong to any token kind.
Ans: True