What does the len() function do in Python?
- Returns the logarithm of a number
- Converts a value to lowercase
- Returns the length of a string or list
- Checks if a variable is defined
What is the result of the expression print("5" + "3") in Python?
Which of the following is a correct way to check if two variables, a and b, are equal in value?
What is meant by a local variable?
- A variable defined outside any function
- A variable with a global scope
- A variable that can be accessed from any part of the program
- A variable defined within a function
Which of the following methods is used to concatenate two strings in Python?
What is a list in Python?
- A mathematical operation
- A collection of related data
- A reserved keyword
- A data type
Which Python function is used to find the maximum value in a list?
max()maximum()find_max()get_max()
Which operator is used to repeat a string a specific number of times in Python?
*repeat()iterate()replicate()
Which term is used to describe a single piece of data in a database table?
Which loop structure is used when the number of iterations is known in advance?