Trending ▼   ResFinder  

computer application worksheet

9 pages, 50 questions, 4 questions with responses, 4 total responses,    0    0
Namratha Simha
Shantiniketan Trust School, Bangalore
+Fave Message
 Home > namratha_simha123 >

Formatting page ...

Worksheet 1 Find the outputs : 1. int a=0; if (a>0 && a<20) a++; else a--; System.out.println(a); 2. int x=2, y=5; x=++y - (- -x); y+=x; System.out.println( x= +x+ y= +y); 3. int a=4,b=-3,c; c=b-- + (++a) b; System.out.println( a= +a+ b= +b+ c= +c); 4. int a=10,b=15; while(++a<--b) System.out.println(b); System.out.println(a); 5. int a=10,b=15; while(++a<--b) { System.out.print(b); System.out.print(a); } 6.int a=63,b=36; boolean x=(a>b)?true:false; int y=(a<b)?a:b; System.out.println( x = +x+ y= +y); 7.What will be the values of n and ch? Char c='D'; int n=c+1; char ch=(char)n 8.What will be the value of x after the following code? Int x=4; x+=(x++)+(++x)+x; 9.double x=2.9, y=2.5; System.out.println(Math.min(Math.floor(x),y)); System.out.println(Math.max(Math.ceil(x),y));

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Darshan Deshpande

(3)

Adithya Kannan

(1)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us

 

namratha_simha123 chat