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
Which term is used to describe a single piece of data in a database table?
What is the correct syntax to declare and initialise a string variable in Python?
str name = "Hello"
var Hello = "name"
var Hello = "name"
name = "Hello"
What will be output when this program is executed?
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 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
What does SQL stand for?
- Simple Query Language
- Sequential Question Language
- Structured Query Language
- Systematic Query Logic
Which SQL clause is used to sort the result set in ascending or descending order?
How do you remove an element from a Python list by its value?
remove(value)
delete(value)
discard(value)
pop(value)
What is the data type of the result of the expression 2.5 + 3
in Python?