What is wrong with this line of java code?
System.out.printline("Hello world!");
It should be System.out.println(); not System.out.printline();
Name a sorting algorithm!
Bubble sort, Insertion sort ,Merge sort, Quick sort, Selection sort, Heap sort, radix sort, shell sort
What language was Minecraft: Java edition programmed in?
Java
What are these in HTML <b></b><html></html>
Tags
What day of the week is Halloween on this year?
Tuesday!
What line will cause this java program to not compile?
1 char letter = 'a';
2 boolean b = true;
3 if( 1 < letter )
4 System.out.println();
5 else if( 1 == b)
6 System.out.println("Hello world!");
5, cannot compare a boolean and integer
What data structure would this declare (in java)
int[][] m = int[5][5];
Matrix or 2d array.
Who invented the turing machine?
Alan Turing?
What framework did we use that was able to do the following:HTML, CSS, and JavaScript
Bootstrap
What is the hex value of this?
1011 0000 0000
B00
Will this Java program cause an exception?
class Main {
public static void main (String[] args){ System.out.println(print(1));
}
static Exception print(int i){
if (i>0) {
return new Exception(); }
else {
throw new RuntimeException(); }
}
}
Yes "java.lang.Exception".
Name this data structure!
Linked List.
What does SQL stand for?
Server Query Language
Who is our faculty advisor?
Professor Suchy.
What was the most popular Halloween costume of 2022? (according to google)
Witch or Spiderman
What line will cause this java program to not compile?
1:class MainClass {
2: final String message() {
3: return "Hello!";
4: }
5: }
6: class Main extends MainClass {
7: public static void main(String[] args) {
8: System.out.println(message());
9: }
10: String message() {
11: return "World!";
12: }
13: }
Line 10, attempts to override a final method.
What sorting algorithm is this?
Bogo sort
What is the Python programming language named after?
Monty Python!
What course is Charlie a TA for?
Language Processing.
Most famous horror movie of all time (according to imdb, IGN, and the rolling stones)
The Exorcist
Why wont this java code compile?
public class Nosey {
int age;
public static void main(String[] args) { System.out.println("Your age is: " + age);
}
}
int age is referenced in a static context, and therefore must be static.
Assuming a recursive algorithm, how many moves would it take it solve 5 disks on the Tower of Hanoi?
31 moves
Which of the following programming languages is NOT turing complete, if any? (according to Wikipedia)
Lambda Calculus, Java, C, Pascal, Ada, Microsoft Excel, Minecraft, Python.
All are considered turing complete.
What is the topic of CSTeams next meeting?
Git/github workshop!
What would people carve instead of pumpkins for Halloween?
Turnips!