Completed
test
Questions From This Challenge
Q1mcq1 mark
Which SQL clause is used to arrange the records returned by a query in ascending or descending order?
GROUP BY
ORDER BY ✓
SORT BY
ARRANGE BY
Q2output1 mark
What will be the output of the following Python code?
numbers = [2, 4, 6, 8]
result = 0
for n in numbers:
if n > 4:
result += n
print(result)
Correct output:
14Q3mcq1 mark
Which Python data structure stores elements as key-value pairs?
List
Tuple
Dictionary ✓
Set
Q4output1 mark
What will be the output of the following Python code?
def modify(values):
values.append(50)
values[0] = 100
data = [10, 20, 30]
modify(data)
print(data)
Correct output:
[100, 20, 30, 50]