topic/Control Instructions
Start Test
Question No
Title
Type
Marks
527.
How many times "IndiaBIX" is get printed?#include<stdio.h> int main() { int x; for(x=-1; x<=10; x++) { if(x < 5) continue; else break; printf("IndiaBIX"); } return 0; }
MCQ
5
528.
How many times thewhileloop will get executed if ashort intis 2 byte wide?#include<stdio.h> int main() { int j=1; while(j <= 255) { printf("%c %d\n", j, j); j++; } return 0; }
MCQ
5
530.
In mathematics and computer programming, which is the correct order of mathematical operators ?
MCQ
5
631.
What does the following C#.NET code snippet will print?int i = 0, j = 0; label: i++; j+=i; if (i < 10) { Console.Write(i +" "); goto label; }
MCQ
5
633.
What is the output of the C#.NET code snippet given below?namespace IndiabixConsoleApplication { public enum color { red, green, blue }; class SampleProgram { static void Main (string[ ] args) { color c = color.blue; switch (c) { case color.red: Console.WriteLine(color.red); break; case color.green: Console.WriteLine(color.green); break; case color.blue: Console.WriteLine(color.blue); break; } } } }
MCQ
5
529.
Which of the following is not logical operator?
MCQ
5
531.
Which of the following cannot be checked in aswitch-casestatement?
MCQ
5
632.
Which of the following is the correct output for the C#.NET program given below?int i = 20 ; for( ; ; ) { Console.Write(i + " "); if (i >= -10) i -= 4; else break; }
MCQ
5
634.
Which of the following is the correct way to rewrite the following C#.NET code snippet given below?int i = 0; do { Console.WriteLine(i); i+ = 1; } while (i <= 10);
MCQ
5