Skip to content
Quiz · Conditions and loops · lesson 4 of 13

Quiz — case without break

What happens when this program is compiled and run?

C#
string cmd = "start";

switch (cmd)
{
    case "start":
        Console.Write("A");
    case "stop":
        Console.Write("B");
        break;
}