go to previous page   go to home page   go to next page

Answer:

String00x-0xf0f0934+0xFABEL00X32
Accept or
Reject?
Accept Reject Accept Reject Accept Accept Reject

More Practice

All of those strings are legal Java integer literals. The following Java program is correct, and will compile and run:

class WeirdInt
{
  public static void main ( String[] args )
  {
    long i = +0xFABEL;
    System.out.println("Weird Int:" + i);
  }
}

QUESTION 26:

Here is an automaton. But the transitions have not been labeled!

automaton

Label the transitions so that the automaton accepts strings of one or more a characters followed by one or more b characters.