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
Trix | Cheerios
A) Corn Flakes
B) Froot Loops
C) Frosted Flakes
D) Frosted Cheerios
B) Froot Loops
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)
Is the following JavaScript valid?
a = 1
b = 2
a --> b
A) Yes
B) No
A) Yes
Which one of these is not a real Salesforce Object?
A) Contact
B) Product
C) Product2
D) Contract
B) Product
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 ()
Froot Loops & Banana Frosted Flakes
A) Cheerios
B) Trix
C) Froot Loops
D) Banana Frosted Flakes
B) Trix
Quick sort:
A) O(n)
B) O(n lg n)
C) O(n^2)
D) O(1)
C) O(n^2)
Is the following Python valid?
a = True
b = True
if a = b:
...
A) Yes
B) No
B) No
How do you mark a function to run asynchronously in Apex?
A) @async
B) @later
C) @future
D) @notYet
C) @future
In Java, what interface do you implement to close your streams
A) Disposable
B) Closeable
C) AutoCloseable
D) AutoDisposable
C) AutoCloseable
Frosted Flakes ^ Frosted Cheerios
A) Froot Loops
B) Banana Frosted Flakes
C) Cheerios
D) Corn Flakes
C) Cheerios
Merge sort
A) O(n)
B) O(n lg n)
C) O(n^2)
D) O(2^n)
B) O(n lg n)
Which of the following JVM options is NOT real:
A) -XX:-AllowUserSignalHandlers
B) -XX:ScavengeBeforeFullGC
C) -XX:UseOldGC
D) -XX:UseParallelOldGC
C) -XX:UseOldGC
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)
In JavaScript what does [] + [] evaluate to?
A) []
B) 0
C) undefined
D) ''
D) ''
(~Corn Flakes) << 2
A) Frosted Flakes
B) Trix
C) Frosted Cheerios
D) Cheerios
A) Frosted Flakes
Depth-first search
A) O(V + E)
B) O(V * E)
C) O(lgV + E)
B) O(V * lgE)
A) O(V + E)
Does the following C++ code compile?
#include <string>
void f() {
std::string(foo);
}
A) Yes
B) No
A) Yes
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
In JavaScript what does {} + [] evaluate to?
A) TypeError
B) 0
C) [ {} ]
D) ''
B) 0
(~Frosted Flakes >> Cheerios) | Trix
A) Banana Frosted Flakes
B) Frosted Cheerios
C) Froot Loops
D) Corn Flakes
C) Froot Loops
Median of unsorted array
A) O(n^2)
B) O(n)
C) O(n log n)
D) O(n ^3)
B) O(n)
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
What indexed field is guaranteed for every object?
A) LastModifiedDate
B) SystemModStamp
C) LastModified
D) SystemModTimestamp
B) SystemModStamp