The decimal equivalent of the binary number '1010'?
This Python keyword is used to refer to an instance of the class itself. Other languages use words such as 'this'
What is 'self'?
The full name for 'CPU'
What is 'Central Processing Unit'?
The output of this code:
#include <iostream>using namespace std;
int function(int n) {
if (n <= 1)
return 1;
return n * function(n - 1);
}
int main() {
int num = 5;
int result = function(num);
cout << result << endl; return 0;
}
What is "120"?
The worst/slowest time complexity of the following options:
O(log n), O(2^n), O(n), O(n^2), O(n!), O(1), O(n log n)
What is 'O(n!)'?
The hexadecimal number '1A' in decimal
What is 26
The symbol used to denote a single-line comment in C++
What is '//'?
The full name for 'www' (as in website URLs)
What is 'World Wide Web'?
The output of this code:
function isEven($number) {
return ($number % 2 == 0) ? "Odd" : "Even";
}
$value = 7;
$result = isEven($value);
echo $result;
What is 'Even'?
The time complexity which indicates that the algorithm's runtime does not depend on the input size?
The decimal number 255 in its binary representation
What is '11111111'?
The programming language developed by Apple for macOS and iOS app development
What is 'Swift'?
The full name for 'IDE'
What is 'Integrated Development Environment'?
The output of this code:
public class ArrayExample {
public static void main(String[] args) {
int[] numbers = {1, 2, 3, 4, 5};
for (int i = 0; i <= numbers.length; i++) {
System.out.print(numbers[i] + " ");
}
}
}
What is 'Error: Index Out of Bound Exception'?
A sorting algorithm with a time complexity of O(nlogn)
What is 'Merge Sort, Quicksort, Heap Sort'?
The base for the Octal number system
What is 'Base 8'?
In OOP, the ability of a class to inherit properties and behaviors from more than one superclass
What is 'Multiple inheritance'?
The significance of the 's' in 'https' (as opposed to 'http')
What is 'Secure/Security - Indicates that the communication between the user's browser and the web server is encrypted and secure
The output of this code:
def mystery_function(n):
if n <= 1:
return n
else:
return mystery_function(n-1) + mystery_function(n-2)
result = mystery_function(5)
print(result)
What is '5'? (Recursive Fibonacci Sequence)
The time complexity of this function:
def function(arr, target):
low = 0
high = len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
What is 'O(logn)'?
The value of the binary number '1101' when converted to octal
What is '15'?
The difference between a statically and dynamically typed language
What is 'the time at which variables are determined (compile time vs runtime respectively)'?
Full name of 'API'
What is 'Application Programming Interface'
The output of the following code:
function asyncFunction() {
setTimeout(function() {
console.log("Async function executed.");
}, 1000);
}
console.log("Start");
asyncFunction();
console.log("End");
What is '"Start" "End" "Async function executed".'?
The time complexity of finding the shortest path between two nodes in a weighted, connected graph using Dijkstra's algorithm (In terms of the # of vertices)
What is 'O(V^2)' (Where V is the # of vertices)?