back to top
Community

Do You Actually Know How To Code At A Minor Level

I am pretty bad at code, so if you can pass this test you arent absolutely trash at coding. If you fail, then youre probably taking COMP 110 because you thought kris jordan is hot or you are a humanities major in need of a QR credit that thinks they can "code"

Posted on
  1. Can you implement splay tree in an efficient way?

    Correct
    Incorrect
    Yes
    Correct
    Incorrect
    No
  2. What arethe values of the variables r1, r2,r3, r4, and r5 afterthe following code executes:

    Correct
    Incorrect
    3, 7, 11, 3, 5
    Correct
    Incorrect
    3, 7, 15, 5, 3
    Correct
    Incorrect
    15, 7, 5, 2, 12
    Correct
    Incorrect
    15, 7, 4, 5, 3
  3. Which of these statements about MVC design pattern are true?

    Correct
    Incorrect
    Themodel componentisresponsible for invokingcontroller methods whentheuserinteracts withtheapplication
    Correct
    Incorrect
    Thecontroller componentisusually asubclassof theview component.
    Correct
    Incorrect
    Theview component can bean observer of statechangeswithin the modelcomponent.
  4. A branch instruction changes which instruction comes next by changing which register?

    Correct
    Incorrect
    RA
    Correct
    Incorrect
    PC
    Correct
    Incorrect
    SP
    Correct
    Incorrect
    T0
  5. Consider a byte-addressable memory and an architecture that manipulates 64-bit words. What is the maximum number of adressable words if the architecture has N N bit addresses?

    Correct
    Incorrect
    64
    Correct
    Incorrect
    (2**N)+8
    Correct
    Incorrect
    (2**N)/8
    Correct
    Incorrect
    32
  6. Using 2’s complement arithmetic, negate the hex value 74520FF3 and enter its value in hex?

    Correct
    Incorrect
    8BADF00D
    Correct
    Incorrect
    74520FF3
    Correct
    Incorrect
    8BAD7003
    Correct
    Incorrect
    7452F00D
  7. Which of these is a stable sort with NLogN worst Case

    Correct
    Incorrect
    Heap Sort
    Correct
    Incorrect
    Merge Sort
    Correct
    Incorrect
    Bubble Sort
    Correct
    Incorrect
    Bogo Sort
  8. Every graph that is a tree has no Euler path

    Correct
    Incorrect
    True
    Correct
    Incorrect
    False
  9. The splay function in a splay tree always shortens the longest path by atleast 1

    Correct
    Incorrect
    True
    Correct
    Incorrect
    False
    Correct
    Incorrect
    Splay tree is dumb and I cannot implement it without being at an efficiency of O(N^2)
  10. Which of these are statements about polymorphism is true?

    Correct
    Incorrect
    Overloaded methods are an example of polymorphism
    Correct
    Incorrect
    Using the JavaBeans conventions for getters and setters is an example of polymorphism
    Correct
    Incorrect
    Using the same local variable name in difference methods is an example of polymorphism
    Correct
    Incorrect
    Polymorphism requires that at most one class will implement a particular interface
  11. Write the following code in MIPS: *(a+1)=i;

    Correct
    Incorrect
    slt $t0,$a1,$a2 bne $t0,$zero,L1
    Correct
    Incorrect
    slt $t0,$a2,$a1 bne $t0,$zero,L1
    Correct
    Incorrect
    lw $a1,4($a0)
    Correct
    Incorrect
    sw $a1,4($a0)
  12. Which of these are NOT a value type?

    Correct
    Incorrect
    String
    Correct
    Incorrect
    int
    Correct
    Incorrect
    boolean
    Correct
    Incorrect
    long
This post was created by a member of BuzzFeed Community, where anyone can post awesome lists and creations. Learn more or post your buzz!
 
Take quizzes and chill with the BuzzFeed app.