Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
convert the following into For loop;while(true)System.out.print(‘*’);(in java )PLEASE ANSWER FAST…
Home
Education
convert the following into For...
asked
Dec 31, 2021
in
Education
by
JackTerrance
convert the following into For loop; while(true) System.out.print(‘*’); (in java ) PLEASE ANSWER FAST… WILL MARK BRAINLIEST** Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 31, 2021
by
JackTerrance
Best answer
Answer: While loop in java syntax is as follows. while (expression) {// statements} The expression for while loop must return boolean value, otherwise it will throw compile time error.
Related questions
0
votes
Q: Rewrite the following loop using for loop:int i=0;while (i<10){System.out.print(“*”);System.out.print(i++);
Rewrite the following loop using for loop: int i=0; while (i...
asked
Dec 22, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Name the class that is used for different mathematical functions.(in java)PLEASE ANSWER FAST …URGENT…HELP ANYBODY…
Name the class that is used for different mathematical functions.(in java) PLEASE ANSWER FAST URGENT HELP ... BRAINLIEST FOR SURE☆☆ Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: While (true)System.out.print(*);
While (true) System.out.print(*); Change to for loop Select the correct answer from above options...
asked
Dec 25, 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: What would be the output of the following program segments? Give reasons to justify your answer.i) System.out.print(“Sum =”+6 + 2);ii) System.out.print(“Sum = ”+ ‘B’+ ‘2’);iii) System.out.print(“Sum = ”+ 6 + ‘B’);iv) System.out.print(“Sum = ”+ (‘B’ + ‘a’));
What would be the output of the following program segments? Give reasons to justify your answer. i) System.out.print( Sum ... + a ); Select the correct answer from above options...
asked
Nov 27, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write the following in while(): For (i=1;i‹=100;i++){Print(“%d”\”,i);} (Will no one be able to solve this question i really need the answer right now as i am doing an exam now)
Write the following in while(): For (i=1;i =100;i++){Print( %d \ ,i);} (Will no one be able to solve ... as i am doing an exam now) Select the correct answer from above options...
asked
Dec 17, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: mention the following in terms of java…1 : values passed in method.2 : array is passed in method.PLEASE HELP…URGENT…BEST ANSWER.WILL MARK BRAINLIEST…
mention the following in terms of java 1 : values passed in method. 2 : array is passed in method. PLEASE ... BRAINLY MEMBER HELP..☆ Select the correct answer from above options...
asked
Dec 14, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: hi friends hope you all are doing greatPlz answer my question please do not give invalid answersWrite a program in Java to check for the ugly number.
hi friends hope you all are doing great Plz answer my question please do not give invalid answers Write a program ... number. Thank you Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: function add() and operator + gives the same result true Or fplzzzz give me answer fast…….
function add() and operator + gives the same result true Or f plzzzz give me answer fast……. dud Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: why do we need language ? explain the types of language used in java?answer fast plz
why do we need language ? explain the types of language used in java? answer fast plz also not in very short Select the correct answer from above options...
asked
Dec 13, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: write a program to input a number and print table of the number using while loop
write a program to input a number and print table of the number using while loop Select the correct answer from above options...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: can anyone please help me out for this questionWrite a program to create two threads, so one thread will print even numbers
can anyone please help me out for this question Write a program to create two threads, so one thread will print ... between 11 to 20. Select the correct answer from above options...
asked
Dec 19, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: can anyone please help me out for this questionWrite a program to create two threads, so one thread will print even numbers
can anyone please help me out for this question Write a program to create two threads, so one thread will print ... between 11 to 20. Select the correct answer from above options...
asked
Dec 18, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: Give at least two to three differences between rint() and round() in Java… Please give the answer in points..
Give at least two to three differences between rint() and round() in Java… Please give the answer in points.. Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...