Q41easyWhy are Strings often Immutable in modern languages like Java?ABecause memory cannot store letters.BTo make them slower.CTo prevent users from typing.DTo allow String Pooling, improve security, and ensure thread-safety.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q42mediumYou are given an unsorted dataset of 1,000,000 records. You need to search for a specific record only once. Which strategy is most time-efficient?APerform a Linear Search O(N).BSort the data O(N log N) and then use Binary Search O(log N).CUse Interpolation Search.DConvert the data to a Binary Search Tree.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q43hardSearching for a value in a Binary Search Tree (BST) follows a logic most similar to which searching algorithm?ABinary SearchBJump SearchCInterpolation SearchDLinear SearchCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q44hardWhat happens in a Null Pointer Dereference?AA new object is created.BThe program runs faster.CThe variable is set to 1.DThe program attempts to read from address 0x0 and crashes.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q45easyA "Directed Acyclic Graph" (DAG) is a graph that:AHas no edges.BHas edges pointing in both directions.CIs always a tree.DHas directed edges and contains no cycles.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q46hardWhat is the time complexity of deleting the first element of a standard Array of size N?AO(N)BO(log N)CO(N²)DO(1)Check AnswerReveal Answer & ExplanationDiscuss on Board
Q47hardWhat is the primary purpose of Asymptotic Analysis in computer science?ATo count the number of variables in a function.BTo determine the physical RAM requirements of a software package.CTo describe how the resource requirements (time/space) of an algorithm grow as the input size increases towards infinity.DTo calculate the exact execution time of a program in milliseconds.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q48mediumHow many comparisons does Insertion Sort perform in the **Best Case** (already sorted array of size N)?AN log NBN - 1C0DN²Check AnswerReveal Answer & ExplanationDiscuss on Board
Q49mediumRadix Sort sorts numbers by processing individual digits. Which sorting algorithm is typically used as the "stable" subroutine for Radix Sort?AQuick SortBSelection SortCCounting SortDBubble SortCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q50hardWhat is the time complexity of the Jump Search algorithm when using the optimal block size of √N?AO(N)BO(√N)CO(log N)DO(1)Check AnswerReveal Answer & ExplanationDiscuss on Board