โ† All Epic Skills Assessment Flashcard Decks

Epic Skills Assessment 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 Epic Skills Assessment Fictional Programming Language Logic Questions and Answers flashcards as text
  1. In a fictional language, 'NEST(n)' creates a list of lists where each inner list i contains integers from 1 to i. What is NEST(3)?

    Answer: [[1], [1,2], [1,2,3]]

    NEST(3) builds three inner lists: [1], [1,2], and [1,2,3].

  2. A fictional language uses 'SNAP(str, n)' to split a string into chunks of n characters. What is SNAP("HEALTHCARE", 4)?

    Answer: ["HEAL", "THCA", "RE"]

    SNAP splits "HEALTHCARE" into chunks of 4: "HEAL", "THCA", "RE".

  3. In a fictional language, 'PIVOT(matrix)' transposes a 2D array. What is PIVOT([[1,2],[3,4],[5,6]])?

    Answer: [[1,3,5],[2,4,6]]

    Transposing swaps rows and columns, so element at row i, col j moves to row j, col i.

  4. A fictional language defines 'REDUCE(arr, op, init)' which folds an array with an operator. What is REDUCE([2,3,4], *, 1)?

    Answer: 24

    Starting with 1, multiply sequentially: 1*2=2, 2*3=6, 6*4=24.

  5. In a fictional language, 'MASK(str, pattern)' keeps only characters at positions where pattern has a 1. What is MASK("ABCDEF", "101010")?

    Answer: ACE

    Positions with 1 are indices 1, 3, 5 which correspond to A, C, E.

  6. A fictional language uses 'ECHO(x, n)' to repeat value x exactly n times in a list. What is the length of ECHO(ECHO("a", 2), 3)?

    Answer: 3

    ECHO("a", 2) produces ["a","a"], then ECHO(["a","a"], 3) produces a list of 3 elements, so the length is 3.