Home / MCQ Bank / Computer
Computer Graph Algorithms (Dfs, Bfs, Dijkstras, Etc) Difficulty: Medium

In which case is the Floyd-Warshall algorithm preferred?

Select the correct option to test your answer:

More Computer Questions

The operator that does not perform relative-value comparisons is ______ Which two classes use the Shape class correctly? A. public class Circle implements Shape { private int radius; } B. public abstract class Circle extends Shape { private int radius; } C. public class Circle extends Shape { private int radius; public void draw(); } D. public abstract class Circle implements Shape { private int radius; public void draw(); } E. public class Circle extends Shape { private int radius; public void draw() { /* code here */ } } F. public abstract class Circle implements Shape { private int radius; public void draw() { /* code here */ } } Which loop in Ruby allows you to iterate over a collection of elements? What is the time complexity of the following dynamic programming implementation used to compute the nth fibonacci term? 1. int fibo(int n) 2. int fibo_terms[100000] //arr to store the fibonacci numbers 3. fibo_terms[0] = 0 4. fibo_terms[1] = 1 5. 6. for i: 2 to n 7. fibo_terms[i] = fibo_terms[i - 1] + fibo_terms[i - 2] 8. 9. return fibo_terms[n] What will be the output of the following C code? #include <stdio.h> void main() { int k = 8; int x = 0 == 1 && k++; printf("%d%d\n", x, k); }