Which SQL clause is used to filter records based on a specified condition?
Which of the following methods is used to add an element to the end of a Python list?
add()insert()append()extend()
What is a database?
- A computer program
- An internet browser
- A type of computer hardware
- A collection of related data
Which of the following best describes the purpose of iteration in programming?
- To execute a block of code only if a condition is true
- To execute instructions in a specific order
- To repeat a set of instructions a certain number of times or until a condition is met
- To create reusable code
Which Python function is used to find the maximum value in a list?
max()maximum()find_max()get_max()
What does the modulus operator % do in Python?
- Returns the quotient of a division
- Multiplies two numbers
- Returns the remainder of a division
- Raises a number to a power
What is the purpose of the SQL SELECT statement?
- To insert data into a table
- To delete records from a table
- To retrieve data from a table
- To update existing records in a table
What is the primary purpose of the while loop in programming?
- To define a subprogram
- To create a block of code that always executes
- To perform a specific action for each item in a collection
- To repeat a block of code as long as a condition is true
Which of the following methods is used to concatenate two strings in Python?
In Python, how can you convert a string variable num_str to an integer?
int(num_str)convertToInt(num_str)toInteger(num_str)num_str.toInt()