Home / MCQ Bank / Computer
Computer Control Structures Difficulty: Medium

Which control structure is used to execute a block of code repeatedly as long as a condition is true in C?

Select the correct option to test your answer:

More Computer Questions

What will be the time complexity of the following code? #include <bits/stdc++.h> using namespace std; void func(int a[], int n, int k) { if (k <= n) { for (int i = 0; i < k/2; i++) swap(a[i], a[k-i-1]); } } int main() { int a[] = {1, 2, 3, 4, 5}; int n = sizeof(a) / sizeof(int), k = 3; func(a, n, k); for (int i = 0; i < n; ++i) cout << a[i]<<" "; return 0; } In C#, what is the purpose of the Action delegate? An extranet is which of the following? Which of the following % operation is invalid? Ceil(-2.1) would be