Company: DIT intern hiring test
Difficulty: medium
DIT Intern Hiring Test - MongoDB and Programming Fundamentals (MCQ Set) This set is from the DIT intern hiring online assessment. It mixes a Python loop-tracing question, a system-design scenario question on integrating a smart city platform, and four MongoDB questions covering database and collection creation, query output with sorting and limiting, index selection for query optimization, and general query-method behaviour. Unless a question says otherwise, pick exactly one option. --- Question 1 - Value of 'a' at the End of the Loop What is the value of a at the end of the loop? a = 0 for b in range(0,10,2): a += b + 1 --- Question 2 - Integration Optimization In a smart city project, the system manages various functions like urban services, autonomous vehicles, drone deliveries, health monitoring, and AI-driven crime prediction. Traffic management covers both vehicles and drones. There are also energy tracking features, including charging stations for electric vehicles and drones. T