Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
class Modulus {public static void main(String args[]){double a = 25.64;int b = 25;a = a % 10;b = b % 10;System.out.println(a + ” ” + b);}
Home
Education
class Modulus {public static void main(String...
asked
Dec 19, 2021
in
Education
by
JackTerrance
class Modulus { public static void main(String args[]) { double a = 25.64; int b = 25; a = a % 10; b = b % 10; System.out.println(a + ” ” + b); } } Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 19, 2021
by
JackTerrance
Best answer
what’s the question???
Related questions
0
votes
Q: class year{public static void main(){int a=2000;if( a%4 == 0 && a%100 != 0);{
class year { public static void main() { int a=2000; if( a%4 == 0 && a%100 != 0); { System.out.println ... this it is showing 2 errors Select the correct answer from above options...
asked
Dec 9, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Which is a valid declaration within an interface? A)protected short stop = 23; b)final void madness(short stop); c)public boolean madness(long bow); d)static char madness(double duty);?
Which is a valid declaration within an interface? A)protected short stop = 23; b)final void madness(short stop); ... (double duty);? Select the correct answer from above options...
asked
Dec 1, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: #includeint main(){void fib(int f1,int f2, int n){static int i = 1;int f3;if(i <= n){
#include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: #includeint main(){void fib(int f1,int f2, int n){static int i = 1;int f3;if(i <= n){
#include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i...
asked
Dec 18, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output
int n=10;int res=(n–+10>–n×5)?++n:n++ System.Out.println(res+”,”+n); what is the output Select the correct answer from above options...
asked
Dec 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int find(int i) {if(>1)j=find(j/10)+(j%10)elsej=0;return j;void main()int i=1000int kk=find(i):
int find(int i) { if(>1) j=find(j/10)+(j%10) else j=0; return j; void main() int i=1000 int k k=find(i): printf(“%d”, K) Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: int find(int j) {if(>1Xj=find(j/ 10)+(%10);}else {j=0;return j;void main()int i=1000,int k;k=find(i);
int find(int j) { if(>1X j=find(j/ 10)+(%10); } else { j=0; return j; void main() int i=1000, int k; k=find(i); printf(“%d”, k); Select the correct answer from above options...
asked
Dec 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: double x=0.5;System.out.println(Math.rint(x));
double x=0.5; System.out.println(Math.rint(x)); ….Plzz give me the output… Select the correct answer from above options...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: In Java,what will be the output of the following code and how?double x=2.9,y=2.5;(SOP is abbreviated form of System.out.println)SOP(Math.min(Math.floor(x),y));SOP(Math.max(Math.ceil(x),y));
In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked
Nov 28, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: No spammers please do it clear (show your work also) and how the answer comes please…int m=2 and int n=15for(int i=1;i<5;i++)m++;–n;System.out.println(“m=”+m);
No spammers please do it clear (show your work also) and how the answer comes please… int m=2 and int n=15 for(int i=1;i...
asked
Dec 23, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Analyse the given program segment and answer the following questionsi) write the output of the program segment ii)how many times does the body of the loop gets executefor(int m=5 ; m<=20 ;m+=5){if (m%3= = 0)break;elseif (m%5= = 0) System.out.println(m) continue;}
Analyse the given program segment and answer the following questions i) write the output of the program segment ii)how many times ... body of the loop gets execute for(int m=5 ; m...
asked
Nov 29, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: How many times the following loop will execute? And, what will be the output of this loop?int m=3;for (; m<=30; ){System.out.println(m);m += 3;
How many times the following loop will execute? And, what will be the output of this loop? int m=3; for (; m...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: import java.io.*;class employee{int pan;String name;double taxincome;double tax;
import java.io.*; class employee { int pan; String name; double taxincome; double tax; void input(int p1, ... help something is wrong Select the correct answer from above options...
asked
Dec 15, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What will be the output of the program? #include #include void fun(char *msg, …); int main() { fun(“indiabix”, 1, 4, 7, 11, 0); return 0; } void fun(char *msg, …) { va_list ptr; int num; va_start(ptr, msg); num = va_arg(ptr, int); num = va_arg(ptr, int); printf(“%d”, num); } indiabix 1 7 11 0 1 4 7?
What will be the output of the program? #include #include void fun(char *msg, ); int main() { fun( indiabix , 1, 4, ... 7 11 0 1 4 7? Select the correct answer from above options...
asked
Nov 30, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: What Is the output of the following:String a=”Java is programming language \n developed by \t\’James Gosling\'”;System. out. println(a);
What Is the output of the following:String a= Java is programming language \n developed by \t\'James Gosling\' ... ; Please Answer ASAP Select the correct answer from above options...
asked
Dec 14, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...