logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1557513 total)

В якому перерізі тиск рідини максимальний?

Переглянути це питання

Consider the following code:

Image failed to load

Considering what you have learned about boundary testing, which would be the best set of input values to choose to test this code?

0%
0%
0%
0%
0%
0%
Переглянути це питання

Which of the following is not a testing heuristics that should be followed to ensure completeness of positive and negative testing?

0%
0%
0%
0%
0%
Переглянути це питання

The concept of positive testing refers to...

❌
✅
❌
❌
Переглянути це питання

A programmer has written a class. To compare the values of two objects that may be instantiated from the class, the programmer should:

❌
✅
❌
❌
Переглянути це питання

What will happen when the following code is run?

String firstString = new String("Hello world.");

String secondString = new String("Hello world.");

System.out.println(firstString == secondString);
❌
❌
❌
❌
✅
❌
Переглянути це питання

How many possible control paths are there through the following code fragment?

if (game.finished())

{

if (player1.isWinner())

{

System.out.println("Player 1 wins!");

}

else if (player2.isWinner())

{

System.out.println("Player 2 wins!");

}

else

{

System.out.println("It's a draw!");

}

}

0%
0%
0%
0%
0%
0%
Переглянути це питання

Considering variables of primitive and object types, select all the statements below that are true.

100%
0%
100%
0%
0%
Переглянути це питання

Consider the following code:

Scanner in = new Scanner(System.in);

System.out.println("Enter a score from -3 to +3 (where 0 is neutral): ");

review.setScore(in.nextInt());

Assume the review object has been initialized and the setScore method has been defined elsewhere in the code.

Which of the following values entered by the user would represent a negative test of this code?

✅
❌
❌
❌
Переглянути це питання

Consider the following code:

Image failed to load

Considering what you have learned about boundary testing, what would be the best set of input values to use for the distance variable when testing this code?

❌
❌
✅
❌
Переглянути це питання