Find the Error in the code:
System.out.print("Hello World")
missing semicolon
What is the Language this is written in?
print("Hello, World!")
Python
What is the type of Error?
Code outputs but it's not the expected output.
Logical Error
What does this print?
System.out.println("12345");
12345
What numbers is binary consisted of?
1s and 0s
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?
int x = 10;
for(int i= 0; i < 3; i++){
x++;}
System.out.print(x);
Java
What is the type of Error?
Code doesn't compile.
Syntax Error
What does this print?
System.out.println("CS");
System.out.print("INTEREST");
System.out.print("MEETING");
CS
INTERESTMEETING
What is the most popular coding language?
Python
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?
let score = 85;
if(score >= 60){
console.log("pass");
}else{
console.log("fail");
}
JavaScript
What is the type of Error?
successfully compiles but error occurs during running.
Runtime error
What does this print?
String cs = "Computer Science Rocks";
String fun = "yay";
System.out.print(cs.substring(3, 10) + fun + fun.substring(1));
puter Syayay
How many school owned wired mice are currently in this classroom? (not including Mr. Jasik's mouse)
TBD (ill count it before the meeting)
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++
What is the type of Error?
When you try accessing/using an empty variable.
NullPointerException
What does this print?
int sum = -2;
for(int x = 1; x < 8;x++){
sum+= x;
sum*= 3;
}
System.out.print(sum);
534
Are you going to join comp sci club this year?
Yes
Find the Error in the code:
i = 0
if i < 5:
print("This code block executes");
print("Error is here");
the prints have a semicolon
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 is the type of Error?
A type of runtime error that occurs when java has exhausted all available memory in the call stack
StackOverFlowError
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;
}
What language is Windows coded in?
C