Which of the following is NOT a characteristic of a database?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following data models represents data as a collection of objects?
Which of the following is NOT a level of data abstraction in a DBMS?
Which of the following is an advantage of the hierarchical data model?
What will be the output of the following Python code snippet?
numbers = [1, 2, 3, 4, 5]
squared_numbers = [num ** 2 for num in numbers]
print(squared_numbers)
What will be the output of the following Python code snippet?
fruits = ['apple', 'banana', 'cherry', 'date']
print(fruits[1:3])
What will be the output of the following Python code snippet?
def greet(name):
print("Hello, " + name + "!")
greet("Alice")
What will be the output of the following Python code snippet?
numbers = [1, 2, 3, 4, 5]
even_numbers = [num for num in numbers if num % 2 == 0]
print(even_numbers)
What will be the output of the following Python code snippet?
numbers = [1, 2, 3, 4, 5]
squared_numbers = [num ** 2 for num in numbers if num % 2 == 0]
print(squared_numbers)
What will be the output of the above code?
numbers = [1, 2, 3, 4, 5]
result = map(lambda x: x * 2, numbers)
print(list(result))
Consider the following Python code snippet:
def add_numbers(a, b):
return a + b
result = add_numbers(2, 3)
print(result)
Consider the following Python code snippet:
def multiply_numbers(a, b=2):
return a * b
result = multiply_numbers(3)
print(result)
What will be the output of the above code?
Consider the following Python code snippet:
def greet(name, greeting="Hello"):
print(greeting + ", " + name + "!")
greet("Alice", "Hi")
What will be the output of the above code?
Consider the following Python code snippet:
def calculate_sum(*numbers):
return sum(numbers)
result = calculate_sum(1, 2, 3, 4, 5)
print(result)
What will be the output of the above code?
75 videos|44 docs
|
75 videos|44 docs
|