Which term is used to describe a single piece of data in a database table?
What does the term "nested loop" refer to in programming?
- A loop that runs infinitely
- A loop with a condition that is never true
- A loop that skips iterations
- A loop inside another loop
How do you remove an element from a Python list by its value?
remove(value)delete(value)discard(value)pop(value)
Which of the following statements is true about the if-elif-else structure?
- Only the
if part is mandatory; elif and else are optional elif must always be followed by an else statementelse must always be followed by an if statement- The
else part is mandatory
Which SQL clause is used to sort the result set in ascending or descending order?
What is the data type of the result of the expression 2.5 + 3 in Python?
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 parameter in the context of a Python function?
- A variable used for counting loops
- A keyword used to end a function
- A value passed into the function
- A reserved word indicating the start of a function
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 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