Debugging
Data Structs/Algorithms
Random (CS) Facts
CSTeams
Halloween
100

What is wrong with this line of java code?

System.out.printline("Hello world!");

It should be System.out.println(); not System.out.printline();

100

Name a sorting algorithm!

Bubble sort, Insertion sort ,Merge sort, Quick sort, Selection sort, Heap sort, radix sort, shell sort



100

What language was Minecraft: Java edition programmed in?

Java

100

What are these in HTML <b></b><html></html>

Tags

100

What day of the week is Halloween on this year?

Tuesday!

200

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

200

What data structure would this declare (in java)

int[][] m = int[5][5];

Matrix or 2d array.

200

Who invented the turing machine?

Alan Turing?

200

What framework did we use that was able to do the following:HTML, CSS, and JavaScript

Bootstrap

200

What is the hex value of this?

1011 0000 0000

B00

300

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".

300

Name this data structure!


Linked List.

300

What does SQL stand for?

Server Query Language

300

Who is our faculty advisor?

Professor Suchy.

300

What was the most popular Halloween costume of 2022? (according to google)

Witch or Spiderman

400

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.

400

What sorting algorithm is this?

Bogo sort

400

What is the Python programming language named after?

Monty Python!

400

What course is Charlie a TA for?

Language Processing.

400

Most famous horror movie of all time (according to imdb, IGN, and the rolling stones)

The Exorcist

500

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.

500

Assuming a recursive algorithm, how many moves would it take it solve 5 disks on the Tower of Hanoi?

31 moves

500

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.

500

What is the topic of CSTeams next meeting?

Git/github workshop!

500

What would people carve instead of pumpkins for Halloween?

Turnips!

M
e
n
u