AP Computer Science Principleshardmcq1 pt

Which problem is undecidable?

A.deciding whether any given program will halt
B.sorting a list of numbers
C.searching a sorted list
D.adding two numbers

Explanation

Core Concept

The halting problem has no general algorithm.

Correct Answer

Adeciding whether any given program will halt

More Unit 3: Algorithms and Programming practice questions

Try a random question →

Practice more AP Computer Science Principles questions with full explanations

Practice Unit 3: Algorithms and Programming Questions →