Find the Error in the code:
print("Hi CS Club)
missing endquotes
What is the Language this is written in?
print("Hello, World!")
Python
What does this print?
System.out.println("12345");
12345
What numbers is binary consisted of?
1s and 0s
Find the Error in the code:
for(x = 0; x < 10; x++){
System.out.println(x);}
x is missing a type.
What is the Language this is written in?
int x = 10;
for(int i= 0; i < 3; i++){
x++;}
System.out.print(x);
Java
What does this print?
System.out.println("CS");
System.out.print("INTEREST");
System.out.print("MEETING");
CS
INTERESTMEETING
What is the sequence of the first 6 letter keys on a keyboard?
What is QWERTY?
Find the Error in the code:
int sum = 200;
for(int x = 0; x < 10; x++){
sum += (sum/x);}
division by 0!
What is the Language this is written in?
let score = 85;
if(score >= 60){
console.log("pass");
}else{
console.log("fail");
}
JavaScript
String[] words = {"Apple", "Banana", "Cherry"}; System.out.print(words[0].substring(1));
pple
What did Dorothy follow to find the Wizard of Oz?
What is the Yellow Brick Road?
Find the Error in the code:
String[] Arr = new String[1+1];
Arr[0] = "Kris";
Arr[1] = "David";
Arr[2] = Arr[0] + " " + Arr[1];
Arr[2] is out of bounds.
What is the Language this is written in?
#include <iostream>
int main(){
for(int i = 1; i <= 5; ++i){
std::cout << i << " ";
}
std::cout << std::endl;
return 0;
}
C++
int points = 0;
for (int i = 1; i <= 3; i++) {
points = points + i;
}
System.out.print(points);
6
This spooky tech phrase describes the exact moment at midnight when the year 1999 ended, and people feared every computer would suddenly freeze.
What is Y2K?
total = 0
numbers = [1, 2, 3, 4, 5]
for num in numbers:
total = total + num
print("Current sum is " + total)
python cannot concatenate strings and numbers with +
must add str() like str(total)
What is the Language this is written in?
class MyMeta(t):
def complicated_method_lol(cls, name, bases, dct):
dct['custom attribute'] = 'The is a custom attribute'
return super().__new__(cls, name, bases, dct)
Python
What does this print?
double q = Math.pow(5, Math.sqrt(2 * Math.pow(2, 3)));
double s = Math.pow(2, (6 * 125)/(2.5 * 50)) * 10;
for( ; q < s; q++){
q+=1;
}
nothing
What language is Windows coded in?
C