Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
While (true)System.out.print(*);
Home
Education
While (true)System.out.print(*);
asked
Dec 25, 2021
in
Education
by
JackTerrance
While (true) System.out.print(*); Change to for loop Select the correct answer from above options
computer-science-interview-questions
computer-science-questions
1
Answer
0
votes
answered
Dec 25, 2021
by
JackTerrance
Best answer
int n=1; for(int i=0;i<_n;i++) { if(n%2==0 sopln(*); sopln(true); else sopln(false); } hope it helps u
Related questions
0
votes
Q: convert the following into For loop;while(true)System.out.print(‘*’);(in java )PLEASE ANSWER FAST…
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...
asked
Dec 31, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-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: 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: Java Output and Reason System.out.print(“Sum = ”+ ‘B’+ ‘2’);
Java Output and Reason System.out.print(“Sum = ”+ ‘B’+ ‘2’); 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: EJWrite T for true and F for false.71. Input devices are used to store the data.2. Calculations are done in computer with the help of operating system.3. Hard disk is the permanent storage device.4. Language processor are used to print the output.
EJ Write T for true and F for false. 71. Input devices are used to store the data. 2. Calculations are done ... is a system software. Select the correct answer from above options...
asked
Dec 6, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: EJWrite T for true and F for false.71. Input devices are used to store the data.2. Calculations are done in computer with the help of operating system.3. Hard disk is the permanent storage device.4. Language processor are used to print the output.
EJ Write T for true and F for false. 71. Input devices are used to store the data. 2. Calculations are done ... is a system software. Select the correct answer from above options...
asked
Dec 5, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: EJWrite T for true and F for false.71. Input devices are used to store the data.2. Calculations are done in computer with the help of operating system.3. Hard disk is the permanent storage device.4. Language processor are used to print the output.
EJ Write T for true and F for false. 71. Input devices are used to store the data. 2. Calculations are done ... is a system software. Select the correct answer from above options...
asked
Nov 26, 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: 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: WHILE…LOOP is used when we know the number of iterations of a loop.True
WHILE…LOOP is used when we know the number of iterations of a loop. True False 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: which application software in the computer system did you find useful while studying science and how?
which application software in the computer system did you find useful while studying science and how? 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: 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: 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: State the type of errors if any in the following statements:(i) switch ( 2 );(ii) System.out.println(670/0);
State the type of errors if any in the following statements: (i) switch ( 2 ); (ii) System.out.println(670/0); pls answer Select the correct answer from above options...
asked
Dec 25, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
...