quiz_result (1)
quiz_result (1)
Quiz Result
Wrong/Skipped
Right Answer
1. Is it true to say that Python strings are considered mutable, allowing their contents to be modified after
creation?
Description : Python strings are considered immutable, meaning that their contents cannot be changed
after they are created. Any attempt to modify a string results in the creation of a new string.
Page 1 of 4
Question Reference From : Python Strings
Description : In Python, the if-else statement is structured using the if keyword followed by a condition.
The block of code to be executed is indented under the if statement, and the alternative block of code for
the else statement is indented similarly.
6. Which method of a stack adds a new element to the end of the stack?
Description : The Push() method in a stack adds a new element to the end of the stack, maintaining the Last
In First Out (LIFO) order.
Page 2 of 4
8. What is a notable characteristic of Python functions that contributes to code reusability and better
organization?"
Your Answer : Functions allow for code reusability and better organization
Description : Functions in Python enable code reusability and help in organizing code, making it more
manageable and easier to maintain.
Description : Strings in Python are typically defined by enclosing a character or a sequence of characters in
single, double, or triple quotations.
Your Answer : if
Description : The if keyword is used to start a conditional statement in Python, which allows the execution
of a block of code based on the evaluation of a specified condition.
Page 3 of 4
15. What is the output of the code? True = False While True : Print(True) Break
Page 4 of 4