Software Engineer Interview Quiz

Welcome to your Software Engineer Interview Quiz 25

Click Next to start the MCQ Test. Please contact Admin if any issue arose

Full Name
Mobile Number
Email Address
Expected Salary (in BDT)
1. A database needs to be migrated to a new server with minimal downtime. What method is best?
2. A database has very large tables that are rarely updated but frequently read. How can you minimize the impact of long running read queries?
3. A database stores JSON data representing product configurations. How can you efficiently query and extract specific values from the JSON data?
4. A SaaS application's database uses a multi-tenant architecture. Each tenant's data is logically separated, but all tenants share the same database instance. How can you ensure that one tenant's heavy queries don't impact the performance of other tenants?
5. A database is experiencing high CPU usage. How can you determine if it is due to inefficient queries?
6. What is the output of the following Python code?

myList = ['a', 'b', 'c', 'd', 'e']
del myList[1:3]
print(myList)

7. Which sorting algorithm generally performs the best (in terms of average-case time complexity) when sorting the following array in ascending order?

      arr = [9, 3, 1, 5, 13, 12]

8. What will be the output of the following code?
class Animal:
    def sound(self):
        return "Some sound"
class Dog(Animal):
    def sound(self):
        return "Bark"
class Puppy(Dog):
    pass
p = Puppy()
print(p.sound())
9. What is the time complexity of the below code?
def fib(n, memo=None):
    if memo is None:
        memo = {}
    if n in memo:
        return memo[n]
    if n == 0:
        return 0
    elif n == 1:
        return 1
    memo[n] = fib(n-1, memo) + fib(n-2, memo)
    return memo[n]

n = 10
print(f"Fibonacci of {n} is: {fib(n)}")
10. What is the output of the following code?
def func(x):
    if x == 0:
        return 0
    return x + func(x - 1)
print(func(5))
11. Which Python decorator is used to define a class-based view in Django?
12. Which Django REST framework class is used to create a read-only API endpoint?
13. What is the purpose of the @action decorator in Django REST framework?
14. What is the Python equivalent of PHP's array_merge?
15. What is the output of the following code?
x = [1, 2, 3]
y = x
y.append(4)
z = x +y
16. Which data structure follows the Last-In-First-Out (LIFO) principle?
17. What is the primary purpose of a hash table?
18. What is the main purpose of a B-tree?
19. Which data structure is best for implementing a priority queue?
20. What does the {% extends %} tag do in Django templates?
21. How does one create a custom Django management command?
22. What is the purpose of the Django cache framework?
23. What is the purpose of the GROUP BY clause in SQL?
24. Which class-based view in Django REST Framework is used for read-write model instances?
25. What is the primary purpose of a Django REST Framework Router?
26. What does the len() function return?
27. What is the purpose of the with statement?
28. What will be the output of the following code?

nums = [1, 2, 3, 4]

squared = list(map(lambda x: x**2 if x % 2 == 0 else x, nums))

print(squared)

29. How do you read a file in Python?
30. Which method removes and returns the last element from a list?

Leave a Reply

Your email address will not be published.