Computer Science MCQs · Software Engineering Regression testing is performed to: A Check that the user interface looks attractive B Test the system's speed under very heavy load C Confirm changes have not broken old features Correct answer D Estimate the cost of developing new software MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures In a min-heap, the root node always contains: A The median element B The most recent element C The smallest element Correct answer D The largest element MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures What is the worst-case time complexity of quicksort? A O(n log n) B O(n²) Correct answer C O(log n) D O(n) MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures How many edges does a tree with n vertices have? A 2n B n + 1 C n − 1 Correct answer D n MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures By the Master Theorem, what is the solution of T(n) = 2T(n/2) + n? A Θ(log n) B Θ(n) C Θ(n log n) Correct answer D Θ(n²) MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which of these sorting algorithms is stable in its standard form? A Selection sort B Heap sort C Merge sort Correct answer D Quick sort MCQSEXAM Show answer Read explanation
Computer Science MCQs · Algorithms and Data Structures Which data structure is used to implement breadth-first search (BFS) on a graph? A Hash set B Heap C Stack D Queue Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Networks Which of these IPv4 address blocks is reserved for private networks under RFC 1918? A 192.169.0.0/16 B 192.168.0.0/16 Correct answer C 172.32.0.0/16 D 11.0.0.0/8 MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Networks How does TCP establish a connection? A With a three-way handshake: SYN, SYN-ACK, ACK Correct answer B With a four-way FIN and ACK exchange C With a single SYN packet sent by the client D With a two-way exchange: SYN and then ACK MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Networks DNS servers listen for queries on which well-known port? A 110 B 53 Correct answer C 25 D 80 MCQSEXAM Show answer Read explanation
Computer Science MCQs · Computer Networks Which protocol automatically assigns IP addresses to devices on a network? A DHCP Correct answer B SMTP C DNS D ARP MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript A variable declared with let in JavaScript is: A Scoped to the whole enclosing function B Scoped to the nearest enclosing block Correct answer C Always attached to the global object D Hoisted and initialised as undefined MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which array method returns a new array containing the result of calling a function on every element? A map() Correct answer B reduce() C filter() D forEach() MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What does console.log(0.1 + 0.2 === 0.3) print in JavaScript? A true B NaN C false Correct answer D undefined MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript Which JavaScript operator compares both value and type, without type conversion? A === Correct answer B !== C = D == MCQSEXAM Show answer Read explanation
Computer Science MCQs · Javascript What does typeof null return in JavaScript? A "number" B "object" Correct answer C "null" D "undefined" MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems Internal fragmentation is most closely associated with: A Variable-size contiguous partitions B Pure segmentation of memory C Fixed-size partitions or pages Correct answer D Periodic memory compaction MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems Which of these do threads of the same process share? A Nothing; each thread has private memory B Their individual call stacks C Program counter and registers D Code, data and heap memory Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems A semaphore initialised to 1 and used for mutual exclusion is known as a: A Binary semaphore Correct answer B Counting semaphore C Monitor D Condition variable MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems Thrashing in an operating system occurs when: A The disk scheduler serves requests in random order B Two processes wait forever for each other's resources C The system spends more time paging than executing Correct answer D The CPU overheats and lowers its clock speed MCQSEXAM Show answer Read explanation
Computer Science MCQs · Operating Systems Which CPU scheduling algorithm can cause long processes to starve? A First-Come, First-Served B Shortest Job First Correct answer C Round Robin D Priority with aging MCQSEXAM Show answer Read explanation
Computer Science MCQs · C# Which C# access modifier makes a member accessible only within its own assembly? A public B private C protected D internal Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · C# In C#, the expression a ?? b returns: A true if both a and b are null B a if it is not null, otherwise b Correct answer C a and b combined into one string D b if it is not null, otherwise a MCQSEXAM Show answer Read explanation
Computer Science MCQs · C# Which C# keyword declares a local variable whose type is inferred by the compiler at compile time? A auto B object C var Correct answer D dynamic MCQSEXAM Show answer Read explanation
Computer Science MCQs · C# In C#, what is required of a parameter declared with the out keyword? A It is read-only inside the called method B It must be initialised by the caller before the call C It can only be used with value types, not classes D It must be assigned inside the method before returning Correct answer MCQSEXAM Show answer Read explanation