RANDOM
Conditionals and Flowcharts
Object-Oriented Programming
Stacks/Queues
Number Conversions
100

This is a definition of the acronym "IDE", and its key functions in software development.

What is an "Integrated Development Environment", that provides tools for coding, debugging, and compiling software?

100

These are the most common symbols you will find in flowchart design. This is also an explanation of the symbols' purposes. 

What are answers like the below that are fact checked by the cohort?

https://www.smartdraw.com/flowchart/img/basic-symbols-table.jpg

100

This is the concept of hiding all but the relevant data and interface processes for an object in order to reduce complexity and increase efficiency.

What is abstraction?

100

These are special array-based data structures with special access control processes. (Let’s you control order of processing data).

One is Last in First Out (LIFO), and the other is First in First Out (FIFO).

What are stacks and queues, respectively?

100

This is the decimal number 35 converted to binary.

What is 100011?

200

These are the three main categories of error types you can encounter when debugging code. 

(Bonus for 150 pts: This is one example for each error type of a tool or strategy you can use to debug the program)

What are syntax, logic, and runtime errors?

Bonus: What are 3 answers fact-checked by the cohort?

Note: Use error messages, reference materials, language documentation, and debugging tools to identify and fix syntax, runtime, and logic errors.

200

This is a list of the boolean logic operators, stated in their order of precedence.

What is NOT, AND, and OR?

200

This concept allows several variations of a method with the same name, but with different parameter signatures, to allow for flexibility.

What is polymorphism?
200

These are three operations defined for processing the stack and the queue.

What are the following operations?

  • push - add something

  • pop -  remove something

  • peek -  look at what would be popped but don’t pop

200

This is 1010101 written in decimal.

What is 85?

300

This is the difference between a data type and a data structure. (When answering, please also provide examples)

What is a data type, which defines the kind of data (e.g., integer, string, boolean, char)? 

What is a data structure that organizes data (e.g., array, list, stacks, queues)?

300

This is the difference between a series of if statements and a series of else if statements.

What is an answer similar to the following?

When provided a series of if statements, your program will evaluate each individual if statements for a true or false result, regardless of the previous if statements result.

With a series of if/else if statements, the else if statements will ONLY run if the previous statement was evaluated FALSE. Otherwise, it will check each statement until it finds a TRUE result.

300

A "Vehicle" class might have properties like "number of wheels" and "maximum speed." A "Car" class, inheriting from "Vehicle," could add properties like "number of doors" and "sunroof."  This concept demonstrates how sub-classes can extend and specialize the functionality of their parent classes.

What is inheritance?

300

Consider the following pseudocode fragment, where Q is a Queue instance that will hold integers:

Queue Q ← new Queue()

Q.enqueue(10)

Q.enqueue(20)

Q.enqueue(30)

Q.dequeue()

Q.enqueue(40)

Q.enqueue(Q.dequeue() + Q.peek()) 

Q.dequeue() 

print(Q.dequeue())


This is printed by the last line of code.

What is 40?

300

This is 011101 written in hexadecimal.

What is 1D?

400

This is a description of the "black box" approach in program design and its benefits.

What is designing a component so that its internal workings are hidden? What is ensuring users only interact with its inputs and outputs, simplifying the program's use?

400

This is the output of the following code segment: 

int num1 ← 30
int num2 ← 15

int num3 ← num1 % num2

int num4 ← num2 % num1


if(num3 < num4)

    print num3

else

    print num4

end if

What is 0?

400

This is an example of the difference between composition (the process of designing a class that is composed, in part, of other predefined classes) and inheritance.

This is an explanation of an "is-a" vs. "has-a" relationship.

What is composition is a "has-a" relationship, and inheritance is an "is-a" relationship?

https://medium.com/@kamilmasyhur/a-principle-of-object-oriented-design-79b9bfefd446

400

Consider the following pseudocode fragment, where Q is a Queue instance that will hold integers.

Queue Q ← new Queue ()
Q.enqueue (5)
Q.enqueue (12)
Q.enqueue (4)
Q.dequeue ()
Q.enqueue (13)
Q.enqueue ( Q.peek () - Q.peek() )
Q.enqueue ( Q.dequeue () + Q.dequeue () )
Q.dequeue ()
print (Q.dequeue () )

This is what is printed by the last line of code.


What is 0?

400

This is the octal value of 77 written in decimal.

What is 63?

500

This distinguishes low-level languages from high-level languages?

What are low-level languages (like assembly), which are closer to machine code? What are high-level languages (like Python, Java), which are more human-readable?

500

This is the result of the following code segment:

int x ← 5

int y ← 10

if(x >= 5 )

   if(y != 10)

      print "option A"

   else

      print "option B"

   end if

else

   if(y < 11)

      print "option C"

   else

      print "option D"

   end if

end if

What is option B?

500

This concept involves combining data and the methods that operate on it into one unit, usually a class. It protects data from accidental modification, enhances code organization, and streamlines interaction between program components. 

What is encapsulation?

500

Consider the following pseudocode fragment, where P is a Stack instance that will hold integers. 

P.push(7)

P.push(5)

P.push(P.peek() * P.pop())

P.push(P.pop() + P.peek())

P.pop()

This is the value on top of the stack after these operations.

What is 7?

500

What is octal 467 in hexadecimal?

What is 137?