Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>A1</strong> 2 bits and 16 bits is the obvious answer. I 'd ask for clarification like "in technical terms, what exactly do you mean 2-bit system" just to make sure.</p> <p><strong>A2</strong> This is OOP 101 material... a short answer might be "Because classes enable inheritance, and inheritance enables many useful paradigms (most importantly polymorphism) that decrease code complexity".</p> <p><strong>A3</strong> I 'm afraid I would not consider your answer correct. You should definitely have asked "what kind of program" to get a general idea: is it a service? a script? a desktop application? With no additional input, I would answer "divide into UI and business logic".</p> <p><strong>A4</strong> On a hardware level, threads enable your application to have better utilization of your hardware resources (e.g. multiple CPU cores). An example would be any divide-and-conquer algorithm, where the divided work can run on multiple threads in parallel (e.g. many sorting algorithms). I would again consider your answer to be wrong.</p> <p><strong>A5</strong> Correct.</p> <p><strong>A6</strong> Correct.</p> <p><strong>A7</strong> First of all: see if the program is CPU-bound (some quick and dirty measuring would tell you this). If it not CPU-bound, then most possibly one thread would be enough. If it is, then you want to use as many threads as possible (which means as many as the pieces you can partition your work into), up to the number of threads your hardware can execute at the same time.</p> <p><strong>A8</strong> Correct: No problem, the base class implementation would be called.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload