Which task is an example of black box testing?

  1. Testing each branch of an if-statement using the code
  2. Reading the source code to check every loop
  3. Measuring how a function runs internally
  4. Entering login details and checking whether the dashboard opens
Answer

D) Entering login details and checking whether the dashboard opens

Black box testing checks inputs and outputs without looking at the code. White box testing uses knowledge of the internal code. SLO CS-11-A-02 · Understanding

Computer Science MCQ · More Unit 1: Computer Systems MCQs · Practise