logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1607868 total)

Which searching algorithm is most efficient for finding an element in a sorted array?

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

Which loop should you use if the number of repetitions cannot be determined before entering the loop and you want to allow for zero repetitions?

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

How many times is initialization performed in the for-repetition:

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

Which loop should you use if the number of iterations is known before the loop starts?

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

Which part of a method contains the actual instructions that define what the method does?

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

Which of the listed flowchart segments match the following code snippet:

 

 

bool exit = false;

double luggageWeight = 0;

double total = 0;

final double MAX_WEIGHT = 30;

 

Scanner input = new Scanner(System.in);

 

while(!exit){

System.out.println("Enter Luggage Weight: ");

luggageWeight = input.nextDouble();

 

if(luggageWeight < 0){

System.out.println("Quitting...");

exit = true;

} else if(total + luggageWeight > MAX_WEIGHT){

System.out.println("exceeded weight limit.");

exit = true;

} else {

total += luggageWeight;

}

}

 

 

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

Apply a single application of Simpson’s 3/8 rule to evaluate the following integral. What is the output?

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

What is the approximate value of the following integral using a single application of Simpson’s 1/3 rule?

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

What is the approximate value of the following integral using two applications of the composite trapezoidal method? 

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

Integrate the following data using the Simpson's 3/8 rule. What is the output?

-5-4.5-4-3.5
8565

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