Completed
smoke test
Questions From This Challenge
Q1mcq1 mark
Which SQL command is used to remove a table permanently from a database?
DELETE
DROP ✓
REMOVE
TRUNCATE
Q2output1 mark
What will be the output of the following Python code?
x = [10, 20, 30, 40] print(x[1:3])
Correct output:
[20, 30]Q3mcq1 mark
Which Python statement is used to handle an exception?
catch
handle
except ✓
error
Q4output1 mark
What will be the output of the following Python code?
def calculate(a, b=5):
return a * b
print(calculate(4))
print(calculate(4, 3))
Correct output:
20
12Q5mcq1 mark
Which SQL function returns the number of rows in a table?
SUM()
COUNT() ✓
TOTAL()
NUMBER()