Rajasthan Computer Teacher Night Mock Test - Day 1

Rajasthan Computer Teacher Night Mock Test - Day 1

1. In an ER model, an entity must be:

2. A simple attribute is:

3. A composite attribute example:

4. Searching for an element in an unsorted array of size n: O(?)

5. Merge two sorted arrays of size n and m using two pointers: O(?)

6. Two-pointer approach to find pair with sum = k in sorted array: O(?)

7. Primary key must be:

8. Candidate key is:

9. Accessing the 5th element in an array of size n: O(?)

10. Reverse an array in-place of size n: O(?)

11. Searching in rotated sorted array using binary search: O(?)

12. A recursive relationship in ER model refers to:

13. Prefix sum query sum[l..r] after precompute: O(?)

14. Max element in a sorted array: O(?)

15. Merge k sorted arrays each of size n using min-heap: O(?)

16. Partial key exists in:

17. Rotate array of size n by k positions (naive shift by 1): O(?)

18. Maximum element in unsorted array using linear scan: O(?)

19. Binary search in sorted array of size n: O(?)

20. A surrogate key is: