Q1easyA developer uses a "Mock Object" during a Unit Test. Why?ATo make the test run on a different server.BTo encrypt the test data.CTo simulate a complex dependency (like a Database or API) so the unit can be tested in isolation.DBecause the real object is too small.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q2hardWhat does Cyclomatic Complexity measure in a piece of code?AHow many developers worked on the file.BThe number of lines of code.CThe number of independent logical paths through the code (IFs, Loops, Cases).DThe memory usage of the function.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q3easyA linter flags a "Dead Code" warning. What does this mean?AThe computer's hardware is failing.BThe code is written in an old language.CThe code can never be reached or executed during the program's run (e.g., code after a return).DThe code contains a virus.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q4easyWhat is Fuzz Testing (Fuzzing)?AProviding massive amounts of random, invalid, or unexpected data to a program to find security vulnerabilities or crashes.BMeasuring the sound the CPU makes.CTesting the user interface colors.DTesting the program with very simple inputs.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q5easyYou see a "Core Dump" file after a C++ program crashes. What does this file contain?AA copy of the source code.BA list of all user passwords.CThe instructions to restart the computer.DA snapshot of the program's memory (RAM) at the exact moment it crashed.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q6easyWhat is the difference between Alpha Testing and Beta Testing?ABeta testing is done before Alpha testing.BAlpha is for mobile; Beta is for web.CAlpha is done by internal employees; Beta is done by a group of real external users.DAlpha testing checks for security; Beta checks for speed.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q7mediumWhich optimization technique involves replacing a function call with the actual body of the function during compilation?ALoop UnrollingBGarbage CollectionCFunction InliningDRecursionCheck AnswerReveal Answer & ExplanationDiscuss on Board
Q8easyWhat is the primary difference between a Breakpoint and a Watchpoint during debugging?ABreakpoints are only used for syntax errors.BA Breakpoint pauses execution at a specific line of code; a Watchpoint pauses execution when a specific variable's value changes.CWatchpoints make the code run faster.DBreakpoints are for Java; Watchpoints are for C++.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q9mediumIn the "Red-Green-Refactor" cycle of Test-Driven Development (TDD), what does the "Red" stage represent?AThe code is being deleted.BWriting a test for a new feature that fails because the feature hasn't been implemented yet.CThe server is down.DThe program has a syntax error.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q10hardYou are optimizing a function that calculates prime numbers. You decide to store previously calculated results in a Hash Map to avoid recalculating them. This optimization is known as:AMemoization (Caching)BDead-code eliminationCMulti-threadingDRefactoringCheck AnswerReveal Answer & ExplanationDiscuss on Board