1.

What is the output of this program if input given is prstquvwxyz ?import java.util.*;import java.io.*; public class Main { public static void main(String args[]) throws IOException { char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { c = (char) obj.read(); System.out.print(c); } while(c != 'q'); } }

A. prstquvwxyz
B. prstquv
C. prstq
D. quvwxyz
E. None of these
Answer» D. quvwxyz


Discussion

No Comment Found

Related MCQs