← All Epic Skills Assessment Flashcard Decks

Fictional Programming Language Logic Questions and Answers Flashcards

6 cards from real Epic Skills Assessment practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Fictional Programming Language Logic Questions and Answers flashcards as text
  1. In ZetaScript, LOOP x FROM 1 TO 5 STEP 2 means x takes values 1, 3, 5. What values does x take in LOOP x FROM 0 TO 10 STEP 3?

    Answer: 0,3,6,9

    Starting at 0, incrementing by 3, stopping at or before 10: 0,3,6,9. The next would be 12 which exceeds 10, so the loop ends at 9.

  2. In OmegaCode: FUNC double(n) RETURN n*2. FUNC triple(n) RETURN n*3. What does double(triple(4)) return?

    Answer: 24

    triple(4)=12, double(12)=24.

  3. AlphaLang rule: IF a MOD 2 = 0 THEN label='even' ELSE label='odd'. What is the label for a=17?

    Answer: odd

    17 MOD 2 = 1 (not 0), so the ELSE branch executes: label='odd'.

  4. In BetaScript: array A = [5,3,8,1,9]. SORT A ASCENDING. What is A[0] after sorting?

    Answer: 1

    After sorting ascending: [1,3,5,8,9]. A[0]=1.

  5. DeltaLang: x=5; WHILE x!=0: x=x-2. Will this loop terminate?

    Answer: No, it will run forever

    x starts at 5 (odd). Subtracting 2 each time: 5→3→1→-1→-3… x is always odd and will never equal 0. The loop runs forever.

  6. GammaCode: DEFINE max(a,b) AS: IF a>b RETURN a ELSE RETURN b. What does max(max(3,7), max(5,2)) return?

    Answer: 7

    max(3,7)=7, max(5,2)=5, max(7,5)=7.