Skip to content
GK24
Computer AwarenessMedium

Testing a program only by giving inputs and checking the outputs, without looking at the internal code, is called:

  1. A.White-box testing
  2. B.Black-box testing
  3. C.Unit testing
  4. D.Regression testing

Correct answer

B. Black-box testing

Explanation

The correct answer is B, black-box testing. In black-box testing the tester treats the program as a sealed box, supplies inputs drawn from the specification and compares the outputs with what the specification promises; equivalence partitioning and boundary value analysis are its standard techniques, and no knowledge of the source code is needed. Option A is wrong because white-box or glass-box testing is the opposite: the tester reads the code and designs cases to cover statements, branches and paths. Option C is wrong because unit testing names the level at which a single module is tested, not the method of designing the cases, and a unit test may itself be black-box or white-box. Option D is wrong because regression testing means re-running old tests after a change, to confirm that the change has not broken what already worked. Level and technique are different axes.

Read the full article: Algorithms, Flowcharts and SDLC: Symbols, Models and PYQs

View all
Q2.Computer AwarenessEasy

In a flowchart, the oval or rounded shape is used to show:

  1. A.Start and Stop
  2. B.A subroutine call
  3. C.A decision
  4. D.The direction of flow
Show answer
Correct answer: A. Start and Stop

The oval is the terminal symbol, and a well-formed flowchart has exactly one Start terminal and at least one Stop terminal; a chart that can never reach a Stop describes an infinite loop and so breaks the finiteness property of an algorithm.

Q3.Computer AwarenessEasy

The word algorithm is derived from the name of which mathematician?

  1. A.Euclid
  2. B.Al-Khwarizmi
  3. C.Charles Babbage
  4. D.Blaise Pascal
Show answer
Correct answer: B. Al-Khwarizmi

Muhammad ibn Musa al-Khwarizmi was a ninth-century Persian mathematician and astronomer whose treatise on calculation with Hindu-Arabic numerals reached Europe in Latin translation; his Latinised name produced the word algorithm, and another of his works gave the word algebra.

Q5.Computer AwarenessAsked in: Delhi · 7 Aug 2021, Shift 1Medium

What is the other name of Linear Sequential model in software engineering?

  1. A.Spiral model
  2. B.Prototype model
  3. C.Waterfall model
  4. D.RAD model
Show answer
Correct answer: C. Waterfall model

The Waterfall model is called the linear sequential model because the project flows in one direction through requirement analysis, design, coding, testing, deployment and maintenance, with each phase completed and signed off before the next begins and no overlap between them.