Languages
Cerealize
Drop the lg
Does not compute
Apex Legends
100

In Ruby, what is the output of the following expressions:

a, b, c, d = 1, 2, 3, 4

=> [1, 2, 3, 4]

a, b = c

=> ???

A) [1, 3]

B) [3]

C) [1, 2, 3]

D) 3

D) 3

100

Trix | Cheerios

A) Corn Flakes

B) Froot Loops

C) Frosted Flakes

D) Frosted Cheerios

B) Froot Loops

100

Finding an element in a sorted array

A) O(n)

B) O(n^2)

C) O(n lg n)

D) O(lg n)

D) O(lg n)

100

Is the following JavaScript valid?

a = 1

b = 2

a --> b

A) Yes

B) No

A) Yes

100

Which one of these is not a real Salesforce Object?

A) Contact

B) Product

C) Product2

D) Contract

B) Product

200

In Python, which of these is expressions evaluates to True

A) a, b = 1000, 1000

    a is b

B) () is ()

C) {} is {}

D) [] is []

B) () is ()

200

Froot Loops & Banana Frosted Flakes

A) Cheerios

B) Trix

C) Froot Loops

D) Banana Frosted Flakes

B) Trix

200

Quick sort:

A) O(n)

B) O(n lg n)

C) O(n^2)

D) O(1)

C) O(n^2)

200

Is the following Python valid?


a = True

b = True

if a = b:

  ...

A) Yes

B) No

B) No

200

How do you mark a function to run asynchronously in Apex?

A) @async

B) @later

C) @future

D) @notYet

C) @future

300

In Java, what interface do you implement to close your streams

A) Disposable

B) Closeable

C) AutoCloseable

D) AutoDisposable

C) AutoCloseable

300

Frosted Flakes ^ Frosted Cheerios

A) Froot Loops

B) Banana Frosted Flakes

C) Cheerios

D) Corn Flakes

C) Cheerios

300

Merge sort

A) O(n)

B) O(n lg n)

C) O(n^2)

D) O(2^n)

B) O(n lg n)

300

Which of the following JVM options is NOT real:

A) -XX:-AllowUserSignalHandlers

B) -XX:ScavengeBeforeFullGC

C) -XX:UseOldGC

D) -XX:UseParallelOldGC

C) -XX:UseOldGC

300

How do you make your function be capable of contacting a 3rd party URL

A) @future(callout=true)

B) @future(external=true)

C) @future(outside=true)

D) @future(internal=false)

A) @future(callout=true)

400

In JavaScript what does [] + [] evaluate to?

A) []

B) 0

C) undefined

D) ''

D) ''

400

(~Corn Flakes) << 2

A) Frosted Flakes

B) Trix

C) Frosted Cheerios

D) Cheerios

A) Frosted Flakes

400

Depth-first search

A) O(V + E)

B) O(V * E)

C) O(lgV + E)

B) O(V * lgE)

A) O(V + E)

400

Does the following C++ code compile?

#include <string>

void f() {

  std::string(foo);

}

A) Yes

B) No

A) Yes

400

Which trigger precedence is correct?

A) after triggers, escalation rules, entitlement rules

B) validation, duplication rules, before triggers 

C) commit, escalation rules, entitlement rules

D) after triggers, workflow rules, duplicates

A) after triggers, escalation rules, entitlement rules

500

In JavaScript what does {} + [] evaluate to?

A) TypeError

B) 0

C) [ {} ]

D) ''

B) 0

500

(~Frosted Flakes >> Cheerios) | Trix

A) Banana Frosted Flakes

B) Frosted Cheerios

C) Froot Loops

D) Corn Flakes

C) Froot Loops

500

Median of unsorted array

A) O(n^2)

B) O(n)

C) O(n log n)

D) O(n ^3)

B) O(n)

500

What does the following C# code print?

public class Foo

{

  public static int x = 10;

}

public class Bar : Foo

{

  new public static int x = 20;

  static void Main()

  {

    Console.WriteLine(x);

  }

}

A) Compile error

B) 10

C) 20

D) 0

C) 20

500

What indexed field is guaranteed for every object?

A) LastModifiedDate

B) SystemModStamp

C) LastModified

D) SystemModTimestamp

B) SystemModStamp

M
e
n
u