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

What is the output of the following code snippet? for (int m = 0; m < 5; m++) { if (m == 2) { continue; } System.out.print(m + " "); }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C# code snippet? class access { public int x; private int y; public void cal(int a, int b) { x = a + 1; y = b; } public void print() { Console.WriteLine(" " + y); } } class Program { static void Main(string[] args) { access obj = new access(); obj.cal(2, 3); Console.WriteLine(obj.x); obj.print(); Console.ReadLine(); } } Which of these is an correct way making a list that is upper bounded by class Number? Your presentation is ready to go, but you don't know if PowerPoint is installed on the computer, you will use to present with what's the safe way Which of the following is true concerning personal computers? What will be the output of the following C code? #include <stdio.h> int main() { void *p; int a[4] = {1, 2, 3, 4}; p = &a[3]; int *ptr = &a[2]; int n = (int*)p - ptr; printf("%d\n", n); }