Completed
test run c8
Questions From This Challenge
Q1mcq1 mark
Which SQL command is used to remove a table completely from a database?
DELETE
DROP ✓
REMOVE
CLEAR
Q2output1 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
12Q3mcq1 mark
Which Python function is used to open a file for reading?
read()
open() ✓
file()
input()
Q4output1 mark
What will be the output of the following Python code?
numbers = [10, 20, 30, 40] numbers.pop(1) numbers.append(50) print(numbers)
Correct output:
[10, 30, 40, 50]Q5output1 mark
What will be the output of the following Python code?
def greet(name):
message = "Hello " + name
return message
print(greet("KVCoders"))
Correct output:
Hello KVCoders